Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-15 Thread Phil Scadden
Thanks for that Andre. I have been looking over code in cpt2rbg.py and that gives my more insight into what is going on. I think I will try to build that cpt2rbga directly into gdal2tiles.py. Notice: This email and any attachments are confidential. If received in error please destroy and immedia

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-14 Thread Andre Joost
Am 14.06.2013 00:55, schrieb Phil Scadden: Okay, but how is the best way to fix it? Since pnqnq runs on individual tiles, I would not expect tiles to have the same palette. What is needed is to read the nq tiles into memory, convert to RGBA raster, then put that into overview tile. How tricky is

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-13 Thread Phil Scadden
Okay, but how is the best way to fix it? Since pnqnq runs on individual tiles, I would not expect tiles to have the same palette. What is needed is to read the nq tiles into memory, convert to RGBA raster, then put that into overview tile. How tricky is this to do? Any pointers into the API th

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-13 Thread Even Rouault
Le vendredi 14 juin 2013 00:26:52, Phil Scadden a écrit : > >Not sure to completely follow you ... > > Okay, what goes on in gdal2tiles.py, is that after creating the base > tiles, (and in my version, they are quantised) the base tiles are taken > in groups of 4, read into a new MEM driver raste

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-13 Thread Phil Scadden
>Not sure to completely follow you ... Okay, what goes on in gdal2tiles.py, is that after creating the base tiles, (and in my version, they are quantised) the base tiles are taken in groups of 4, read into a new MEM driver raster to make a one tile, then resampled down to size of base tile to

Re: [gdal-dev] Combining quantized png files in gdal2tiles

2013-06-13 Thread Even Rouault
Le jeudi 13 juin 2013 06:29:32, Phil Scadden a écrit : > I was hacking gdal2tiles a bit by running pnqnq of a base tile > immediately after creating it (I want to be able to run partial updates > on a TMS which has been pngnq optimised). No problem with that, but > updating the overview tiles produ

[gdal-dev] Combining quantized png files in gdal2tiles

2013-06-12 Thread Phil Scadden
I was hacking gdal2tiles a bit by running pnqnq of a base tile immediately after creating it (I want to be able to run partial updates on a TMS which has been pngnq optimised). No problem with that, but updating the overview tiles produces issues. It does writeraster(..,readraster()) on