1

我正在尝试将 .mif 文件转换为 GeoJSON。我有.mif、.mid 和.dbf。但是当我转换它时,.dbf 中包含的属性不会呈现在 GeoJson 文件中。我使用的命令是 : ogr2ogr -f GeoJSON file.json file.mif

我的命令有问题还是我需要添加一个选项?

更多信息:

对于ogrinfo.dbf 文件:

ogrinfo car_m.dbf -so car_m
INFO: Open of `car_m.dbf'
      using driver `ESRI Shapefile' successful.

Layer name: car_m
Metadata:
  DBF_DATE_LAST_UPDATE=1913-10-18
Geometry: None
Feature Count: 2278213
Layer SRS WKT:
(unknown)
id: String (21.0)
idINSPIRE: String (30.0)
idk: String (25.0)
ind_c: Real (16.4)
nbcar: Real (16.4)

从 .mid 开始:

Geometry: Unknown (any)
Feature Count: 2278213
Extent: (48385.790000, 1620790.500000) - (1197778.210000, 2676806.350000)
Layer SRS WKT:
PROJCS["unnamed",
    GEOGCS["unnamed",...]

idINSPIRE: String (30.0)
id: String (21.0)
4

1 回答 1

0

A solution : I converted the .mif in two steps, using .shp and merging the DBF file generated with the original one before converting to GeoJson, as relations are .mif/.mid and .shx/.shp/.dbf.

于 2017-03-02T11:57:41.147 回答