Opened 12 years ago

Last modified 12 years ago

#4219 new defect

Unable to set projection on mapObj

Reported by: hobu Owned by: tbonfort
Priority: low Milestone:
Component: MapCache Version: unspecified
Severity: normal Keywords:
Cc:

Description

http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/lib/source_mapserver.c#L57 produces a poorly useable error message and doesn't tell me why it can't set the projection on the mapObj. I think the issue is I do not have 900913 in my epsg file (I had been using EPSG:3857 everywhere) for a <grid> that is g, but the error message is unable to tell me that. Can we msGetErrorObj() here and return the info in that?

Change History (6)

comment:1 by tbonfort, 12 years ago

Sure, it would be nice to give out more info, here and at other places libmapserver can fail. Feel free to assign the ticket to yourself and fix :)

comment:2 by hobu, 12 years ago

My question was more related to the fact that we're threaded and getting access to the errorObj might not be? Or is this not a concern. I will happily fix though if we don't care about that issue.

comment:3 by tbonfort, 12 years ago

I believe that access the errorObj is compatible with multiple threads:

http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-2/mapserver/maperror.c#L112

comment:4 by hobu, 12 years ago

Added some better reporting in r13193. Please take a look and close when you're satisfied.

comment:5 by hobu, 12 years ago

Tweaked in r13196 to not free the msg before returning it...

comment:6 by hobu, 12 years ago

Even better in r13197

Note: See TracTickets for help on using tickets.