Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

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

$
0
0

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' <ouputfolder> <input kml>

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.


Viewing all articles
Browse latest Browse all 397

Latest Images

Trending Articles



Latest Images