[gdal-dev] Re: Are these WFS issues worth filing tickets?

Even Rouault even.rouault at mines-paris.org
Tue Jan 10 08:32:14 EST 2012

> But is it ever safe to
> guess the schema by investigating just the first feature? If the
> attribute is not compulsory in the schema and the value
> happens to be empty then it is not included at all in the GML of
> the first feature. Doesn't this mean that GML driver creates a
> schema without that attribute even the following features may
> have values for it?

No, it is not completely reliable and you have perfectly identified the cases
where it doesn't work. The attributes that are not found in the first feature
will be ignored if found in the following features. The alternative would be ...
to downloaded the full GetFeature document ;-) (or better, manage to write a
better XSD parser)

> -Jukka Rahkonen-_______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list