I have a WFS service I am running using the app-schema extension.  (This is
using the GeoSciML-Portrayal schema for the GeologicUnits polygons.)  My
workspace name is "gsmlp" and the source data is in PostGIS.  (Attached is
my mapping file.)


The error I get when running is WFS GetFeature request is:

    The prefix "null" for element "null:GeologicUnitView" is not bound.

The request is

http://maps.dgs.udel.edu/geoserver/gsmlp/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=gsmlp:GeologicUnitView&maxFeatures=1


It also fails using WFS 1.0.0 (java.lang.ClassCastException:
org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to
org.opengis.feature.simple.SimpleFeatureType) but actually returns a
response with WFS 2.0.0.


A strange behavior is that if I make the gsmlp worksapce the default
workspace, then this app-schema service works great.  As well, if I enable
"Strict CITE Compliance" for the WFS:gsmlp service, then the service works
fine as well.  However, in these cases when the gsmlp WFS services (app
schema based) work (i.e., they return valid WFS GetFeature responses), then
none of the other WFS services I have on the machine work properly.  Here
is an example of a WFS service on the server.

http://maps.dgs.udel.edu/geoserver/DGS_Surficial_and_Contact_Geology/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=DGS_Surficial_and_Contact_Geology:US-DE_DGS_100k_Surficial_Geology&maxFeatures=1

The fact that when the app-schema gsmlp WFS service works, none of the
other WFS services work, and vice-versa, makes me think the mapping file is
correct but geoserver is not utilizing xmlns:gsmlp="
http://xmlns.geosciml.org/geosciml-portrayal/2.0"; in the feature response.


Any suggestions on what I can try?   Thanks.

- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
[email protected]
<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema";
    xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
	<namespaces>
		<Namespace>
			<prefix>gsmlp</prefix>
			<uri>http://xmlns.geosciml.org/geosciml-portrayal/2.0</uri>
		</Namespace>
		<Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml</uri>
        </Namespace>
	</namespaces>
	<sourceDataStores>
		<DataStore>
			<id>GeologicUnitViewStore</id>
			<parameters>
				<Parameter>
					<name>Expose primary keys</name>
					<value>true</value>
				</Parameter>				
				<Parameter>
					<name>dbtype</name>
					<value>postgisng</value>
				</Parameter>
				<Parameter>
					<name>host</name>
					<value>localhost</value>
				</Parameter>
				<Parameter>
					<name>port</name>
					<value>5432</value>
				</Parameter>
				<Parameter>
					<name>database</name>
					<value>mydatabase</value>
				</Parameter>
				<Parameter>
					<name>schema</name>
					<value>public</value>
				</Parameter>
				<Parameter>
					<name>user</name>
					<value>username</value>
				</Parameter>
				<Parameter>
					<name>passwd</name>
					<value>password</value>
				</Parameter>
			</parameters>
		</DataStore>
	</sourceDataStores>
	<targetTypes>
		<FeatureType>
			<schemaUri>http://schemas.geosciml.org/geosciml-portrayal/2.0/geosciml-portrayal.xsd</schemaUri>
		</FeatureType>
	</targetTypes>
	<typeMappings>
		<FeatureTypeMapping>
			<sourceDataStore>GeologicUnitViewStore</sourceDataStore>
			<sourceType>geosci_geolunitview100k</sourceType>
			<targetElement>gsmlp:GeologicUnitView</targetElement>
			<attributeMappings>
				<AttributeMapping>
					<targetAttribute>gsmlp:identifier</targetAttribute>
					<sourceExpression>
						<OCQL>identifier</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:name</targetAttribute>
					<sourceExpression>
						<OCQL>name</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:description</targetAttribute>
					<sourceExpression>
						<OCQL>description</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:geologicUnitType</targetAttribute>
					<sourceExpression>
						<OCQL>geologicUnitType</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:rank</targetAttribute>
					<sourceExpression>
						<OCQL>rank</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:lithology</targetAttribute>
					<sourceExpression>
						<OCQL>lithology</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:geologicHistory</targetAttribute>
					<sourceExpression>
						<OCQL>geologicHistory</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:observationMethod</targetAttribute>
					<sourceExpression>
						<OCQL>observationMethod</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:positionalAccuracy</targetAttribute>
					<sourceExpression>
						<OCQL>positionalAccuracy</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:source</targetAttribute>
					<sourceExpression>
						<OCQL>source</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:geologicUnitType_uri</targetAttribute>
					<sourceExpression>
						<OCQL>geologicUnitType_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:representativeLithology_uri</targetAttribute>
					<sourceExpression>
						<OCQL>representativeLithology_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:representativeAge_uri</targetAttribute>
					<sourceExpression>
						<OCQL>representativeAge_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:representativeOlderAge_uri</targetAttribute>
					<sourceExpression>
						<OCQL>representativeOlderAge_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:representativeYoungerAge_uri</targetAttribute>
					<sourceExpression>
						<OCQL>representativeYoungerAge_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:specification_uri</targetAttribute>
					<sourceExpression>
						<OCQL>specification_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:metadata_uri</targetAttribute>
					<sourceExpression>
						<OCQL>metadata_uri</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:genericSymbolizer</targetAttribute>
					<sourceExpression>
						<OCQL>genericSymbolizer</OCQL>
					</sourceExpression>
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>gsmlp:shape</targetAttribute>
					<sourceExpression>
						<OCQL>geom</OCQL>
					</sourceExpression>
				</AttributeMapping>
			</attributeMappings>
		</FeatureTypeMapping>
	</typeMappings>
</as:AppSchemaDataAccess>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to