Hi,
Please help me for my question that has confused me for two
weeks!!!!!!!!!!!!
I am using the latest app-schema with oracle for data access. I download
and test the example configuration files that contains gsml_GeologicUnit &
gsml_MappedFeature. It works very well. Through WFS, the data in Oracle can
be mapped to GeoSciML files correctly.
Thus I continue to try to implement the gsml:borehole by myself. I add a new
folder under the \workspaces\gsml. In the mapping file, I define all the
namespaces like below:
<namespaces>
<Namespace>
<prefix>gml</prefix>
<uri>http://www.opengis.net/gml</uri>
</Namespace>
<Namespace>
<prefix>gsml</prefix>
<uri>urn:cgi:xmlns:CGI:GeoSciML:2.0</uri>
</Namespace>
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink</uri>
</Namespace>
<Namespace>
<prefix>sa</prefix>
<uri>http://www.opengis.net/sampling/1.0</uri>
</Namespace>
<Namespace>
<prefix>om</prefix>
<uri>http://www.opengis.net/om/1.0.0</uri>
</Namespace>
<Namespace>
<prefix>cv</prefix>
<uri>http://www.opengis.net/cv/0.2.1</uri>
</Namespace>
<Namespace>
<prefix>swe</prefix>
<uri>http://www.opengis.net/swe/1.0.1</uri>
</Namespace>
<Namespace>
<prefix>sml</prefix>
<uri>http://www.opengis.net/sensorML/1.0.1</uri>
</Namespace>
</namespaces>
I don't define a FeatureType, instead I just defile as below:
<!-- <catalog>../../commonSchemas/catalog.xml</catalog>-->
<catalog>../../../schemas/catalog.xml</catalog>
<targetTypes>
<FeatureType>
<schemaUri>http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
</FeatureType>
</targetTypes>
In the mapping part, only three elements are mapped as below:
<AttributeMapping>
<targetAttribute>
gsml:Borehole
</targetAttribute>
<idExpression>
<OCQL>strConcat('objectid.',SHAPENR)</OCQL>
</idExpression>
</AttributeMapping>
<AttributeMapping>
<targetAttribute>
gml:name
</targetAttribute>
<sourceExpression>
<OCQL>BHOLE_NO</OCQL>
</sourceExpression>
</AttributeMapping>
<AttributeMapping>
<targetAttribute>
gsml:Borehole/sa:length
</targetAttribute>
<sourceExpression>
<OCQL>LENGTH</OCQL>
</sourceExpression>
<ClientProperty>
<name>uom</name>
<value>'urn:ogc:def:uom:UCUM:m'</value>
</ClientProperty>
</AttributeMapping>
OK, it is quite simple. I don't get any error message when starting the
tomcat 6.0. But when I access
http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=gsml:Borehole
I find only the prefix with 'gml' & 'gsml' are correct, however the 'sa'
prefix is replaced by 'null'. I attach a picture below.
http://old.nabble.com/file/p27743964/borehole.jpg
Thus, I think my questions are:
1. Is there any example configuration for gsml:borehole? If anyone has map
the gsml:borehole successfully, could you help me?
2. Why all namespaces expect for 'gml' or 'gsml' defined in the mapping file
are not correct? Is this a bug? Or because of my configuration?
Thank you very much if you can help me!!!!!
Ying
--
View this message in context: http://old.nabble.com/Help-me!!!!!-App-schema-Oracle-DataAccess-producing-"null"-prefix-for-namespaces-in-gsml%3Aborehole-tp27743964p27743964.html
Sent from the GeoServer - User mailing list archive at Nabble.com.