MapServer / MapServer-import

3 stars 2 forks source link

[MapServer]"testMapScript.py" with "EPSG" in test.map generates error #687

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: nsavard@mapgears.com Date: 2004/05/26 - 20:30

Executing the Python "testMapScript.py" test generates a projection error.  This
error is caused by the use of string "EPSG" upper case in the map file
(test.map).  On Linux "epsg" must be used.

Fedora Core 1

----------------------
Error:

[nsavard@localhost python]$ python tests/testMapScript.py
.......E.EEEEEEE.......EEEEEEEEEEE....EEEEEEEEEEEEEEEEEEEE.EEEEE.........EEEEEEEEEEE..EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: testDrawPoints (__main__.DrawProgrammedStylesTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/testMapScript.py", line 127, in setUp
    self.mapobj1 = mapscript.mapObj(testMapfile)
  File "build/lib.linux-i686-2.2/mapscript.py", line 1128, in __init__
    newobj = _mapscript.new_mapObj(*args)
MapServerError: msProcessProjection(): Projection library error. no system list,
errno: 2
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/05/26 - 21:03

This isn't a mapscript bug.

Best practice is to set up a symbolic link EPSG -> epsg.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/05/27 - 16:49

I think that setting a symlink is not intuitive for me.  I discussed with Daniel
and he has some comments to do.  So I put him in CC.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/05/27 - 21:57

You're right, I should change it to "epsg".
tbonfort commented 12 years ago

Author: dmorissette Date: 2004/05/27 - 22:36

Thanks for changing your mind on this one Sean.  Using lowercase 'epsg' is more
correct IMHO since this is a PROJ init string and not an OGC SRS name in this
case, so the value has to be lowercase since this is the way PROJ is distributed.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/05/27 - 22:59

Thanks Sean.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/05/28 - 22:17

Thanks for showing me the light.  Case closed.