Thanks Jody, I had a quick look to the document but unfortunately it doesn't say anything about geometry mapping.
If I discover something new I will share it with the list. Best regards, Stefano Il giorno mer, 13/05/2015 alle 09.37 -0700, Jody Garnett ha scritto: > 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. > > 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 > > > ------------------------------------------------------------------------------ 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