multiple rasters && mapview
Jonathan Coles
jonathan at jpcoles.com
Tue Jan 18 22:12:11 CET 2005
Am Dienstag, den 18.01.2005, 13:29 -0500 schrieb Russell Nelson:
> Jonathan Coles writes:
> > i'm attaching another version of the diffs which include the changes.
>
> Doesn't work for me. The map is rendered with the wrong colors and
> flipped top for bottom. I suspect GetImageData is the guilty party.
> Here's the dataset (137KB):
>
> http://russnelson.com/potsdam-railroads.tar.gz
yes, GetImageData was to blame. it assumed that the image was palette
based and that there was only one raster band (i only had
iceland_sample_raster.tif to work with). your image is not palette based
and has 3 raster bands (one for each of RGB).
i've reorganized GetImageData so that it should work with a much wider
range of image: those with no palette and 3 bands (assumed to be RGB,
although gdal works with others, i need conversion formulas. i can get
these later), those with one band and no palette (some greyscale
images), and those with one band and a palette.
there are a few assumptions that are still made. if the image has more
than three bands, like an alpha channel, it will be ignored and you
won't get anything. i hope to be able to do something about this, but i
just wanted to get this working with your data first.
on my machine i can now load your sample data with no problem (had to
change the image path in your .thuban file).
i've attached a complete cvs diff, although the only file that has
changed since my last diff is gdalwarp.cpp.
if you find anything else that doesn't work, please send it to me.
>
> On the plus side, it generates wrong results MUCH faster. :-)
>
great!
--jonathan
--
=====================================================================
Jonathan Coles http://www.jpcoles.com
jonathan at jpcoles.com GnuPG Key: /gpg_pub_key.asc
=====================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cvs.diff
Type: text/x-patch
Size: 22667 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050118/9f73d608/cvs.diff
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)