Problem with projection origin

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCAN.GC.CA
Wed Apr 19 10:20:37 PDT 2006


Hello,

I have a mapfile which contains layers that are from remote WMS' ... It
declares a global PROJECTION of epsg:42304 ... As well as "wms_srs"
"EPSG:42304" on the WMS client layers.  There is one local layer with
proj=latlong.

Now, in my interface, I move around the map by center and scale, so using
mapxy= and scale= through the CGI.

Now, for some reason, when I ask for mapxy=0 0 (The projection's origin,
which is 95W 49N), and a specific scale, the bounding box for the resulting
map comes out all wrong:

11115156.724629 3706599.410247 11296343.293455 3867465.990045

[atlas at pcwebmapdev english]$ invproj +init=epsg:42304
11115156.724629 3706599.410247
0d29'49.576"W   0d28'44.742"N
11296343.293455 3867465.990045
0d29'22.989"E   0d28'45.701"S

If I do the same on a map that has no explicit projection declaration
(because all the data is in the same system), and only local data
(shapefiles), this works fine.  So somehow this problem seems to be specific
to either the fact there's PROJECTION objects, or maybe because it's acting
as a WMS client.

Anyone run into this before, or have an idea what might be causing it?

Thanks!

Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410



More information about the MapServer-users mailing list