Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS server error. Invalid or Unsupported FILTER in GetFeature #742

Open
landam opened this issue Feb 3, 2021 · 0 comments
Open

WFS server error. Invalid or Unsupported FILTER in GetFeature #742

landam opened this issue Feb 3, 2021 · 0 comments

Comments

@landam
Copy link

landam commented Feb 3, 2021

Steps to reproduce:

wfs = WebFeatureService(url='http://geo102.fsv.cvut.cz/services/ghwfs', version='1.1.0')
filter_ = PropertyIsEqualTo(propertyname='nuts0', literal='CZ')
filterxml = etree.tostring(filter_.toXML()).decode("utf-8")
response = wfs.getfeature(typename='lucas', filter=filterxml)

returns:

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" version="1.1.0" language="en-US" xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
  <ows:Exception exceptionCode="InvalidParameterValue" locator="filter">
    <ows:ExceptionText>msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : &lt;ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc"&gt;&lt;ogc:PropertyName&gt;nuts0&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;CZ&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Mapserver used:

mapserv -v
MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

It seems that ogc:PropertyIsEqualTo is supported by the Mapserver (see Capabilities):

<ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator>

Additional question:

  • Why ServiceException is not raised in this case?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant