Can I reproject WMS service using cgi parameters?

Ed McNierney ed at TOPOZONE.COM
Wed Jan 17 18:33:00 EST 2007


Mark -

The WMS specification requires that a request SRS be specified by "id"
rather than described parametrically.  If you are in control of both the
client and server systems, you can simply edit your EPSG file to create
your own private ID and definition for your projection.  The spec
requires that your SRS belong to either the EPSG, NONE or AUTO classes,
so you can't create a new SRS type - you'll just want to create your own
"EPSG" entry.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Mark de Blois
Sent: Wednesday, January 17, 2007 7:53 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Can I reproject WMS service using cgi
parameters?

Hi all,
I am struggling trying to get a local WMS mapservice (local one with
data in EPSG:4326) to be reprojected on the fly into a projection for
which no EPSG code exists (Winkel Triple). But I am not sure whether
this is possible (since there is not EPSG code for Winkel Triple I
cannot add a WMS_SRS in the layer properties).

What I am trying to do is add onto the url for the map request:
 
"proj=wintri&ellps=WGS84&lat_1=50&units=meters&BBox=-16000000,-10000000,
16000000,10000000"
The result is the map in EPSG:4326 projection though zoomed out greatly.

After changing the bounding box to -180,-90,180,90 I get my 'normal' 
lat/lon map though not in the projection I wish.

Could someonelet me know if what I am trying is possible at all? Thanks
ahead!

cheers,
Mark



More information about the mapserver-users mailing list