GML 3.2 parsing delegates to GML2 parsing which in turn does not set the
default gemetry property
-------------------------------------------------------------------------------------------------
Key: GEOT-2408
URL: http://jira.codehaus.org/browse/GEOT-2408
Project: GeoTools
Issue Type: Bug
Components: ext xml-xsd
Affects Versions: 2.6-M1
Reporter: Gabriel Roldán
Assignee: Gabriel Roldán
Fix For: 2.6-M2
GML2ParsingUtils.featureType sets the feature type default geometry property by
avoiding the gml:location or any other geometry property in the gml namespace,
which is fine. Problem being GML 3.2 parsing delegates on it and since GML 3.2
has a different namespace ({{http://www.opengis.net/gml/3.2}} instead of
{{http://www.opengis.net/gml}}), the default geometry property is not set and
defaults to gml:location as the first geometry property found by the feature
type instance when it lazily looks for it.
A quick and hackish fix would be to make a startsWith comparison for the gml
namespace instead of an equals one. Yet I don't see an easy path for a non
hackish solution.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel