Thursday, 3 May 2018

KML to Shapefile using GDAL (LIBKML) - MultiGeometry data not transforming



I am trying to convert a KML file to Shapefile using GDAL (ogr2ogr). Regular KML files convert fine but KML files containing MultiGeometry features (eg: Geometry containing both Point and Polygon) do not get transformed.


The output is simply a blank shapefile containing no shapes or attributes.


I have tried this command:


ogr2ogr -overwrite -f "ESRI Shapefile" -where OGR_GEOMETRY='MultiGeometry'  

For an example, KML file which has MultiGeometry, you can see the us_states.kml hosted by Google.


US States KML - Google.com


Other info: I am using 'GDAL 1.10.1, released 2013/08/26' for windows.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...