Markus,

sourceType must be the name of the source type (table or view name). If you want fmis:Fertilization output, use <targetElement>fmis:Fertilization</targetElement>; this element specifies the output feature type.

Kind regards,
Ben.

On 18/07/17 02:24, Nuno Oliveira wrote:
Hi,

You are using fmis:Fertilization as the target element on the ID mapping.
When using the idExpression the target attribute must be an existing element
in this case it should be fmis:Crop.

Regards,

Nuno Oliveira

On 07/17/2017 03:07 PM, Markus Jackenkroll wrote:
Dear list,

I implemented my own application schema on geoserver. The user interface
shows workspace, store and layer as enabled. Next, I tried to request
the WFS by
http://mygeoserver.uni-hohenheim.de:8080/geoserver/wfs?service=WFS&Version=1.1.0&Request=GetFeature&typeName=fmis:Fertilization.

It responded with an error:
Error occurred getting features
http://myserver.uni-hohenheim.de/XSD:Fertilization not found. Available:
[http://myserver.uni-hohenheim.de/XSD:Crop]

I suspect the error in the mapping:
...
     <typeMappings>
         <FeatureTypeMapping>
             <sourceDataStore>datastoreshp</sourceDataStore>
             <sourceType>Fertilization</sourceType>
             <targetElement>fmis:Crop</targetElement>
             <attributeMappings>
                 <AttributeMapping>
                     <targetAttribute>
                         fmis:Fertilization
                     </targetAttribute>
                     <idExpression>
                         <OCQL>ID</OCQL>
                     </idExpression>
                 </AttributeMapping>
...

"fmis" is the namespace, "Fertilization" the schema and "Crop" is the
element in the mapped XSD. By "datastoreshp" I connect to a shape which
feature class is named "Fertilization".

Do you have an idea what is causing this behaviour?

Best
Markus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to