> 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
