Title: SkenData Email Signa
Dear All,

I am trying to use a spacial filter that would be passed to mapserver via url. The use case is a cascaded WFS. The source WFS server has been validated to correctly process the following request:
"""
https://source-server?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=5&REQUEST=GetFeature&typename=type_name&Filter=<ogc:Filter><ogc:Contains><ogc:PropertyName>Shape</ogc:PropertyName><gml:Point><gml:pos srsName='urn:x-ogc:def:crs:EPSG:25832'>785757.57 5855457.34</gml:pos></gml:Point></ogc:Contains></ogc:Filter>
"""

However if I send the same request to Mapserver, I get nothing back. From the log it seems there is a problem with the filter
"""
 [warn] [pid 25] mod_fcgid: stderr: Filter could not be translated to OGR filter
 [warn] [pid 25] mod_fcgid: stderr: msOGRFileWhichShapes: Setting spatial filter to -5056
"""
In the mapfile the layer (has been tested to work fine without filter) is defined like this:
"""
LAYER
    NAME "TEST_DE"
    UNITS METERS
    TYPE POLYGON
    CONNECTION "test_german_wfs.xml"
    CONNECTIONTYPE OGR
    STATUS ON
    DATA "
type_name"
    METADATA
      "wfs_srs" "EPSG:25833"
      "wfs_version"    "1.1.0"
      "wfs_title"    "TEST_DE"
      "wfs_connectiontimeout" "30"
      "wfs_typename"    "
type_name"
      "wfs_maxfeatures"       "700"
      "gml_include_items" "all"
      "gml_exclude_items" "gml_id"
      "wfs_enable_request" "*"
    END # METADATA
    PROJECTION
      "init=epsg:25832"
    END # PROJECTION
    CLASS
      NAME "
TEST"
      STYLE
        OUTLINECOLOR 255 0 0
        WIDTH 0.7
      END # STYLE
    END # CLASS
  END # LAYER
"""

I am on Mapserver
7.6.4-1

running with Apache under a current Ubuntu

So far I have tried to set a validation for the "filter" tag but no change. I also looked at
https://mapserver.gis.umn.edu/nl_NL/ogc/filter_encoding.html#use-of-filter-encoding-in-mapserver
but with no luck.

Any help will be appreciated.

Best

Lars

Attachment: OpenPGP_0x667E0B7B73E250FB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to