Opened 20 years ago

Closed 20 years ago

#687 closed defect (fixed)

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

Reported by: nsavard@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.3
Severity: normal Keywords:
Cc:

Description

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

Change History (6)

comment:1 by sgillies@…, 20 years ago

Resolution: worksforme
Status: newclosed
This isn't a mapscript bug.

Best practice is to set up a symbolic link EPSG -> epsg.

comment:2 by nsavard@…, 20 years ago

Cc: morissette@… added
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.

comment:3 by sgillies@…, 20 years ago

Resolution: worksforme
Status: closedreopened
You're right, I should change it to "epsg".

comment:4 by dmorissette, 20 years ago

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.

comment:5 by nsavard@…, 20 years ago

Thanks Sean.

comment:6 by sgillies@…, 20 years ago

Resolution: fixed
Status: reopenedclosed
Thanks for showing me the light.  Case closed.
Note: See TracTickets for help on using tickets.