All ComplexType definitions in GML 3.2 subpackages are empty
------------------------------------------------------------
Key: GEOT-3680
URL: https://jira.codehaus.org/browse/GEOT-3680
Project: GeoTools
Issue Type: Bug
Components: xsd-gml
Affects Versions: 8.0-M1
Reporter: Ben Caradoc-Davies
Assignee: Justin Deoliveira
Priority: Critical
Every ComplexType defined in the GML 3.2 G??Schema classes is defined with
properties Collections.<PropertyDescriptor>emptyList(), causing the definition
to be empty. This prevents use of these types in app-schema.
Affected classes are:
GCOSchema
GMLSchema
GMXSchema
GSRSchema
GSSSchema
GTSSchema
Was <followComplexTypes>true</followComplexTypes> used to generate these?
Alistair Ritchie reports:
gsml:MappedFeature has a resolutionScale property (used to provide the map
scale). The value is provided as a gmd:MD_RepresentativeFraction value.
The following attribute mapping:
{noformat}
<AttributeMapping>
<targetAttribute>gsml:resolutionScale/gmd:MD_RepresentativeFraction/gmd:denominator/gco:Integer</targetAttribute>
<sourceExpression><OCQL>250000</OCQL></sourceExpression>
</AttributeMapping>
{noformat}
should (user error notwithstanding) provide the following (valid!) XML
<gsml:resolutionScale>
<gmd:MD_RepresentativeFraction>
<gmd:denominator>
<gco:Integer>250000</gco:Integer>
</gmd:denominator>
</gmd:MD_RepresentativeFraction>
</gsml:resolutionScale>
but instead results in the exception:
{noformat}
29 Jun 13:32:41 ERROR [geoserver.ows] -
java.lang.RuntimeException: Error applying mapping with targetAttribute
gsml30:resolutionScale/gmd:MD_RepresentativeFraction/gmd:denominator/gco:Integer
at
org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:818)
at
org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:278)
at
org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:64)
at org.geotools.xml.Encoder.encode(Encoder.java:677)
at org.geotools.xml.Encoder.encode(Encoder.java:566)
at
org.geoserver.wfs.xml.GML32OutputFormat.encode(GML32OutputFormat.java:80)
at
org.geoserver.wfs.xml.GML3OutputFormat.complexFeatureStreamIntercept(GML3OutputFormat.java:276)
at
org.geoserver.wfs.xml.GML3OutputFormat.write(GML3OutputFormat.java:240)
at
org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:141)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:757)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:238)
[...]
Caused by: java.lang.IllegalArgumentException: gmd:denominator is not a valid
location path for type
http://www.isotc211.org/2005/gmd:MD_RepresentativeFraction_Type.
gmd:denominator ns: http://www.isotc211.org/2005/gmd,
MD_RepresentativeFraction_Type properties:
at org.geotools.data.complex.filter.XPath.set(XPath.java:685)
at org.geotools.data.complex.filter.XPath.set(XPath.java:563)
at
org.geotools.data.complex.DataAccessMappingFeatureIterator.setAttributeValue(DataAccessMappingFeatureIterator.java:526)
at
org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:805)
... 73 more
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel