[Gdal-dev] Bogus OGRSpatialReference should cause error, right?
Frank Warmerdam
fwarmerdam at gmail.com
Mon Sep 5 16:46:12 EDT 2005
On 9/5/05, Ben Discoe <ben at vterrain.org> wrote:
>
> I spent a bit of time this evening tracking down a problem with
> OGRSpatialReference objects. It turns out that
> OGRCreateCoordinateTransformation will accept them even when they contain no
> CRS at all, i.e. poRoot=NULL. It would have shortened my debugging time if
> OGRCreateCoordinateTransformation had returned an error and refused to
> transform. Instead, it returns a bogus transform which gives strange
> results.
Ben,
I concur. I have tightened up error checking in the exportToProj4()
and OGRProj4CT::Initialize() methods.
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