I have not had chance to work with app-schema much, I found the following
on using app-schema for INSPIRE:
*
http://www.eurogeographics.org/sites/default/files/GeoServer-AppSchema_M.Lambois.pdf
If you find anything else please let the user-list know.
--
Jody Garnett
On 13 May 2015 at 08:04, Stefano Costa <stefano.co...@geo-solutions.it>
wrote:
> 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
> <http://inspire.ec.europa.eu/schemas/lcv/3.0/LandCoverVector.xsd>.
>
> 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
> <http://schemas.opengis.net/iso/19139/20070417/gss/geometry.xsd> 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
> <http://osgeo-org.1560.x6.nabble.com/App-schema-How-to-map-Oracle-Geometry-into-GML-td4984781.html>
> 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
>
>
------------------------------------------------------------------------------
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