荷兰卡达斯特LV包2.0提取物

3.2 新版功能.

司机简称

LVBAG

生成依赖项

libexpat公司

This driver can read XML files in the LV BAG 2.0 extract format as provided by the Dutch Kadaster BAG products. All LV BAG 2.0 extract products are supported. The driver supports all BAG layers including those introduced in BAG 2.0.

只有在针对Expat库编译GDAL/OGR时,驱动程序才可用。

Each extract XML file is presented as a single OGR layer. The layers are georeferenced in their native (EPSG:28992) SRS.

More information about the LV BAG 2.0 can be found at https://www.kadaster.nl/zakelijk/producten/adressen-en-gebouwen/bag-2.0-extract

LV BAG model definitions are available at https://developer.kadaster.nl/schemas/-/categories/4119958

Note 1 : The earlier BAG 1.0 extract is not supported by this driver.

Note 2 : The driver will only read ST (Standaard Levering) extract files. Mutation ML (Mutatie Levering) files are not supported.

打开选项

The following open options can be specified (typically with the -oo name=value parameters of ogrinfo or ogr2ogr):

  • AUTOCORRECT_INVALID_DATA=YES/NO (defaults to NO). Whether or not the driver must try to adjust the data if a feature contains invalid or corrupted data. This typically includes fixing invalid geometries (with GEOS >= 3.8.0), dates, object status etc.

  • LEGACY_ID=YES/NO (defaults to NO). Format the BAG identifiers compatible with BAG 1.0.

VSI虚拟文件系统API支持

驱动程序支持从VSI虚拟文件系统API管理的文件中读取数据,这些文件包括“常规”文件以及/vsizip/域中的文件。参见下面的示例。

驱动程序功能

Supports VirtualIO

This driver supports virtual I/O operations (/vsimem/, etc.)

实例

  • ogr2ogr实用程序可用于将LV包提取的结果转储到GeoJSON中的WGS84:

    ogr2ogr -t_srs EPSG:4326 -f GeoJSON output.json 9999PND01012020_000001.xml
    
  • 如何在OGR看到时转储提取文件的内容:

    ogrinfo -ro 9999PND01012020_000001.xml
    
  • Insert repaired features from LV BAG extract archive into PostgreSQL as WGS84 geometries. The table 'pand' will be created with the features from 9999PND18122019.zip. The database instance (lvbag) must already exist, and the table 'pand' must not already exist.

    ogr2ogr -oo AUTOCORRECT_INVALID_DATA=YES -t_srs EPSG:4326 -f PostgreSQL PG:dbname=lvbag /vsizip/9999PND18122019.zip
    
  • 将LV BAG extract目录加载到Postgres:

    ogr2ogr \
      -f "PostgreSQL" PG:dbname="my_database" \
      9999PND18122019/ \
      -nln "name_of_new_table"
    
  • 从“Nummeraanduiding”数据集创建地理包:

    ogr2ogr \
      -f "GPKG" nummeraanduiding.gpkg \
      0000NUM01052020/
    

也见