<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>All</div><div><br></div>I am having difficulties with GML loading in PostGIS with ogr2ogr. <br><div><br></div><div>It is a GML of buildingparts containing both polygons and 
(label)-points. 
In this example (below) I have a selection of 9 objects. The number of 
polygons is 9 and there are 6 point-objects. So there are 6 object with 
both polygon and point geometry.<br></div><div><br></div><div><pre><code>ogr2ogr -skipfailures -lco OVERWRITE=yes --config PG_USE_COPY YES -gt 50000 -lco LAUNDER=NO -f "PostgreSQL" PG:"host=xxxx user=xxxx dbname=xxxx password=xxxx" "buildingpart.gml" -sql "select * from buildingpart where OGR_GEOMETRY = 'MULTIPOLYGON'" -nln test.buildingpart_multipolygon_selection

ogr2ogr -skipfailures -lco OVERWRITE=yes --config PG_USE_COPY YES -gt 50000 -lco LAUNDER=NO -f "PostgreSQL" PG:"host=xxxx user=xxxx dbname=xxxx password=xxxx" "buildingpart.gml" -sql "select * from buildingpart where OGR_GEOMETRY = 'POINT'" -nln test.buildingpart_point_selection</code></pre><pre><span style="font-family:arial,sans-serif"><br></span></pre>Unfortunately without result.<br>Is anyone familiar with this problem of multiple geometry in GML. And is there a solution?<br><br>Attached you will find a selection of the GML.</div><div><br></div><div>Hope to hear from you.</div><div><br></div><div>Kind regards, </div><span class="HOEnZb"><font color="#888888"><div>Stefan van der Hoorn</div><div><br></div></font></span></div>
</div><br></div>