msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query

Bart van den Eijnden bartvde at XS4ALL.NL
Thu Nov 25 05:23:47 EST 2004


Hi list,

if I use a wfs_filter in my METADATA section for a WMS layer in
php_mapscript_44 I get the following error message, and the map comes back
fully red (the color depends on the color defined in my only class). If I
use php_mapscript_42 the right selection comes back (INWONERS < 35000),
but php_mapscript_42 probably ignored the wfs_filter I guess?

If I comment out the wfs_filter I get back my selection in red.

What could be the problem? Is it a bug, or am I doing something wrong?

  LAYER
    CONNECTION "http://myserver/cgi-bin/44beta3/mapserv.exe?map=/mymap.map&"
    CONNECTIONTYPE WMS
    DUMP TRUE
      METADATA
        "wms_srs" "EPSG:28992 EPSG:4326"
        "wfs_filter"  "<BBOX><PropertyName>Name</PropertyName><gml:Box
srsName=''><gml:coordinates>196744.44444448536,531411.1111111111
276400.000000136,595433.3333333334</gml:coordinates></gml:Box></BBOX>"
        "wms_name"  "Gemeentes"
        "wms_format"  "image/png"
        "wms_sld_body"  "auto"
        "wms_server_version"  "1.1.0"
        "wms_style" ""
        "wms_title" "Gemeentes"
      END
    NAME "ExpressionBuilderAnnotation"
    PROJECTION
      "init=epsg:28992"
    END
    SIZEUNITS PIXELS
    STATUS ON
    TEMPLATE "blank.html"
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS METERS
    CLASS
      EXPRESSION ( ([INWONERS] < 35000) )
      METADATA
      END
      STYLE
        COLOR 255 0 0
        MAXSIZE 500
        MINSIZE 1
        SYMBOL 0
      END
    END
  END

Thanks in advance.

Best regards,
Bart



More information about the mapserver-users mailing list