Hi all,
I guess I wrongly posted this question to the devel list, so I'm
reposting it here.
I'm trying to write a mapping for the Land Cover Vector application
schema.
I'm having trouble to have a GML geometry properly encoded.
The feature type I'm mapping is LandCoverDataset and the attribute
mapping is the following:
<AttributeMapping>
<targetAttribute>
lcv:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_BoundingPolygon/gmd:polygon
</targetAttribute>
<targetAttributeNode>gml:MultiSurfacePropertyType</targetAttributeNode>
<sourceExpression>
<OCQL>geom</OCQL>
</sourceExpression>
</AttributeMapping>
The problem is that the geometry is not encoded to GML,, but is simply
converted to WKT:
...
<lcv:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_BoundingPolygon>
<gmd:polygon>MULTIPOLYGON (((598595.3642678041
4852173.906526912, 598595.3642678041 4860263.240555132,
603971.0691073069 4860263.240555132, 603971.0691073069
4852173.906526912, 598595.3642678041 4852173.906526912)))
</gmd:polygon>
</gmd:EX_BoundingPolygon>
</gmd:geographicElement>
</gmd:EX_Extent>
</lcv:extent>
...
The definition of the gmd:polygon property is found in this schema and
goes like this:
<xs:complexType name="GM_Object_PropertyType">
<xs:sequence minOccurs="0">
<xs:element ref="gml:AbstractGeometry"/>
</xs:sequence>
<xs:attributeGroup ref="gco:ObjectReference"/>
<xs:attribute ref="gco:nilReason"/>
</xs:complexType>
I did some googling and found this somewhat relevant discussion that led
me to think the issue might be due to gmd:polygon not being a
gml:GeometryPropertyType but its (evil?) brother, providing the same
functionality (container for a geometry element) and at the same time
making it impossible for GeoTools to handle the geometry element
properly.
Is there any way to work around this... or am I simply missing
something?
Thanks,
Stefano
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoTools-Devel mailing list
geotools-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users