FW: RE: [gdal-dev] No PROJ.4 translation for source SRS

Smart, Gary Gary.Smart at goodrich.com
Thu Jan 21 05:20:20 EST 2010


OK - this has been sorted.  A simple misused pointer.

Thanks to all contributors.

 

> -----Original Message-----

> From: Frank Warmerdam [mailto:warmerdam at pobox.com]

> Sent: 19 January 2010 15:31

> To: Smart, Gary

> Cc: gdal-dev at lists.osgeo.org

> Subject: Re: [gdal-dev] No PROJ.4 translation for source SRS

> 

> Smart, Gary wrote:

> > I still can't get to the bottom of this message - can anyone explain


> > it...

> >

> >

> >

> > *ERROR 1:  No PROJ.4 translation for source SRS, coordinate 

> > transformation initialization has failed*.

> >

> >

> >

> > I'm trying to convert the native coordinates in a file into WGS84 

> > lat/longs.

> >

> > However, when I create the OGRCoordinateTransformation (using the 

> > importFromWkt for input source and setWellKnownGeogCS("WGS84") for

> > output) I get the above PROG.4 error.

> 

> Gary,

> 

> I'm afraid I never looked into the original problem because your 

> reference to the files in question ("tiff files from the mapserver 

> tutorial") was too inconvenient to follow up on.  Can you provide a 

> more direct reference to them?

> What does gdalinfo report for one of the problem files?

> 

> The message means that the code used to translate WKT coordinate 

> system descriptions into PROJ.4 coordinate system descriptions does 

> not know how to do it for the provided coordinate system.  This might 

> be for a reason as simple as the coordinate system string being empty
(unavailable).

> 

> Best regards,

> --

 

Thanks for all your responses in this matter.

 

I have tried setting GDAL_DATA to the appropriate directory and this
made no difference.

 

Regarding the actual georeference information in the file - I don't
think the specifics of the coordinate system are the problem here.  I
get the same PROG4 error for every georeferenced file I look at.
Attached is a tiny fragment of geotif on which gdalinfo reports all
salient coordinate info correctly.  However, I still can't set up the
coordinate transform for this tile.  I think its something to do with
importFromWkt.  If I use the setWellKnownGeogCS for both input and
output (e.g. WGS72 in, WGS84 out) then the transform is created OK.
What does GDAL do in the importFromWkt?  Is there some data table or
other which could be missing, or some parser or something?

 

I have reinstalled gdal now - returning to the svn-stable-2009.12.14
(without any difference in the symptoms).

 

Regards Gary

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100121/898ef4ed/attachment-0001.html


More information about the gdal-dev mailing list