Opened 23 years ago

Closed 21 years ago

#63 closed defect (fixed)

One-line format for projections not supported in mapfile

Reported by: dmorissette Owned by: warmerdam
Priority: high Milestone:
Component: MapServer C Library Version: 3.5
Severity: normal Keywords:
Cc:

Description

It appears that one-line format of projection strings is not supported when 
reading a mapfile, e.g. the followinng won't work

  PROJECTION
     "+proj=lcc +ellps=... "
  END

but it is possible to pass the above string to $map->setProjection() and it 
accepts it.  Comma-delimited projection strings are also accepted.

The fix should be to move the code that handles the "+proj=..." and the 
comma-delimited strings into msProcessProjection().  Does any one see potential 
problem with doing that?

Change History (4)

comment:1 by dmorissette, 23 years ago

Cc: assefa@… added

comment:2 by fwarmerdam, 22 years ago

The msLoadProjectionString() function already supports splitting the one-line
format into the normal form.  Perhaps loadProjection() should be modified to
call msLoadProjectionString() when it encounters a "MS_STRING" token instead
of just adding it to the list?  

Would you like me to take this one and implement it? 


comment:3 by dmorissette, 22 years ago

Owner: changed from morissette@… to fwarmerdam
Sure, no problem... I've reassigned the bug to you.  One less on my list!  ;-)

comment:4 by fwarmerdam, 21 years ago

Resolution: fixed
Status: newclosed
I have implemented this, and added a test for it in 
msautotest/gdal/gdal_png_256_res.map.


Note: See TracTickets for help on using tickets.