We have problems to get an specific Application schema to work. We try to
reference to an application schema (amxs) that contains references to common
OGC geometry types. This might be in conflict with something, since we only
recieve answers where the geometry is left out. See the result of the
request
http://daimtest.lfv.se/geoserver/wfs?request=GetFeature&typeName=amxs:AM_AerodromeReferencePoint
<http://daimtest.lfv.se/geoserver/wfs?request=GetFeature&typeName=amxs:AM_AerodromeReferencePoint>
Any help or suggestion would be really nice!
Snippet of Schema file
+++++++++++++++++++++++++++++++
Geometry Constructs - Limits is handled as its own construct
++++++++++++++++++++++++++++++++++
-->
<xs:complexType name="GeometryChoiceType">
<xs:choice>
<xs:element ref="gml:Polygon"/>
<xs:element ref="gml:Point"/>
<xs:element ref="gml:LineString"/>
<xs:element ref="gml:MultiPoint"/>
</xs:choice>
</xs:complexType>
Full schema:
http://daimtest.lfv.se/schemas/applications/aerodromeMapping/amxs.xsd
<http://daimtest.lfv.se/schemas/applications/aerodromeMapping/amxs.xsd>
Mapping File Used:
--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.geotools.org/app-schema
AppSchemaDataAccess.xsd">
<namespaces>
<Namespace>
<prefix>amxs</prefix>
<uri>http://www.eurocontrol.int/aim/amxs</uri>
</Namespace>
</namespaces>
<sourceDataStores>
<DataStore>
<id>DataStoreInfoImpl--4abdfd16:144022abcc0:-7fed</id>
<parameters>
<Parameter>
<name>dbtype</name>
<value>Oracle</value>
</Parameter>
…
</DataStore>
</sourceDataStores>
<targetTypes>
<FeatureType>
<schemaUri>http://daimtest.lfv.se/schemas/applications/aerodromeMapping/amxs.xsd</schemaUri>
</FeatureType>
</targetTypes>
<typeMappings>
<FeatureTypeMapping>
<mappingName>Aerodrome reference point mapping</mappingName>
<sourceDataStore>DataStoreInfoImpl--4abdfd16:144022abcc0:-7fed</sourceDataStore>
<sourceType>AM_AERODROMEREFERENCEPOINT</sourceType>
<targetElement>amxs:AM_AerodromeReferencePoint</targetElement>
<attributeMappings>
<AttributeMapping>
<targetAttribute>amxs:state/amxs:AM_AerodromeReferencePointState/amxs:name</targetAttribute>
<sourceExpression><OCQL>NAME</OCQL></sourceExpression>
</AttributeMapping>
…
<AttributeMapping>
<targetAttribute>amxs:state/amxs:AM_AerodromeReferencePointState/amxs:geometry</targetAttribute>
<sourceExpression><OCQL>GEOPNT</OCQL></sourceExpression>
</AttributeMapping>
</attributeMappings>
</FeatureTypeMapping>
</typeMappings>
</as:AppSchemaDataAccess>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problems-with-App-schema-geometry-mapping-tp5147612.html
Sent from the GeoServer - User mailing list archive at Nabble.com.