Hi all.
I have a problem when making a WFS request to a GeoServer layer (ccaa_4326). I need to make a selection of polygons based on a column called ID, but in this case I receive an error message. These are the layer feature columns:
the_geom |
MultiPolygon |
true |
0/1 |
---|---|---|---|
AREA |
Double |
true |
0/1 |
PERIMETER |
Double |
true |
0/1 |
CCAA_ID |
Long |
true |
0/1 |
CCAA |
Integer |
true |
0/1 |
NOMBRE |
String |
true |
0/1 |
ID |
Integer |
true |
0/1 |
The next example works fine: I make a request to ccaa_4326 layer. I define a condition based in CCAA_ID column:
In the second example, the request is the same but the column has a different name: in this case its name is ID, but is the same type as CCAA_ID. The result is an error:
The result: an error: {"type":"FeatureCollection","features":[]}
I have tried the same request on different GeoServer installations, and I get the same results, so I think it is not a problem of GeoServer’s version os installation, or the data. It seems like GeoServer can not differentiate between ID and internal FID column.
Any idea?
Thanks in advance.
Un saludo
Pedro Briones Garcia
Jefe de Grupo de Actuaciones y Proyectos
Gerencia de SIG y Consultoria
Grupo Tragsa - SEPI
Calle Julián Camarillo 6 B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
pbg@anonymised.com www.tragsa.es
En beneficio del medio ambiente, imprime este e-mail sólo si realmente es necesario
For the benefit of the environment, print this e-mail only if you really need
********************************************************************************************** El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus anexos pueden contener información confidencial o legalmente protegida. Está dirigido únicamente a la persona o entidad indicada como destinatarios del mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. **********************************************************************************************