[ gpsdrive ] Errors with gdal_warp [SOLVED]
R. G. Newbury
newbury at mandamus.org
Thu Nov 20 08:41:27 AKST 2008
Chris h wrote:
> On Wednesday 19 November 2008 14:40:28 R. G. Newbury wrote:
(Added back for clarity) I'm trying to transform NOAA RNC charts to
tif's (and then use Hamish' gdalslice to make tiles). BUT, I get errors
with gdalwarp:
> Interesting. I was working the same problem last night using the same chart as
> hamish and it also kept blowing up on me. Im not sure but I think its
> something with the actual chart, as qgis also gives me strange errors on the
> charts version I am using.
>
> What chart are you using? I will try to replicate at this end with the set I
> have, which are now at least six month old if not older. They came on DVD
> from a supplier in BC around March of last year.
In this case I was using a one or two day old download of charts 11466
and 11467 which I grabbed to use in tuning the 'for' loop in a script
intended to create tif files from all the KAP files in sub-folders.
When that failed, I tried to unzip the much larger zip files I had
downloaded in July AND THEY WILL NOT OPEN!....Not recognized as a zip
file!! HUH? Whatever....
This morning I have just tried to run the gdalwarp program in a cut down
version of the script on my desktop....and got an 'undefined' reference
error from gdalwarp!. That was against the latest 'yum install' versions
of gdal-[devel] on the Fedora 8 'everything' repo (1.4.2)...So I have
just downloaded and made 1.5.3 from source. (Ain't software such
fun...how to waste time while having fun...Luckily I can talk on the
phone *and* download, untar, configure, make && make install at the same
time. Including a digression to fix an include error in the source...)
So I now have gdal version 1.5.3 and as pointed out by Hamish in another
message,
*the error is actually due to the use of '-co COMPRESS=DEFLATE' in the
command line*.
With that included in the call, gdalwarp throws errors, creating a file,
which gthumb sees as '0 x 0' pixels. Without that extra switch, gdalwarp
creates a (much bigger) file, which gthumb and other viewers can happily
open and use.
Geoff
--
Please let me know if anything I say offends you.
I may wish to offend you again in the future.
Tux says: "Be regular. Eat cron flakes."
More information about the GPSdrive
mailing list