[mapserver-users] WMS Server and Custom ESPG code
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Fri Nov 1 15:42:13 PDT 2013
Hi,
I did the same as you with MS4W and a new code in my C:\ms4w\proj\nad\epsg file
# Chippewa County Coordinates EPSG:97036
<97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <>
Works for me. I used an old "states" demo mapfile and my test URL with a ridiculous BBOX but at least I get an image back with
http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/spatialite.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=459&HEIGHT=353&LAYERS=states_table&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=14.00485547821351,-125.96365349999999,60.32284452178648,-65.73714650000001&CRS=EPSG:97306&STYLES=
-Jukka Rahkonen-
________________________________
Brian Fischer wrote:
I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message. msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.
Is this supported? I have followed these steps.
1) Defined the custom projection with a new espg code in \ms4w\proj\nad\epsg
2) In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad")
3) Defined the new espg in the Web, Projection, Layer objects of the mapfile.
4) Verified the mapfile works using the shp2img utility
Has anyone else go this to work?
Thanks!
Brian
More information about the MapServer-users
mailing list