[gdal-dev] ogrinfo only sees 1 polygon in GML file
peifer
peifer at gmx.eu
Wed Jan 29 07:49:46 PST 2014
Even Rouault wrote
> Hermann,
>
> It is (was) a limitation of the GML driver. The issue is that from its
> point
> of view there's only one feature AQD_ReportingHeader, but you are
> interested
> into its sub-elements AQD_Zone, and the GML parser isn't smart enough to
> guess
> your intention.
>
> Two solutions :
> - one that implies a text editor to rename a few elements in the GML
> itself.
> Rename "featureMember" into "foobaroranythingyouwant" and "content>" into
> "contentMember>" (needs to end with Member). The OGR GML parser will then
> find
> the sub features (remove the .gfs file before)
>
> - upgrade to latest trunk and use the attached AQD_Zones.gfs file. It is a
> modification of the base AQD_Zones.gfs file produced when reading the
> first time
> the GML file with the following changes : the ElementPath for the feature
> has
> been modified to include full path from top level XML element, and the
> ElementPath of attributes have been modified to remove content|AQD_Zone|
> from
> their path.
I was indeed experimenting with the ElementPath value in the gfs file, but
couldn't see any effect (before upgrading to latest trunk). After upgrading,
all features are detected, as expected.
Thanks for improving the GML driver so quickly, Hermann
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ogrinfo-only-sees-1-polygon-in-GML-file-tp5100685p5100746.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list