[gdal-dev] Problem with old projection string

Frank Warmerdam warmerdam at pobox.com
Mon May 4 11:58:01 EDT 2009


Derrick Hoffman wrote:
> //Get GDAL reprojection transform
> 
> void * pTransformArg = GDALCreateReprojectionTransformer(sourceArray, 
> destArray);

Derrick

Does the above function return a non-NULL result?  Does the
GDALReprojectionTransform() function seem to be doing the right
thing (ie. success is TRUE and result coordiantes are geographic)?

> My problem is that when the dataset is opened, the projection string it 
> reports is just “Local_CS[“”]”
> 
> Any ideas on how I can get the projection for the file in a manner that 
> my GDAL conversion will work, or an alternative method for converting?

It seems to me that the problem isn't specifically with the coordinate
reprojection, but with how the output file is created - a matter you
haven't described.  What is the output format?  How are you setting the
coordinate system on the output file?  Possibly you will need to provide
more context.

I will say I don't see any inherent problem with the output coordinate
system definition you are using.

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