[mapserver-users] WMS don't load
Kralidis,Tom [Burlington]
Tom.Kralidis at ec.gc.ca
Wed Oct 1 06:22:15 PDT 2008
Do you have EPSG:42304 defined in your mapfile? I wonder whether this
is the issue. Having said this, if your output projection is EPSG:4326,
you're better off defining wms_srs in the LAYER.METADATA to bypass the
reprojection.
..Tom
________________________________
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Steve.Toutant at inspq.qc.ca
Sent: 01 October, 2008 9:12 AM
To: Rahkonen Jukka
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WMS don't load
I agree this connection was not a good example. Before creating
the mapfile I used it to get a map on Internet Explorer to verify if I
had a network problem. Since it was working I put it in the mapfile
I created the following mapFile based on this example
http://mapserver.gis.umn.edu/docs/howto/wms_client/#adding-a-wms-layer
and it still work on one server but not on the other. I get the
blank page.
When I test the mapFile with shp2img I got this message
shp2img -m TutorielStatic.map -o test.png
msProcessProjection(): Projection library error. No such file or
directory <br>
I got this message on the server who works well also. My EPSG
file contains 4326. Can't see why I get that error.
The second server is installed on a virtual environment on a
vmware infrastructure. I'll talk with our network admin to see if it
could be an issue.
Here is the mapFile I'm now using.
thanks for your help,
steve
:
MAP
IMAGETYPE PNG
EXTENT -80.43000 44.99000 -57.64000 62.78000
SIZE 400 300
IMAGECOLOR 255 255 255 #Background color
PROJECTION
"init=epsg:4326" #wgs84 lat long
END
WEB
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
LAYER
NAME "prov_bound"
TYPE RASTER
STATUS default
CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:42304"
"wms_name" "prov_bound"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
END
END
END
More information about the MapServer-users
mailing list