[mapserver-users] WMS Server and Custom ESPG code

Smith, Michael Michael.Smith at maine.gov
Fri Nov 1 12:26:01 PDT 2013


Hi Brian, I have successfully done this as you outline below.

I checked my WMS and they reference c:\ms4w\proj\nad.

In that folder I edited the epsg file

I added the following line to the end of the file:
# ESRI Web Mercator
<102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs

Now I can serve my WMS out as Web Mercator for ArcGIS Online.

===============================
Michael Smith MS GISP
State GIS Manager, Maine Office of GIS
State of Maine, Office of Information Technology
michael.smith _at_ maine.gov 207-215-5530

Board Member, Maine GeoLibrary
Education Chair, Maine GIS Users Group
State Rep, National States Geographic Information Council
[cid:image001.jpg at 01CED716.AB170CF0]

State House Station 145
51 Commerce Drive
Augusta, ME 04333-0145
69o 47' 58.9"W  44o 21' 54.8"N
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Fischer
Sent: Friday, November 01, 2013 2:41 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] WMS Server and Custom ESPG code


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131101/cb0521d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 9032 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131101/cb0521d0/attachment.jpg>


More information about the mapserver-users mailing list