[Gdal-dev] gdal_translate question

David W. Lowther DLowther at scigis.com
Thu Aug 19 12:39:48 EDT 2004


Frank,

I'm not sure that was/is the issue.

Certainly I am not that familiar with GDAL, but I added four lines after
calculating src_win to calculate the ABS of the values, recompiled, and
it fixed my issue.

Thoughts?

Dave

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Thursday, August 19, 2004 10:54 AM
To: David W. Lowther
Cc: gdal-dev at xserve.flids.com
Subject: Re: [Gdal-dev] gdal_translate question

David W. Lowther wrote:
> List,
> 
> When running gdal_translate with the -proj_win option the program
> calculates a -src_win. I have been getting calculated src_win(s) with
> negative numbers (both for offset and size). Is this supposed to
happen?

David,

If your projwin falls off the edge of the image this can happen.  I have
just patched gdal_translate to terminate if the window is off the image
since things cannot proceed properly.

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