[gdal-dev] GML to .shp Using OGR

Darren Cope darrencope at gmail.com
Mon Nov 29 10:19:45 EST 2010


Hi all,

Hopefully this is also the forum to post OGR-related enquiries.  I don't see
a specific OGR list.  

I have a very large .gml file with multiple layers in it. I would like to
export one of these layers to .shp. It is a polygon layer (of lakes).
However, I am getting the error:

ERROR 1: Unrecognised geometry type <Surface>.

The ogr command I was using:

ogr2ogr -f "ESRI Shapefile" output.shp input.gml layername

Any thoughts? Is it possible the polygon layer is somehow incorrectly
defined as a surface in the GML? Any way I can force it to be a polygon? Or
is it something else entirely? I don't often work with .gml, so may be
missing something obvious...

Cheers,

Darren

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GML-to-shp-Using-OGR-tp5784681p5784681.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list