[mapserver-users] Problem with Python Mapscript / Projection(MS4W)

Fawcett, David David.Fawcett at state.mn.us
Wed Nov 5 08:16:40 PST 2008


Have you tried to explicitly set the path to the proj library in the map
file?  

Try adding this to the map object:

CONFIG "PROJ_LIB" "C:/somedir/proj/nad/"

You can find a little more about this in the map file reference.
http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj

David.



-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian
Jauvin
Sent: Wednesday, November 05, 2008 10:12 AM
To: Umberto Nicoletti
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Python Mapscript /
Projection(MS4W)


Hi,

In fact I'm using the MS4W distribution of MapServer, so it runs on
Windows. The EPSG lookup file is there and everything seems fine, but
still this nagging bug persists.. I should add that I tried loading the
exact same mapfile from PHP/Mapscript, and it runs fine. The problem is
specific to Python/Mapscript. Any other idea?

Christian



On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti
<umberto.nicoletti at gmail.com> wrote:
> make sure that the user running apache can read the 
> /usr/share/proj/epsg file. If permissions seem ok then it could be a 
> problem with SELinux or apparmor, depending on your platform.
>
> Umberto
>
> On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin <cjauvin at gmail.com> 
> wrote:
>> Hi,
>>
>> I get a "MapServerError: msProcessProjection(): Projection library 
>> error. Permission denied" error while using Python/MapScript (MS4W 
>> 2.3, MapServer 5), after having included a
>>
>> PROJECTION
>>   "init=epsg:XXXX"
>> END
>>
>> directive in a mapfile layer. I guess that it has something to do 
>> with an Apache permission to execute a binary somewhere..
>>
>> This is I think the first time I can't find an answer to a MS problem

>> simply by googling, so I try it here, in hope that someone will be 
>> able to help.
>>
>> Thank you in advance,
>>
>> Christian
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list