我使用GDAL ogr2ogr 1.10.1或1.9.0版本得到不同的geojson

时间:2015-10-05 13:11:24

标签: geojson gdal ogr2ogr

我有两个Ubuntu环境:一个安装了GDAL 1.10.1,第二个安装了GDAL 1.9.0。

如果我遇到env。 GDAL 1.9.0:ogr2ogr -f GeoJSON filename.geojson filename.kml filename.geojson 具有以下结构:

  

{   “type”:“FeatureCollection”,   “crs”:{“type”:“name”,“properties”:{“name”:“urn:ogc:def:crs:OGC:1.3:CRS84”}},   “特征”: [   {“type”:“Feature”,“properties”:{“Name”:“TV01-CTRA.ALMERÍA”,“description”:“\ n \ n

  < / DIV>   \ n Verdetallecámara< / a>   \ n \ n“,”timestamp“:null,”begin“:null,”end“:null,”altitudeMode“:null,”tessellate“: - 1,”extrude“: - 1,”visibility“: - 1 ,“drawOrder”:null,“icon”:null},   “geometry”:{“type”:“Point”,“coordinates”:[ - 4.35349321365356,36.720241546630902]}},

  

如果我在GDAL 1.10.1中运行相同的命令:ogr2ogr -f GeoJSON filename.geojson filename.kml    filename.geojson 具有以下结构:   {   “type”:“FeatureCollection”,   “特征”: [   {“type”:“Feature”,“properties”:{“Name”:“TV01-CTRA.ALMERÍA”,“Description”:   “< / DIV>   Verdetallecámara< / a>“},    “geometry”:{“type”:“Point”,“coordinates”:[ - 4.35349321365356,36.720241546630902]}}   ,

我有很多不同之处(\ n,标签,空格,crs行......),我需要生成第二个版本,也就是说,我需要生成第二个结构,但我必须运行命令进入GDAL 1.10.1版本。

我必须添加哪些参数?

感谢!!!

0 个答案:

没有答案