[Gdal-dev] gdal_translate segfaults at tiff->envi

Andrey Kiselev dron at ak4719.spb.edu
Thu Jun 5 11:44:29 EDT 2003


On Thu, Jun 05, 2003 at 11:09:48AM -0400, Frank Warmerdam wrote:
> Andrey, could you look into a robust solution to this?
> I see in the code you do this to check the projection name to see
> if it contains UTM.  This is not a robust way of determining if a projection
> is UTM.  Instead just call oSRS.GetUTMZone() and check that the result is
> non-zero.  If so, then the coordinate system is UTM otherwise not.
> 
> 	if ( strstr( pszProjName, "UTM" ) )
> 	{
> 	    iUTMZone = oSRS.GetUTMZone( &bNorth );

I have made suggested changes.

Vincent, does it solve your problem?

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list