[gdal-dev] Problem with old projection string

Derrick Hoffman derrick.hoffman at ultra-prologic.com
Mon May 4 12:01:57 EDT 2009


pTransformArg is null. 
As a side note, even when opening the file in FWTools 2.3.0, the
projection reported is just -> Local_CS[""]

Thanks :) 

Derrick Hoffman

Software Engineer

Pro Logic Inc.

304 333-2680 x 322

derrick.hoffman at ultra-prologic.com

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Monday, May 04, 2009 11:58 AM
To: Derrick Hoffman
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Problem with old projection string

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



This e-mail from Ultra Electronics, ProLogic and any attachments to it are confidential to the intended recipient and may also be privileged or controlled by U.S. export control laws and regulations. No technical data, information or other items provided by Ultra Electronics, ProLogic in connection with this email shall be shared or provided to any foreign persons, entities, or subsidiaries without the expressed written authorization of Ultra Electronic, ProLogic.  If you have received it in error please notify the sender and delete it from your system. If you are not the intended recipient you must not copy it or use it for any purpose nor disclose or distribute its contents to any other person.  

All communications may be subject to interception or monitoring for operational and/or security purposes. Please rely on your own virus checking as the sender cannot accept any liability for any damage arising from any bug or virus infection.



More information about the gdal-dev mailing list