All

I am having difficulties with GML loading in PostGIS with ogr2ogr.

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.

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


Unfortunately without result.
Is anyone familiar with this problem of multiple geometry in GML. And is
there a solution?

Attached you will find a selection of the GML.

Hope to hear from you.

Kind regards,
Stefan van der Hoorn

Attachment: buildingpart_selection.gml
Description: Binary data

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to