Hi,<br><br>OGR doesn't handle the role element. It should have just skipped it. I'm looking into it.<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 1:31 AM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
I tried to convert a GML file which contains polygon with ogr2ogr, version 1.8.1.<br>
Conversion fails with a message ERROR 1: Unrecognised geometry type <role>.<br>
ERROR 1: Invalid surfaceMember<br>
<br>
Here is an example of the GML (Inspire Administration units feature type). Is<br>
the error in the GML of in GDAL side?<br>
<br>
<au:geometry><br>
<gml:MultiSurface gml:id="ms26118023" srsName="EPSG:3067"><br>
<gml:surfaceMember xlink:role="main"><br>
<gml:Surface gml:id="pg26128258"><br>
<gml:patches><br>
<gml:PolygonPatch><br>
<gml:exterior><br>
<gml:LinearRing><br>
<gml:posList>6606081.581 222640.662 6628316.514 222476.706 6642057.967<br>
...truncated...<br>
<br>
221108.392 6646423.430 221041.479 6647117.697 220861.647 6647572.778 220157.320<br>
6642262.002 265381.743 6616098.198 255142.309 6615849.108 253746.902 6606209.473<br>
239601.928 6606081.581 222640.662</gml:posList><br>
</gml:LinearRing><br>
</gml:exterior><br>
</gml:PolygonPatch><br>
</gml:patches><br>
</gml:Surface><br>
</gml:surfaceMember><br>
</gml:MultiSurface><br>
</au:geometry><br>
<br>
-Jukka Rahkonen-<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>