[mapserver-users] WFS Intersect with gml:box

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Mar 29 10:35:27 PDT 2011


Hi,

Have you copied the uDig request right?  I suppose the filter is <ogc:Intersect/>. At leas my Geoserver sends that in the GetCapabilities.

For information, wile using "box" is OK with WFS 1.0.0, some old deegree based WFS clients (OpenJUMP WFS plugin at least) are offering the "box" also with WFS 1.1.0 requests, but GML3 does not support box and those requests are invalid. Should use anvelope of something else instead.

-Jukka Rahkonen-


Joaquín Rodriguez-Guerra Urcelay wrote:
 
> Hello list, 

> I am using a desktop GIS applicatin (uDig) to connect mapserver and display some wfs layers and I am having some trouble when uDig tries to filter features by bounding box.

> uDig sends a intersects spatial filter to obtain features in a bounding box:

> http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter=
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><Intersects><PropertyName>point</PropertyName>
<gml:Box srsName="WGS84(DD)"><gml:coordinates decimal="." cs="," ts=" ">-100.0,-45.0 100.0,45.0</gml:coordinates>
</gml:Box>
</Intersects>
</Filter>

> But it is not working :(

> <ServiceExceptionReport version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException code="InvalidParameterValue" locator="filter">
msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><Intersects><PropertyName>point</PropertyName><gml:Box srsName="WGS84(DD)"><gml:coordinates decimal="." cs="," ts=" ">-100.0,-45.0 100.0,45.0</gml:coordinates></gml:Box></Intersects></Filter>
</ServiceException>
</ServiceExceptionReport>

> I have checked that the BBOX filter works perfectly ( I just replaced Intersects with BBOX in the above url)

> http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter=
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><BBOX><PropertyName>point</PropertyName>
<gml:Box srsName="WGS84(DD)"><gml:coordinates decimal="." cs="," ts=" ">-100.0,-45.0 100.0,45.0</gml:coordinates>
</gml:Box>
</BBOX>
</Filter>

> But I cant make the INTERSECTS operation work. I would really appreciate if someone could point me to any examples of the INTERSECT operation used together with gml:box or Box.
 I have seen some examples of intersects used with gml:polygon, but it should work too with box, right??

Thanks for reading!

Joaquín
______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

______________________

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list