[Geoserver-users] Filtering WFS generated by Application-Schema plugin

Hi there,

I’m trying to get a certain feature from a WFS generated by Application-Schema plugin. I’ve applied different CQL_FILTER unsuccessfully.

This is a snippet of the entire WFS response for typeName = “bu-ext2d:Building” and the featureMember I want to get:

gml:featureMember

<bu-ext2d:Building gml:id="BBBBBBB.AAAAAAAAA ">

<bu-core2d:beginLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:conditionOfConstructionfunctional</bu-core2d:conditionOfConstruction>

bu-core2d:dateOfConstruction

</bu-core2d:dateOfConstruction>

bu-core2d:dateOfDemolition

</bu-core2d:dateOfDemolition>

bu-core2d:dateOfRenovation

</bu-core2d:dateOfRenovation>

<bu-core2d:endLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:externalReference

</bu-core2d:externalReference>

bu-core2d:heightAboveGround

</bu-core2d:heightAboveGround>

bu-core2d:inspireId

base:Identifier

<base:localId>AAAAAAAAA</base:localId>

base:namespaceBBBBBBB</base:namespace>

</base:Identifier>

</bu-core2d:inspireId>

</gml:featureMember>

Find attached some of the tests I’ve done:

image002.png

image003.png

Hi Elena,

Have you tried using OCG filter syntax?

You would use the Filter query param, and pass a URL encoded filter structured similar to this.

bu-core2d:inspireId/base:Identifier/base:localId

AAAAAAAAA

This is the geoserver docs

https://docs.geoserver.org/2.23.x/en/user/filter/filter_reference.html

Kind Regards,

Ursula

image002.png

image003.png

···

From: Elena Salido Castro via Geoserver-users geoserver-users@lists.sourceforge.net
Sent: Tuesday, 28 November 2023 10:26 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Filtering WFS generated by Application-Schema plugin

Hi there,

I’m trying to get a certain feature from a WFS generated by Application-Schema plugin. I’ve applied different CQL_FILTER unsuccessfully.

This is a snippet of the entire WFS response for typeName = “bu-ext2d:Building” and the featureMember I want to get:

gml:featureMember

<bu-ext2d:Building gml:id="BBBBBBB.AAAAAAAAA ">

<bu-core2d:beginLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:conditionOfConstructionfunctional</bu-core2d:conditionOfConstruction>

bu-core2d:dateOfConstruction

</bu-core2d:dateOfConstruction>

bu-core2d:dateOfDemolition

</bu-core2d:dateOfDemolition>

bu-core2d:dateOfRenovation

</bu-core2d:dateOfRenovation>

<bu-core2d:endLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:externalReference

</bu-core2d:externalReference>

bu-core2d:heightAboveGround

</bu-core2d:heightAboveGround>

bu-core2d:inspireId

base:Identifier

<base:localId>AAAAAAAAA</base:localId>

base:namespaceBBBBBBB</base:namespace>

</base:Identifier>

</bu-core2d:inspireId>

</gml:featureMember>

Find attached some of the tests I’ve done:

Unfortunately, I don’t have access to Geoserver and that’s the reason why I can’t give more information about the server.

Is there any other workaround to get the response I need from the WFS request? Do you think I’m doing anything wrong in the CQL_FILTER?

Any help will be appreciated.

Thanks and regards,

Elena Salido Castro — Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

Si no ves la imagen puedes acceder desde aquí

Esta comunicación contiene información de acceso restringido y de uso exclusivo del destinatario. Si usted no es el destinatario tenga en cuenta que cualquier distribución, copia o uso de esta comunicación o la información que contiene está estrictamente prohibida. Si usted ha recibido esta comunicación por error por favor notifíquelo en la dirección dpd@anonymised.com. Tratamos su dirección de correo electrónico y otros datos personales para mantener el contacto y comunicación con Ud. y, en su caso, remitirle información sobre nuestros productos y servicios. Si no desea recibir tal información envíe un e-mail en tal sentido a dpd@anonymised.com. Puede acceder, rectificar y suprimir los datos, así como otros derechos, como se detalla en la información adicional y completa a su disposición en nuestra política de privacidad en la URL www.geograma.com/politica-privacidad/.

Hi Ursula,

Thanks for your quick response.

I’ve tried your proposal -and another variants- but it didn’t work.

I’m sure I’m forgetting something. This is de URL services just in case you find what it is:

https://geo.araba.eus/WFS_EXT2D_INSPIRE_BU?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities

Thanks and regards,

image001.png

image002.png

image003.png

···

Elena Salido Castro
Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

De: Michael, Ursula (DEM) Ursula.Michael@anonymised.com
Enviado el: miércoles, 29 de noviembre de 2023 6:21
Para: Elena Salido Castro elena.salido@anonymised.com; geoserver-users@lists.sourceforge.net
Asunto: [EXTERNO] RE: [Geoserver-users] Filtering WFS generated by Application-Schema plugin




No suele recibir correos electrónicos de ursula.michael@anonymised.com. Por qué esto es importante


UNOFFICIAL

Hi Elena,

Have you tried using OCG filter syntax?

You would use the Filter query param, and pass a URL encoded filter structured similar to this.

bu-core2d:inspireId/base:Identifier/base:localId

AAAAAAAAA

This is the geoserver docs

https://docs.geoserver.org/2.23.x/en/user/filter/filter_reference.html

Kind Regards,

Ursula

From: Elena Salido Castro via Geoserver-users <geoserver-users@lists.sourceforge.net>
Sent: Tuesday, 28 November 2023 10:26 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Filtering WFS generated by Application-Schema plugin

Hi there,

I’m trying to get a certain feature from a WFS generated by Application-Schema plugin. I’ve applied different CQL_FILTER unsuccessfully.

This is a snippet of the entire WFS response for typeName = “bu-ext2d:Building” and the featureMember I want to get:

gml:featureMember

<bu-ext2d:Building gml:id="BBBBBBB.AAAAAAAAA ">

<bu-core2d:beginLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:conditionOfConstructionfunctional</bu-core2d:conditionOfConstruction>

bu-core2d:dateOfConstruction

</bu-core2d:dateOfConstruction>

bu-core2d:dateOfDemolition

</bu-core2d:dateOfDemolition>

bu-core2d:dateOfRenovation

</bu-core2d:dateOfRenovation>

<bu-core2d:endLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:externalReference

</bu-core2d:externalReference>

bu-core2d:heightAboveGround

</bu-core2d:heightAboveGround>

bu-core2d:inspireId

base:Identifier

<base:localId>AAAAAAAAA</base:localId>

base:namespaceBBBBBBB</base:namespace>

</base:Identifier>

</bu-core2d:inspireId>

</gml:featureMember>

Find attached some of the tests I’ve done:

Unfortunately, I don’t have access to Geoserver and that’s the reason why I can’t give more information about the server.

Is there any other workaround to get the response I need from the WFS request? Do you think I’m doing anything wrong in the CQL_FILTER?

Any help will be appreciated.

Thanks and regards,

Elena Salido Castro — Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

Si no ves la imagen puedes acceder desde aquí

Esta comunicación contiene información de acceso restringido y de uso exclusivo del destinatario. Si usted no es el destinatario tenga en cuenta que cualquier distribución, copia o uso de esta comunicación o la información que contiene está estrictamente prohibida. Si usted ha recibido esta comunicación por error por favor notifíquelo en la dirección dpd@anonymised.com. Tratamos su dirección de correo electrónico y otros datos personales para mantener el contacto y comunicación con Ud. y, en su caso, remitirle información sobre nuestros productos y servicios. Si no desea recibir tal información envíe un e-mail en tal sentido a dpd@anonymised.com. Puede acceder, rectificar y suprimir los datos, así como otros derechos, como se detalla en la información adicional y completa a su disposición en nuestra política de privacidad en la URL www.geograma.com/politica-privacidad/.

Hi again,

Finally, I’ve found out what the problem was: the Literal I was looking for had some special characters. To solve that I’ve used a wildcard -an escapechar can be used as well- with a PropertyIsLike instead PropertyIsEqualTo.

Moreover, to make easier the request, I’ve decided to use a POST method.

Find below the entire workaround:

POST https://geo.araba.eus/WFS_EXT2D_INSPIRE_BU?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=bu-ext2d:Building

<?xml version="1.0" encoding="UTF-8"?>

<wfs:GetFeature service=“WFS” version=“1.1.0” xmlns:wfs="http://www.opengis.net/wfs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bu-ext2d="http://inspire.jrc.ec.europa.eu/schemas/bu-ext2d/2.0" xmlns:INSPIRE_CP=“INSPIRE_CP” xmlns:gml="http://www.opengis.net/gml" xmlns:gn=“urn:x-inspire:specification:gmlas:GeographicalNames:3.0” xmlns:nurc=“http://www.nurc.nato.int” xmlns:INSPIRE_AU=“INSPIRE_AU” xmlns:tiger=“http://www.census.gov” xmlns:INSPIRE_BU=“INSPIRE_BU” xmlns:topp="http://www.openplans.org/topp" xmlns:sf="http://www.openplans.org/spearfish" xmlns:sde=“http://geoserver.sf.net” xmlns:cite="http://www.opengeospatial.net/cite" xmlns:it.geosolutions=“http://www.geo-solutions.it” xmlns:bu-core2d="http://inspire.jrc.ec.europa.eu/schemas/bu-core2d/2.0" xmlns:base=“urn:x-inspire:specification:gmlas:BaseTypes:3.2” xmlns:gmd=“http://www.isotc211.org/2005/gmd" xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=”[http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://inspire.jrc.ec.europa.eu/schemas/bu-ext2d/2.0 http://inspire.ec.europa.eu/draft-schemas/bu-ext2d/2.0/BuildingExtended2D.xsd”>](http://www.opengis.net/wfs http:/schemas.opengis.net/wfs/1.1.0/wfs.xsd http:/inspire.jrc.ec.europa.eu/schemas/bu-ext2d/2.0 http:/inspire.ec.europa.eu/draft-schemas/bu-ext2d/2.0/BuildingExtended2D.xsd%22%3e)

<wfs:Query typeName=“bu-ext2d:Building”>

bu-core2d:inspireId/base:Identifier/base:localId

00100010119*01

</wfs:Query>

</wfs:GetFeature>

Regards,

image001.png

image002.png

image003.png

···

Elena Salido Castro
Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

De: Elena Salido Castro
Enviado el: miércoles, 29 de noviembre de 2023 9:04
Para: Michael, Ursula (DEM) Ursula.Michael@anonymised.com; geoserver-users@lists.sourceforge.net
Asunto: RE: [EXTERNO] RE: [Geoserver-users] Filtering WFS generated by Application-Schema plugin

Hi Ursula,

Thanks for your quick response.

I’ve tried your proposal -and another variants- but it didn’t work.

I’m sure I’m forgetting something. This is de URL services just in case you find what it is:

https://geo.araba.eus/WFS_EXT2D_INSPIRE_BU?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities

Thanks and regards,

Elena Salido Castro
Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

De: Michael, Ursula (DEM) <Ursula.Michael@anonymised.com>
Enviado el: miércoles, 29 de noviembre de 2023 6:21
Para: Elena Salido Castro <elena.salido@anonymised.com>; geoserver-users@anonymised.comsts.sourceforge.net
Asunto: [EXTERNO] RE: [Geoserver-users] Filtering WFS generated by Application-Schema plugin




No suele recibir correos electrónicos de ursula.michael@anonymised.com. Por qué esto es importante


UNOFFICIAL

Hi Elena,

Have you tried using OCG filter syntax?

You would use the Filter query param, and pass a URL encoded filter structured similar to this.

bu-core2d:inspireId/base:Identifier/base:localId

AAAAAAAAA

This is the geoserver docs

https://docs.geoserver.org/2.23.x/en/user/filter/filter_reference.html

Kind Regards,

Ursula

From: Elena Salido Castro via Geoserver-users <geoserver-users@lists.sourceforge.net>
Sent: Tuesday, 28 November 2023 10:26 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Filtering WFS generated by Application-Schema plugin

Hi there,

I’m trying to get a certain feature from a WFS generated by Application-Schema plugin. I’ve applied different CQL_FILTER unsuccessfully.

This is a snippet of the entire WFS response for typeName = “bu-ext2d:Building” and the featureMember I want to get:

gml:featureMember

<bu-ext2d:Building gml:id="BBBBBBB.AAAAAAAAA ">

<bu-core2d:beginLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:conditionOfConstructionfunctional</bu-core2d:conditionOfConstruction>

bu-core2d:dateOfConstruction

</bu-core2d:dateOfConstruction>

bu-core2d:dateOfDemolition

</bu-core2d:dateOfDemolition>

bu-core2d:dateOfRenovation

</bu-core2d:dateOfRenovation>

<bu-core2d:endLifespanVersion xsi:nil=“true” nilReason=“unknown”/>

bu-core2d:externalReference

</bu-core2d:externalReference>

bu-core2d:heightAboveGround

</bu-core2d:heightAboveGround>

bu-core2d:inspireId

base:Identifier

<base:localId>AAAAAAAAA</base:localId>

base:namespaceBBBBBBB</base:namespace>

</base:Identifier>

</bu-core2d:inspireId>

</gml:featureMember>

Find attached some of the tests I’ve done:

Unfortunately, I don’t have access to Geoserver and that’s the reason why I can’t give more information about the server.

Is there any other workaround to get the response I need from the WFS request? Do you think I’m doing anything wrong in the CQL_FILTER?

Any help will be appreciated.

Thanks and regards,

Elena Salido Castro — Ingeniera GIS
(+34) 945 13 13 72 | Plza. del Renacimiento, 9, 2.ª planta, Oficina 2 - 01004 Vitoria-Gasteiz

Si no ves la imagen puedes acceder desde aquí

Esta comunicación contiene información de acceso restringido y de uso exclusivo del destinatario. Si usted no es el destinatario tenga en cuenta que cualquier distribución, copia o uso de esta comunicación o la información que contiene está estrictamente prohibida. Si usted ha recibido esta comunicación por error por favor notifíquelo en la dirección dpd@anonymised.com. Tratamos su dirección de correo electrónico y otros datos personales para mantener el contacto y comunicación con Ud. y, en su caso, remitirle información sobre nuestros productos y servicios. Si no desea recibir tal información envíe un e-mail en tal sentido a dpd@anonymised.com. Puede acceder, rectificar y suprimir los datos, así como otros derechos, como se detalla en la información adicional y completa a su disposición en nuestra política de privacidad en la URL www.geograma.com/politica-privacidad/.