<div>Hi,</div>
<div>&nbsp;</div>
<div>I tried to convert a GML file to Shapefile whereas the GML contains points, linestrings and polygons (see GML snippet below). </div>
<div>&nbsp;</div>
<div>The command goes something like this: % ogr2ogr -f &quot;ESRI Shapefile&quot; outdir mydata.gml</div>
<div>&nbsp;</div>
<div>Now, what I&#39;m getting out is mydata.shp (+.dbf/shx) and alayer.shp (+.dbf/shx), where mydata contains point type and alayer contains linestring type.&nbsp; =&gt; Why is there an additional&nbsp;linestring shapefile but no polygon shapefile?</div>

<div>&nbsp;</div>
<div>-- Stefan</div>
<div>&nbsp;</div>
<div>GML snippet of mydata.gml:</div>
<div>...</div>
<div>&lt;gml:featureMember&gt;<br>&lt;osm:way fid=&quot;4304746&quot;&gt;<br>&lt;osm:id&gt;4304746&lt;/osm:id&gt;<br>&lt;osm:timestamp&gt;2008-03-25T21:31:01+00:00&lt;/osm:timestamp&gt;<br>&lt;osm:user&gt;Schäuble Michele&lt;/osm:user&gt;<br>
&lt;osm:geometryProperty&gt;<br>&lt;gml:polygonMember&gt;<br>&lt;gml:Polygon&gt;<br>&lt;gml:outerBoundaryIs&gt;<br>&lt;gml:LinearRing&gt;<br>&lt;gml:coordinates&gt;8.8971245,47.2066117 8.8958854,47.2065926 8.8951875,47.2061166 8.893922,47.2073953 8.8921772,47.2079074&nbsp; ...&nbsp; 8.8971383,47.2051962 8.8962002,47.2044168 8.8955145,47.2051218 8.8966504,47.2060895 8.8971132,47.2060825 8.8971245,47.2066117 &lt;/gml:coordinates&gt;<br>
&lt;/gml:LinearRing&gt;<br>&lt;/gml:outerBoundaryIs&gt;<br>&lt;/gml:Polygon&gt;<br>&lt;/gml:polygonMember&gt;<br>&lt;/osm:geometryProperty&gt;<br>&lt;osm:natural&gt;water&lt;/osm:natural&gt;<br>&lt;/osm:way&gt;<br>&lt;/gml:featureMember&gt;</div>

<div>&lt;gml:featureMember&gt;<br>&lt;osm:way fid=&quot;4684550&quot;&gt;<br>&lt;osm:id&gt;4684550&lt;/osm:id&gt;<br>&lt;osm:timestamp&gt;2008-04-28T16:55:00+01:00&lt;/osm:timestamp&gt;<br>&lt;osm:user&gt;Schäuble Michele&lt;/osm:user&gt;<br>
&lt;osm:geometryProperty&gt;<br>&lt;gml:LineString&gt;<br>&lt;gml:coordinates&gt;8.8370022,47.2301952 8.8368472,47.2301807 8.8355139,47.2296331 8.832977,47.2291911 8.8297158,47.2285296 8.8256068,47.2278459 8.8223489,47.2273065 8.8188251,47.2267218 8.8183819,47.2267204 &lt;/gml:coordinates&gt;<br>
&lt;/gml:LineString&gt;<br>&lt;/osm:geometryProperty&gt;<br>&lt;osm:highway&gt;primary&lt;/osm:highway&gt;<br>&lt;/osm:way&gt;<br>&lt;/gml:featureMember&gt;</div>
<div>....</div>
<div>&nbsp;</div>