Ticket #687 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

[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

Changed 9 years ago by sgillies@…

  • status changed from new to closed
  • resolution set to worksforme
This isn't a mapscript bug.

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

Changed 9 years ago by nsavard@…

  • 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.

Changed 9 years ago by sgillies@…

  • status changed from closed to reopened
  • resolution worksforme deleted
You're right, I should change it to "epsg".

Changed 9 years ago by dmorissette

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.

Changed 9 years ago by nsavard@…

Thanks Sean.

Changed 9 years ago by sgillies@…

  • status changed from reopened to closed
  • resolution set to fixed
Thanks for showing me the light.  Case closed.
Note: See TracTickets for help on using tickets.