[mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question
Fawcett, David
David.Fawcett at state.mn.us
Wed Nov 5 09:20:59 PST 2008
Christian,
My experience is that the Python MapScript 'community' is extremely
small. I really don't think that there are many people using it. If I
am wrong, please speak up users. When I have posted questions to the
list, if I got any response, it was from developers like Sean or Howard.
My feeling is that if you want support, examples, etc. you should go
with php or maybe C# .NET MapScript. I find this unfortunate because I
really like Python as a language and I write a lot of GIS related Python
code (ESRI and GDAL/OGR) as part of my job.
David.
-----Original Message-----
From: Christian Jauvin [mailto:cjauvin at gmail.com]
Sent: Wednesday, November 05, 2008 10:51 AM
To: Fawcett, David
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Python Mapscript /
Projection(MS4W) + new question
That's exactly it, it works, thank you David!
I'll take the occasion to ask about something that troubles me about
Python/Mapscript: what's the exact state of it, is it being actively
developed and used, and what's its exact relation with the other MS
components?
For a long time I wrote all my MS code in PHP, and I had no problem
finding reference and documentation, as it seems to be actively
maintained, and people are discussing techniques and issues everywhere.
But then I switched to Python/MS a couple of weeks ago, and I have a
hard time just finding a basic API guide for it, and I'm always
wondering if it's somewhat lagging behind its PHP brother, for some
reason.
Thank you for your kind help,
Christian
On Wed, Nov 5, 2008 at 11:16 AM, Fawcett, David
<David.Fawcett at state.mn.us> wrote:
> 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