WMS projection error...
John Cole
john.cole at UAI.COM
Thu Mar 16 06:04:42 PST 2006
Nikos,
I had set a PROJ_LIB system environment variable already, but looking at
it in the command prompt, I noticed it was set to the QGIS directory (not
the ms4w directory I had set it). Sure enough, there was a local PROJ_LIB
value that the QGIS install had set. I deleted that one but had to reboot
(restarting IIS didn't work) to get mapserver to pick up the changes. Now
it's working.
Thanks,
John COle
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Nikos
Sent: Thursday, March 16, 2006 1:43 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error...
Frank Warmerdam wrote:
> John Cole wrote:
>
>> I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a
>> map map
>> 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the
>> following error:
>>
>> msProcessProjection(): Projection library error. No such file or
>> directory
>>
>> If I browse to the map using mode=browse it works fine (it did have a
>> similar error through the browser, but a config fixed it and adding the
>> PROJ_LIB path to my environment variables also fixed it).
>>
>> Hitting the same mapfile with mapserver 4.4 works fine.
>>
>> Is there another parameter to tell wms where the proj files are?
>
>
> John,
>
> One way of handling this is to have a CONFIG directive on your map
> object.
> I think this would look something like:
>
> MAP
> CONFIG "PROJ_LIB" "C:/PROJ/NAD"
> ...
>
> Best regards,
Hi,
You can also set an environment variable PROJ_LIB, and ms seems to
figure it out..;-)
regards,
nikos
More information about the MapServer-users
mailing list