A GetFeature request to a WFS may contain queries to different typeNames. To be able to tell apart the data belonging to queries to different typeNames, it is necessary to have typeName information about the feature.
Queries to different typeNames may occur as a part of a search for features that are served by the WFS webservice.
Currently the GML reader adds the fid to the features that it reads, but not the typeName. The suggestions is to also include the typeName.
Attached is a patch that does what is proposed above: adding the typeName to the features read in via the GML reader
As an additional note: when adding the typeName to features read in via the GML reader is approved of, then I would be glad to submit a patch for GeoJSON as well.
With kind regards,
Edwin Commandeur
commandeur.edwin@gmail.com
username pending: ecommand