[Mapserver-users] WMS Layer
Jeff McKenna
mckenna at dmsolutions.ca
Tue Aug 19 07:00:20 PDT 2003
Hey Nicol,
Remove the CLASS object from your WMS layer and it works fine.
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