My complex feature set is perfectly able to respond all information mapped
for general GetFeature request. But when I try to reduce information by
using wfs:propertyName before filter – it crashes with a message, e.g.:
‘Requested property: localityName is not available erm:SamplingFeature..’
GS LOG says that:
2014-11-04 11:11:42,971 INFO [geoserver.wfs] -
Request: getServiceInfo
2014-11-04 11:11:43,525 ERROR [geoserver.ows] -
org.geoserver.wfs.WFSException: Requested property: localityName is not
available for erm:Observation.
at org.geoserver.wfs.GetFeature.run(GetFeature.java:369)
at org.geoserver.wfs.DefaultWebFeatureService20.getFeature(Defaul
Did somebody have the same problem? please help!
Feature in question:
http://loom-gis.geo.ut.ee:8080/geoserver/ows/?service=WFS&version=2.0.0&request=GetFeature&count=3&typename=erm:SamplingFeature
Query in question
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature version="2.0.0" service="WFS"
outputFormat="application/gml+xml; version=3.2"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:fes="http://www.opengis.net/fes/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:erm="http://loom-gis.geo.ut.ee/ermas/schemas/erm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd
http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd
http://loom-gis.geo.ut.ee/ermas/schemas/erm
http://loom-gis.geo.ut.ee/ermas/schemas/erm/erm_ermas.xsd">
<wfs:Query typeNames="erm:SamplingFeature">
<wfs:PropertyName>localityName</wfs:PropertyName>
<fes:Filter>
<fes:ResourceId rid="sarvObs_50449_4524_1locality864"/>
</fes:Filter>
</wfs:Query>
</wfs:GetFeature>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/complex-features-getFeature-with-propertyName-fail-getServiceInfo-ERROR-tp5171075.html
Sent from the GeoServer - User mailing list archive at Nabble.com.