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

<div id="WISESTAMP_SIG_6471"><span style="font-size: 13.3px; font-family: Verdana, Arial, Helvetica, sans-serif;"><div style="border: 1px solid #e5e5e5;background-color: #f8f8f8;padding: 0.8em 0.8em 0.3em 0.8em;"><div style="margin: 0 0 8px 0">

<p style="margin:0; "><span><strong><img style="float: left; margin-left: 5px; margin-right: 5px;" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" width="160" height="120">Paul Meems </strong><br>

<span>Release manager, configuration manager</span><br><span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br>

<span>Dutch speaking users.</span><br><a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0; "><strong><br></strong></p></div><span style="color: gray">My profiles: </span> <a href="http://nl.linkedin.com/in/paulmeems/" style="text-decoration: underline"><img width="16" height="16" alt="LinkedIn" style="padding: 0px 0px 5px 0px; vertical-align: middle;" border="0" src="http://images.wisestamp.com/linkedin.png"></a> <a href="http://twitter.com/mapwindow_nl" style="text-decoration: underline"><img width="16" height="16" alt="Twitter" style="padding: 0px 0px 5px 0px; vertical-align: middle;" border="0" src="http://images.wisestamp.com/twitter.png"></a><br>

</div><img src="http://s.wisestamp.com/pixel.png?p=chrome&amp;v=2.0.4.0&amp;t=1291044398578&amp;u=2287335&amp;e=8102" width="1" height="1"></span></div><br><br><div class="gmail_quote">2010/11/29 Darren Cope <span dir="ltr">&lt;<a href="mailto:darrencope@gmail.com">darrencope@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi all,<br>
<br>
Hopefully this is also the forum to post OGR-related enquiries.  I don&#39;t see<br>
a specific OGR list.<br>
<br>
I have a very large .gml file with multiple layers in it. I would like to<br>
export one of these layers to .shp. It is a polygon layer (of lakes).<br>
However, I am getting the error:<br>
<br>
ERROR 1: Unrecognised geometry type &lt;Surface&gt;.<br>
<br>
The ogr command I was using:<br>
<br>
ogr2ogr -f &quot;ESRI Shapefile&quot; output.shp input.gml layername<br>
<br>
Any thoughts? Is it possible the polygon layer is somehow incorrectly<br>
defined as a surface in the GML? Any way I can force it to be a polygon? Or<br>
is it something else entirely? I don&#39;t often work with .gml, so may be<br>
missing something obvious...<br>
<br>
Cheers,<br>
<br>
Darren<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/GML-to-shp-Using-OGR-tp5784681p5784681.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/GML-to-shp-Using-OGR-tp5784681p5784681.html</a><br>


Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br></div>