[mapserver-users] WFS Intersect with gml:box

Joaquín Rodriguez-Guerra Urcelay jrguerra at gmv.com
Tue Mar 29 14:07:01 EDT 2011


Hi Jukka,

My mapserver's GetCapabilities also sends ogc:Intersect, but somehow it is also accepting Intersects ( I dont know which one is the standar, but it seems like geotools uses intersects)

http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
....
  <ogc:Spatial_Capabilities>
    <ogc:Spatial_Operators>
      <ogc:Equals/>
      <ogc:Disjoint/>
      <ogc:Touches/>
      <ogc:Within/>
      <ogc:Overlaps/>
      <ogc:Crosses/>
      <ogc:Intersect/>
      <ogc:Contains/>
      <ogc:DWithin/>
      <ogc:BBOX/>
    </ogc:Spatial_Operators>
  </ogc:Spatial_Capabilities>
...

I copied the filter directly from debugging:

29-mar-2011 19:59:21 org.geotools.xml.XMLSAXHandler processException
GRAVE: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : <Filter>
  <Intersects>
    <PropertyName>point</PropertyName>
    <Box srsName="WGS84(DD)">
      <coordinates decimal="." cs="," ts=" ">-100.0,-45.0 100.0,45.0</coordinates>
    </Box>
  </Intersects>
</Filter>    org.geotools.xml.filter.FilterComplexTypes$ServiceExceptionType.getValue(FilterComplexTypes.java:1667)
    org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:157)
    org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:262)
    org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    javax.xml.parsers.SAXParser.parse(Unknown Source)
    javax.xml.parsers.SAXParser.parse(Unknown Source)
    org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:132)
    org.geotools.data.wfs.v1_0_0.WFSFeatureReader.run(WFSFeatureReader.java:122)

I installed mapserver with fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin

It is weird that the BBOX filter works, and the Intersects doesnt, with the same data. I can give you the ip address of the server is you want to try anything

Thank you for your help!

Joaquín
________________________________________
De: Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi]
Enviado el: martes, 29 de marzo de 2011 19:35
Para: Joaquín Rodriguez-Guerra Urcelay; mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] WFS Intersect with gml:box

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


______________________
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.

______________________



More information about the mapserver-users mailing list