[Gdal-dev] Coordinate transform problem

Frank Warmerdam warmerdam at pobox.com
Sat Oct 16 17:29:35 EDT 2004


Chapman, Martin wrote:
> Ok, I figured it out.  I had numerous things wrong in my code outside 
> this function.  I still have one problem though.  The Transform method 
> of the OGRCoordinateTransformation class doesn't like it when I pass in 
> coordinates that are outside the valid limit for certain projections 
> (i.e. Mercator).  My new question is, how do I calculate what the valid 
> limits are for a projection like mercator?  Is it a matter of 
> subtracting False Easting and Northing or something like that?  Any help 
> on understanding how to calculate these limits for a projection would be 
> much appreciated.

Martin,

I am not aware of any systematic way of determining bounds of validity
for projections.  Note that in many cases the projectinos equations
degrade gradually so there is no obvious bound.  It depends on your
error tolerance.  But even at that, there is no GDAL/OGR/PROJ support
for determining error or regions of appropriateness.

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 Gdal-dev mailing list