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

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Thu Nov 25 16:43:35 EST 2004


Bart,

  I have corrected bug 1087.

  As for your bug, I could not really reproduce it with the same setting
using local test data. I am  using php_mapscript and the mapserver cgi
to draw a layer setup as yours (WMS client to a polygon layer with
wms_sld_auto and wfs_filter set). I though that your layer on the server
side was set as RASTER, that's why it was related to bug1087. If it is
set as a Polygon, I really do not understand what the problem is. What I
have tried is :
    - php_mapscript : open your wms client map and draw that layer
    - mapserv.cgi : mode=map

Is it problem happening inside chameleon or you can reprodice it with
simple php scr4ipt or using mapserver cgi ? If that is the case would
you provide me with your cleint and server map/data files ?

Later,

Bart van den Eijnden wrote:

> Hi Assefa,
>
> Gemeentes is a polygon shapefile layer on the WMS server. But the
> Chameleon querybuilder works on the Gemeentes layer through a
> CONNECTIONTYPE WMS type of layer (so a raster layer ...).
>
  I am not following all you are saying here (probably because I do not
know much about the querybuilder of Chameleon). But the fact is that
this error should only be generated if on the server side the Gemeentes
layer's type is set as raster and we try to apply a spatial filter
(queries) on it. The test I have added simply checks that spatial filter
are only applied on vector layers.

> This layer definition is generated by the Chameleon querybuilder (so it
> does apply an SLD), and includes an attribute selection together with a
> spatial (bbox) selection.
>
> Best regards,
> Bart
>
>
>>I suspect it is a similar/related bug filed in bug 1087. I suspect that
>>It is trying to apply an SLD with a spatial filter to a raster layer on
>>the server (Is Gemeentes layer on the server side set as a raster layer
>>?). I need to add a check on the layer type before doing a query. I have
>>corrected this locally but could you confirm on the layer type of
>>Gemeentes.
>>
>>Later,
>>
>>Bart van den Eijnden wrote:
>>
>>
>>>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
>>>
>>
>>
>>--
>>----------------------------------------------------------------
>>Assefa Yewondwossen
>>Software Analyst
>>
>>Email: assefa at dmsolutions.ca
>>http://www.dmsolutions.ca/
>>
>>Phone: (613) 565-5056 (ext 14)
>>Fax:   (613) 565-0925
>>----------------------------------------------------------------
>>
>>
>>
>
>


--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list