[mapserver-dev] Re: [mapserver-users] Using e00 files
Paul Ramsey
pramsey at cleverelephant.ca
Tue Feb 2 13:20:51 EST 2010
Yeah, would be nice.
Howard did an RFC some time back.
http://svn.osgeo.org/mapserver/trunk/docs/en/development/rfc/ms-rfc-37.txt
I think it could be whittled down to
if (! layer->projection)
msLoadProjectionFromSource(lyr);
The odd/unfortunate thing about that is setting the projection becomes
a kind of side effect of msDrawMap, probably. At least, the current
workflow is such that the data sources aren't opened until "things
start happening" (queries, map drawing, whatever). So either we
piggyback the source projection setting into there, or we stick it
onto the end of msLoadMap. But putting the projection load at the end
of msLoadMap could make for some interesting problems for mapscript
people who are loading a map file with invalid data entries and then
making them valid before invoking an action.
The question of "where in the workflow to do the source projection
reading" seems like the key one for this problem.
P.
On Tue, Feb 2, 2010 at 9:14 AM, Brent Fraser <bfraser at geoanalytic.com> wrote:
> You haven't defined the LAYER's PROJECTION (we really should enhance
> mapserver to read .prj files!)
More information about the mapserver-dev
mailing list