我有两个 Ubuntu 环境:一个安装了 GDAL 1.10.1,第二个安装了 GDAL 1.9.0。
如果我遇到环境。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" } }, " features": [ { "type": "Feature", "properties": { "Name": "TV01-CTRA.ALMERÍA", "description": "\n \n
</div> \n Ver detalle cámara</ a> \n \n ", "timestamp": null, "begin": null, "end": null, "altitudeMode": null, "tessellate": -1, "extrude": -1, "visibility": -1,“drawOrder”:空,“图标”:空},“几何”:{“类型”:“点”,“坐标”:[-4。35349321365356, 36.720241546630902 ] } },
但
如果我在 GDAL 1.10.1 中运行相同的命令:
ogr2ogr -f GeoJSON filename.geojson filename.kml
filename.geojson具有以下结构: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Name": “TV01-CTRA.ALMERÍA”、“描述”:“</div> Ver detalle cámara</a>”}、“几何”:{“类型”:“点”、“坐标”:[-4.35349321365356、36.720241546630902] } } ,
对我来说有很多差异(\n、制表符、空格、crs 行、...),我需要生成第二个版本,即我需要生成第二个结构,但我必须将命令运行到 GDAL 1.10.1 版本。
我必须添加哪些参数?
谢谢!!!