RE: [gdal-dev] gdal_tranlate 50% downsample doubling my file size

2011-07-28 Thread JK Chen
Even, Thanks for your reply. That all makes senses to me know. Indeed it's VQ. :-) JK -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, July 28, 2011 4:05 PM To: gdal-dev@lists.osgeo.org Cc: JK Chen Subject: Re: [gdal-dev] gdal_tranlate 50% down

Re: [gdal-dev] gdal_tranlate 50% downsample doubling my file size

2011-07-28 Thread Even Rouault
Le jeudi 28 juillet 2011 23:33:57, JK Chen a écrit : > Hi, > > I used gdal-translate command to downsample a nitf file, but the size of > generated file almost doubles. Is there something that I did wrong? I > can't use this new file because bigger size is not acceptable, even though > its displ

[gdal-dev] gdal_tranlate 50% downsample doubling my file size

2011-07-28 Thread JK Chen
Hi, I used gdal-translate command to downsample a nitf file, but the size of generated file almost doubles. Is there something that I did wrong? I can't use this new file because bigger size is not acceptable, even though its display looks correct. Here is the command I used: C:\Map\RPF\CIB

Re: [gdal-dev] create classified PNG from ASCIIGrid

2011-07-28 Thread Stephen Crawford
OK, looks like [3] for me. Thanks. On 7/28/2011 3:01 PM, Chaitanya kumar CH wrote: The closest thing you can do without doing any coding is to use the gdal_contour utility[1] to create a vector file and then use gdal_rasterize [2] to burn them back to a raster. If you use appropriate options,

Re: [gdal-dev] create classified PNG from ASCIIGrid

2011-07-28 Thread Chaitanya kumar CH
The closest thing you can do without doing any coding is to use the gdal_contour utility[1] to create a vector file and then use gdal_rasterize [2] to burn them back to a raster. If you use appropriate options, all your pixels will be clamped to the discrete levels used in gdal_contour. It's straig

RE: [gdal-dev] Quick question regarding image translation in Java (I think)

2011-07-28 Thread Mike O'Malley
That was it exactly. Next time I'll read the fine print a bit more closely. Thanks Even! Mike -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, July 28, 2011 2:44 PM To: gdal-dev@lists.osgeo.org Cc: Mike O'Malley Subject: Re: [gdal-dev] Quick

Re: [gdal-dev] Quick question regarding image translation in Java (I think)

2011-07-28 Thread Even Rouault
> > >Am I missing something obvious? Not sure if you'll consider it as "obvious", but it is documented there : http://gdal.org/java/org/gdal/gdal/Driver.html#CreateCopy(java.lang.String, %20org.gdal.gdal.Dataset,%20int,%20java.util.Vector, %20org.gdal.gdal.ProgressCallback) """At the end o

Re: [gdal-dev] create classified PNG from ASCIIGrid

2011-07-28 Thread Stephen Crawford
Thanks for the reply. I had looked at these before, and then looked again after your note, but I just don't understand how I map the climate variable values to different colors in the palette, along the lines of: tmax < 30| color1 30 < tmax < 50 | color2 tmax > 50| c

[gdal-dev] Quick question regarding image translation in Java (I think)

2011-07-28 Thread Mike O'Malley
Hi, Hopefully this is a quick one, I think the answer's so obvious I'm missing it. I'm trying to use GDAL to create a TIFF copy of a NITF file. I've downloaded and compiled 1.8.1 (under Windows) and used gdal_translate from the command line to create the copy. I can view the new file from I

Re: [gdal-dev] gdal_translate -scale with PNG

2011-07-28 Thread Stephen Mather
I thought I'd tried that and it failed, but it looks to be just a problem of stale statistics. Thanks Marius. Steve On Wed, Jul 27, 2011 at 10:16 PM, Marius Jigmond wrote: > On 07/27/2011 04:16 PM, Stephen Mather wrote: > > Hi All, > I'm using gdal_translate (version 1.6.3 on Ubuntu) wit