[Mapserver-users] WMS Layer
Jeff McKenna
mckenna at dmsolutions.ca
Tue Aug 19 08:25:37 PDT 2003
Nicol,
Remove the CLASS object from your mapfile and you will get the correct
image returned.
Jeff
mapserver at geochem.de wrote:
> Hi Jeff,
>
> thank you for your answer.
> Maybe my explanation was not clear enough. I don´t want a yellow
> background color. The blank yellow image is only the result which i get
> back from my WMS request. The color 'yellow' is defined in the RGB value
> given in the class Section.
> My basic intension is to get the "real" layer (like it appears where i
> use the HTTP-Request) and not a blank layer.
> Because, the layer appears when i use the HTTP-Request i suppose that i
> made a Mistake in my Map file.
> Do you have a further Idea what i have to change in my map File?
>
> Thank you very much
> Nicol
>
>
> Jeff McKenna <mckenna at dmsolutions.ca> schrieb am 19.08.2003, 16:18:14:
>
>>Nicol,
>>
>>Also, if you want that yellow background colour use the IMAGECOLOR
>>parameter in the MAP object.
>>Hope this helps.
>>
>>Jeff
>>
>>
>>
>>
>>
>>mapserver at geochem.de wrote:
>>
>>>Dear list
>>>
>>>could someone please give me hint what i am doing wrong.
>>>I'am trying to integrate an WMS Layer from DM Solutions for testing
>>>purpose in my Map File.
>>>Unfortunately the WMS Server returns only an blank yellow image.
>>>
>>>Here is the Map-File i use:
>>>
>>>MAP
>>> EXTENT 2200000 -712631 3072800 3840000
>>> SIZE 300 300
>>> NAME WMS-Test_Client
>>>
>>>WEB
>>> IMAGEPATH "/home/nicol/public_html/mapserver/tmp/"
>>> IMAGEURL "/~nicol/mapserver/tmp/"
>>> LOG "/tmp/wmsclient.log"
>>>END
>>>
>>>PROJECTION
>>> "init=epsg:42304"
>>>END
>>>
>>>Layer
>>> Name land_fn
>>> TYPE POLYGON
>>> STATUS DEFAULT
>>> CONNECTIONTYPE WMS
>>> CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
>>>
>>> METADATA
>>> "wms_name" "land_fn"
>>> "wms_onlineresource" "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
>>> "wms_server_version" "1.1.0"
>>> "wms_title" "land_fn"
>>> "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 AUTO:42001
>>>AUTO:42002 AUTO:42003 AUTO:42004 AUTO:42005"
>>> "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp"
>>> END
>>>
>>> PROJECTION
>>> "init=epsg:42304"
>>> END
>>>
>>> CLASS
>>> NAME test
>>> COLOR 255 255 0
>>> OUTLINECOLOR 0 0 0
>>> END
>>>END
>>>END
>>>
>>>If i do the same with an HTTP-Request the image appears correct:
>>>http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?REQUEST=getMap&VERSION=1.1.0&LAYERS=land_fn&FORMAT=image/gif&SERVICE=wms&SRS=EPSG:42304&BBOX=-2200000,-712631,3072800,3840000
>>>
>>>What do I have to Change in my Map-File?
>>>BTW: I activate the Option --enable-debug but i get no entry in the
>>>apache error_log. What else ist needed to get the debbuging information
>>>in the log Files?
>>>
>>>
>>>/usr/local/apache/cgi-bin/mapserv_40 -v
>>>MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
>>>OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
>>>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF
>>>INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>>>INPUT=SHAPEFILE
>>>
>>>on a Debian 3.0r1 box
>>>
>>>Thank you very much
>>>Nicol
>>>_______________________________________________
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>
--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the MapServer-users
mailing list