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:
http://pc-pbg:8080/geoserver/CursoIDE/wfs?request=GetFeature&service=WFS&version=1.0.0&typeName=CursoIDE:ccaa_4326&outputFormat=json&cql_filter=CCAA_ID+IN+('1','2')&page=1&start=0&limit=25
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:
http://pc-pbg:8080/geoserver/CursoIDE/wfs?request=GetFeature&service=WFS&version=1.0.0&typeName=CursoIDE:ccaa_4326&outputFormat=json&cql_filter=ID+IN+('1','2')&page=1&start=0&limit=25<http://pc-pbg:8080/geoserver/CursoIDE/wfs?request=GetFeature&service=WFS&version=1.0.0&typeName=CursoIDE:ccaa_4326&outputFormat=json&cql_filter=ID+IN+(%271%27,%272%27)&page=1&start=0&limit=25>
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
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec.png]
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/cenefa.png]
Pedro Briones Garcia
Jefe de Grupo de Actuaciones y Proyectos
Gerencia de SIG y Consultoria
Grupo Tragsa - SEPI
[http://www.tragsa.es/SiteCollectionImages/Relaciones%20Institucionales%20(Prensa)/FIRMA%20OUTLOOK/Tragsatec_SEPI.png]
Calle Julián Camarillo 6 B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
p...@tragsa.es <mailto:p...@tragsa.es> www.tragsa.es <http://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.
**********************************************************************************************
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users