Hi,
GeoServer manual stays that App-Schema extension supports GetPropertyValue
request
I have following error in log:
2014-10-17 11:59:22,956 WARN [geotools.xml] - Error parsing:
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd
after tring to execute following request:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetPropertyValue version="2.0.0" service="WFS"
valueReference="eco:elevation" resolve="local" resolveDepth="*"
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:eco="http://loom-gis.geo.ut.ee/ermas/schemas/eco"
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/eco
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd">
<wfs:Query typeNames="eco:EC_SamplingLocality">
<fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>@gml:id</fes:ValueReference>
<fes:Literal>plot_1-JS</fes:Literal>
</fes:PropertyIsEqualTo>
</fes:Filter>
</wfs:Query>
</wfs:GetPropertyValue>
Schema is correct and validated
What may be a problem?
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Valentina,
this may just be a warning caused by the part of GeoServer that dispatches the request not being able to parse that schema.
- Do you have a full stack trace or anything else in the logs?
- Does the error occur at startup or when the request is received?
- What is the full response to the request? An error or is the response correct? If the response is correct, the warning can be ignored (or silenced in LOGGING.properties).
Kind regards,
Ben.
On 17/10/14 17:07, Valentina Sagris wrote:
Hi,
GeoServer manual stays that App-Schema extension supports GetPropertyValue
request
I have following error in log:
2014-10-17 11:59:22,956 WARN [geotools.xml] - Error parsing:
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd
after tring to execute following request:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetPropertyValue version="2.0.0" service="WFS"
valueReference="eco:elevation" resolve="local" resolveDepth="*"
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:eco="http://loom-gis.geo.ut.ee/ermas/schemas/eco"
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/eco
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd">
<wfs:Query typeNames="eco:EC_SamplingLocality">
<fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>@gml:id</fes:ValueReference>
<fes:Literal>plot_1-JS</fes:Literal>
</fes:PropertyIsEqualTo>
</fes:Filter>
</wfs:Query>
</wfs:GetPropertyValue>
Schema is correct and validated
What may be a problem?
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre
Valentina,
it looks like a mapping problem of some kind. Could be a bug. What version of GeoServer are you using?
These log messages I found interesting:
2014-10-20 14:42:33,908 DEBUG [geotools.xml] - ComplexAttributeImpl:elevation<double>=[AttributeImpl:elevation<double>=50.0] (org.geotools.feature.ComplexAttributeImpl) is not of type org.opengis.feature.Feature
and
org.geoserver.wfs.WFSException: Requested property: elevation is not available for eco:EC_SamplingLocality.
at org.geoserver.wfs.GetFeature.run(GetFeature.java:369)
at org.geoserver.wfs.DefaultWebFeatureService20.getFeature(DefaultWebFeatureService20.java:97)
But then I see eco:elevation encoded in the response.
Please keep discussions on list as both Rini and I are leaving soon.
Kind regards,
Ben.
On 20/10/14 22:15, Valentina Sagris wrote:
Hi Ben!
please find in attachment log file - we did restart followed by the
request. We switched all possible log options, so it may be tooo long
now. The feature we request is like
http://loom-gis.geo.ut.ee:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&count=3&typename=eco:EC_SamplingLocality
I did not find the same warning during restart, only after request: the
same, can not resolve/parse schema
the outcome of request - no errors, but warnings followed by
org.geotools/java messages and NO data
I also include GetFeature request with PropertyName – there we have an
error message: no elevation attribute for feature 
Kind regards,
Valentina
20-10-2014 07:04 kirjutas Ben Caradoc-Davies:
Valentina,
this may just be a warning caused by the part of GeoServer that
dispatches the request not being able to parse that schema.
- Do you have a full stack trace or anything else in the logs?
- Does the error occur at startup or when the request is received?
- What is the full response to the request? An error or is the response
correct? If the response is correct, the warning can be ignored (or
silenced in LOGGING.properties).
Kind regards,
Ben.
On 17/10/14 17:07, Valentina Sagris wrote:
Hi, GeoServer manual stays that App-Schema extension supports
GetPropertyValue request I have following error in log: 2014-10-17
11:59:22,956 WARN [geotools.xml] - Error parsing:
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd after tring
to execute following request: <?xml version="1.0" encoding="UTF-8"?>
<wfs:GetPropertyValue version="2.0.0" service="WFS"
valueReference="eco:elevation" resolve="local" resolveDepth="*"
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:eco="http://loom-gis.geo.ut.ee/ermas/schemas/eco"
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/eco
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd">
<wfs:Query typeNames="eco:EC_SamplingLocality"> <fes:Filter>
<fes:PropertyIsEqualTo>
<fes:ValueReference>@gml:id</fes:ValueReference>
<fes:Literal>plot_1-JS</fes:Literal> </fes:PropertyIsEqualTo>
</fes:Filter> </wfs:Query> </wfs:GetPropertyValue> Schema is correct
and validated What may be a problem? Valentina -- View this message
in context:
http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for
$9/Month. Get alerted through email, SMS, voice calls or mobile push
notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________ Geoserver-users
mailing list Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre
hi Ben and Rini,
we use version 2.5.2
yes, I'm agree, that it looks it l mysterious: general GetFeature request
like in url I sent encodes all of the properties correctly. But when you go
for GetPropertyValue or PropertyName in GetFeature it refuses to see them.
but it also complains about schema resolution in both requests - and I have
correct app-schema-cache
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168621.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Valentina,
please test with a recent 2.7-SNAPSHOT nightly. There have been many recent bug fixes.
Kind regards,
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre
________________________________________
From: Valentina Sagris [valentina.sagris@anonymised.com]
Sent: 21 October 2014 18:14
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GetPropertyValue reguest fail
hi Ben and Rini,
we use version 2.5.2
yes, I'm agree, that it looks it l mysterious: general GetFeature request
like in url I sent encodes all of the properties correctly. But when you go
for GetPropertyValue or PropertyName in GetFeature it refuses to see them.
but it also complains about schema resolution in both requests - and I have
correct app-schema-cache
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168621.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hi Ben,
I have installed 2.7 -SNAPSHOT, the resent one.
situation has remain the same:
1/ with URL GetFeature
http://localhost:8080/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&count=3&typenames=eco:EC_SamplingLocality&resolve=all&resolveDepth=1&propertyNames=eco:elevation
I have in LOG propertyNemas ingnored and responce with all properties
2014-10-21 18:07:46,573 INFO [geoserver.wfs] -
Request: getFeature
service = WFS
version = 2.0.0
baseUrl = http://localhost:8080/geoserver/
count = 3
outputFormat = text/xml; subtype=gml/3.2
resolve = all
resolveDepth = 1
resolveTimeout = 300
resultType = results
abstractQueryExpressionGroup[0] =
wfs:abstractQueryExpression=net.opengis.wfs20.impl.QueryTypeImpl@anonymised.com
(handle: null) (abstractProjectionClause: null, abstractSelectionClause:
null, abstractSortingClause: null, aliases: null, typeNames:
[{http://loom-gis.geo.ut.ee/ermas/schemas/eco\}EC_SamplingLocality])
(featureVersion: null, srsName: null, filter: null, propertyNames: null,
sortBy: null)
abstractQueryExpression[0]:
typeNames[0] =
{http://loom-gis.geo.ut.ee/ermas/schemas/eco\}EC_SamplingLocality
2/with POST GetFeature
Request: getServiceInfo
2014-10-21 18:12:55,684 WARN [geotools.xml] - Error parsing:
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd
org.geoserver.wfs.WFSException: Requested property: elevation is not
available for eco:EC_SamplingLocality.
3/with GetPropertyValue I have an error
org.xmlpull.v1.XmlPullParserException: processing instruction can not have
PITarget with reserveld xml name (position: START_DOCUMENT seen <?xml
version="1.0" encoding="UTF-8"?>\r\n<?xml ... @2:7)
the schema it complains about is
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd and in the
data-dir app-schema-cache
Kind regards,
Valentina
P.S for GetCapabilities request in the part GetPropertyFeature I have for
resolve parameter - only NONE . Shouldn't it be all/local there also?
<ows:Operation name="GetPropertyValue">
.....
<ows:Parameter name="resolve">
<ows:AllowedValues>
<ows:Value>none</ows:Value>
</ows:AllowedValues>
</ows:Parameter>
</ows:Operation>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168712.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Valentina,
please check that the copy of eco_ermas.xsd in your app-schema-cache is not corrupted. It almost looks as if it has *two* XML declarations ("<?xml ..."). The online schema appears valid. It has:
$ md5sum eco_ermas.xsd
4ecf517b26a8c93ab1ebf243cc2c36af eco_ermas.xsd
Kind regards,
Ben.
On 21/10/14 23:39, Valentina Sagris wrote:
Hi Ben,
I have installed 2.7 -SNAPSHOT, the resent one.
situation has remain the same:
1/ with URL GetFeature
http://localhost:8080/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&count=3&typenames=eco:EC_SamplingLocality&resolve=all&resolveDepth=1&propertyNames=eco:elevation
I have in LOG propertyNemas ingnored and responce with all properties
2014-10-21 18:07:46,573 INFO [geoserver.wfs] -
Request: getFeature
service = WFS
version = 2.0.0
baseUrl = http://localhost:8080/geoserver/
count = 3
outputFormat = text/xml; subtype=gml/3.2
resolve = all
resolveDepth = 1
resolveTimeout = 300
resultType = results
abstractQueryExpressionGroup[0] =
wfs:abstractQueryExpression=net.opengis.wfs20.impl.QueryTypeImpl@anonymised.com
(handle: null) (abstractProjectionClause: null, abstractSelectionClause:
null, abstractSortingClause: null, aliases: null, typeNames:
[{http://loom-gis.geo.ut.ee/ermas/schemas/eco\}EC_SamplingLocality])
(featureVersion: null, srsName: null, filter: null, propertyNames: null,
sortBy: null)
abstractQueryExpression[0]:
typeNames[0] =
{http://loom-gis.geo.ut.ee/ermas/schemas/eco\}EC_SamplingLocality
2/with POST GetFeature
Request: getServiceInfo
2014-10-21 18:12:55,684 WARN [geotools.xml] - Error parsing:
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd
org.geoserver.wfs.WFSException: Requested property: elevation is not
available for eco:EC_SamplingLocality.
3/with GetPropertyValue I have an error
org.xmlpull.v1.XmlPullParserException: processing instruction can not have
PITarget with reserveld xml name (position: START_DOCUMENT seen <?xml
version="1.0" encoding="UTF-8"?>\r\n<?xml ... @2:7)
the schema it complains about is
http://loom-gis.geo.ut.ee/ermas/schemas/eco/eco_ermas.xsd and in the
data-dir app-schema-cache
Kind regards,
Valentina
P.S for GetCapabilities request in the part GetPropertyFeature I have for
resolve parameter - only NONE . Shouldn't it be all/local there also?
<ows:Operation name="GetPropertyValue">
.....
<ows:Parameter name="resolve">
<ows:AllowedValues>
<ows:Value>none</ows:Value>
</ows:AllowedValues>
</ows:Parameter>
</ows:Operation>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168712.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre
Hi Ben,
I opened schema in xml Spy and it is correct and validated. It has only one
<?xml... declaration
Schema was created trough EnterpriseArchitect GML extension and it was
copied by Geoserver during datastore creation.
In GetProperty request if I mention schema location, as it on on the web
page, it should get schema from there or from the cache?
Kind regards,
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168809.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Ben,
what about P.S part of my previous message: should GetCapabilities request
give
for GetPropertyValue resolve parameter NONE? According to GeoServer web site
it should be All or LOCAL
Kind regards,
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GetPropertyValue-reguest-fail-tp5167973p5168826.html
Sent from the GeoServer - User mailing list archive at Nabble.com.