[Geoserver-users] App schema SLD with filtering nested properties

Hi

I searched and read a lot on previous questions on this topic but all our
tests seem to fail (with or without and error message).

We are on Geoserver 2.5 using app schema plugin to transform a shape file
into Inspire HazardAreas.
For testing we simplified the number of mappings.

The mappings are working quit well, both in WFS as in WMS.
However when we try to apply SLD styling with a filter against the schema we
run into either not having any WMS image returned or either wehave an error
message.

This mainly depends on the usage of either ogc:ValueReference or
ogc:PropertyName with an Xpath expression.

Here is some input for clarrification:

WFS returned with GetFeatures&typeName=nz-core:HazardArea

(nz-core is defined as http://inspire.ec.europa.eu/schemas/nz-core/3.0)

Equally the GetMap WMS request returns the rendered data when the Styling is
expressed against the geometry itself (without any filters on the
properties):

SLD:

So far so good.

When trying to insert a Filter we run into the problems.

Filter expressed (inside an SLD 1.1.0 version):

Geoserver returns the message

(This seems to be same issue as described here,
http://jira.codehaus.org/browse/GEOT-4006, although it should be patched via
earlier releases? at least for nested geometry).

When we try to replace the PropertyName with the following

Nothing happens, the server does not return any image, nor does it
returns/logs an error.

The questions are (after reading quit a lot of similar topics):

1. Are xpath expression supported with ValueReference in SLD 1.1.0 (external
SLD)?
2. Any idea why we're getting "The requested Style can not be used with
...."?
3. Any further help in getting this to work?

(We simplified are examples as we want to have the SLD and the filter
expressed/bassed on the
nested property).

Thanks a lot

Luc Van Linden

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-SLD-with-filtering-nested-properties-tp5134593.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi

I was hoping to get some input on this matter.

In short, it is a question about the filtering capabilities applying an
XPath expression for a service using the APP schema module.

Any help or direction is appreciated.

tx

Luc Van Linden

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-SLD-with-filtering-nested-properties-tp5134593p5136406.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

Filtering by nested properties are supported in app-schema. I think you're
missing "base" namespace declaration in the SLD header. Here are some test
SLDs we used in our tests for your reference:
https://github.com/geoserver/geoserver/tree/master/src/extension/app-schema/app-schema-test/src/test/resources/test-data/styles.

Rini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-SLD-with-filtering-nested-properties-tp5134593p5137900.html
Sent from the GeoServer - User mailing list archive at Nabble.com.