[mapserver-dev] MS RFC 37: AUTO Projection Support

Frank Warmerdam warmerdam at pobox.com
Mon Feb 22 11:53:32 EST 2010


Howard Butler wrote:
>> - I'm not sure if this is the same question as Frank's, but, what happens
>> when no projection info can be read from the source file, when using
>> PROJECTION AUTO?

Jeff,

Good question.

> It will be an unfilled projectionObj, which is what a layer with no
> PROJECTION object currently ends up with.

Howard,

I'm not sure I'm happy with this answer.  If the person puts PROJECTION AUTO
and MapServer just silently treats this as a layer with no projection
information because there is nothing available from the file, this could
be very misleading. I'd like to suggest instead that an error be issued
by MapServer in this situation, suggesting the PROJECTION block be commented
out or manually filled as MapServer is unable to automatically provide
coordinate system information for the dataset in question.

Also, we should ensure there is a nicely formatted debug message reporting
on the projection value substituted for AUTO so that folks who are
trying to peak under the hood will know what is actually happening.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list