[gdal-dev] GML to .shp Using OGR

Paul Meems bontepaarden at gmail.com
Mon Nov 29 10:27:56 EST 2010


The Surface tag is not supported before GDAL/OGR v1.8
I had a similar GML a few weeks back.
Using the beta release of GDAL/OGR v1.8 you can convert.

--
Paul


 *Paul Meems *
Release manager, configuration manager
and forum moderator of MapWindow GIS.
www.mapwindow.org

Owner of MapWindow.nl - Support for
Dutch speaking users.
www.mapwindow.nl

*
*
My profiles: [image: LinkedIn] <http://nl.linkedin.com/in/paulmeems/> [image:
Twitter] <http://twitter.com/mapwindow_nl>


2010/11/29 Darren Cope <darrencope at gmail.com>

>
> 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.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101129/a67294e2/attachment.html


More information about the gdal-dev mailing list