WMS GetMap not using Lat/Lonprojection
McGraw, Joanne
mcgrawj at AGR.GC.CA
Wed May 4 06:28:40 PDT 2005
G'day, Frank,
I tried your suggestion to use shp2img interactively to see if some clue
is provided. One was, but I don't know what to do with it.
When I tried:
shp2img -m pei.map -o out.png
This was the result:
msLoadMap(): Unknown identifier. (config):(12)
The config line in my map is:
config PROJ_LIB /usr/local/proj-4.4.5/nad/
As far as I can tell, that's the correct syntax for config. Uppercase
CONFIG makes no difference...I tried.
I'll attach my map file again in case there's something before the
config line that is actually causing the problem. I can't see anything
but I say it's possible because, when the config line failed, I
commented it out and tried the shp2img utility again. This time it
failed with:
msLoadMap(): Unknown identifier. (outputformat):(23)
After commenting the outputformat object out, I finally got an out.png,
but the fact that both of these common tags were not recognized suggests
something odd is going on.
Any ideas?
jtm
-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]
Sent: Tuesday, May 03, 2005 12:14 PM
To: McGraw, Joanne
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using
Lat/Lonprojection
On 5/3/05, McGraw, Joanne <mcgrawj at agr.gc.ca> wrote:
> Hi Frank,
>
> Is simply copying this file enough? Or, do I also need to add some
> indication that the grid shifts should be used somehow?
>
> The reason I ask is that I tried just copying the file and it hasn't
had
> any effect. I was reading the "nadgrids - Grid Based Datum
Adjustments"
> section at http://proj.maptools.org/gen_parms.html and was wondering
if
> I should be creating a new definition (with the +to NAD27 from NAD83)
in
> the epsg file and using that as the projection definition.
>
> Is the use of this data file something that has been introduced
> recently; that is, post-MapServer 4.4.0? Perhaps, it is just not being
> referred to in the version I have?
Joanne,
I think just copying it should be fine.
Internally +datum=NAD27 is defined as:
+nadgrids=@conus, at alaska, at ntv2_0.gsb, at ntv1_can.dat
That is, it searches for the conus, alaska, ntv2_0.gsb and then
ntv1_can.dat files till it finds a file overlapping the region to
be converted. So you shouldn't need to do anything special
to use this file.
If it still isn't worked, I am somewhat confused. I am assuming
that MapServer is able to load the epsg file which is the
same directory, so it shouldn't be a permissions problem on
the directory path, though you might want to check the permissions
on the ntv1_can.dat file itself.
My next suggestion would be to test interactively with
shp2img.
eg.
shp2img -m pei.map -o out.png
If you set the PROJ_DEBUG environment variable to a
value (any value) then you should get detailed reports
from the PROJ.4 library on files that it tries to open. This
might provide a clue.
Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pei.map
Type: application/octet-stream
Size: 4658 bytes
Desc: pei.map
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050504/1a9ec9ae/attachment.obj>
More information about the MapServer-users
mailing list