Re: [gdal-dev] Downsample with averaging?

2011-02-21 Thread Brian Claywell
On Mon, Feb 21, 2011 at 2:26 PM, Jay Jennings wrote: > [...] I’m looking for a > downsampling scheme that creates a result pixel by averaging all relevant > source pixels (I know, for 32:1 downsample, that means 1024 source pixels > for each result pixel !) with the hope of an output that is not “

Re: [gdal-dev] Zero Pixel Values. Continuation...

2011-02-21 Thread Chaitanya kumar CH
Ramesh, Instead of 'pasting' a part of your code, could you attach your entire .cpp file along with the main() function and stuff? On Tue, Feb 22, 2011 at 9:49 AM, user gdal wrote: > Dear Sir, > Thanks a lot for reply about zero pixel values when I attempted to > write into an output image file

[gdal-dev] Zero Pixel Values. Continuation...

2011-02-21 Thread user gdal
Dear Sir, Thanks a lot for reply about zero pixel values when I attempted to write into an output image file. Though I pasted the code I wrote for programmatically 'copying' the image, once again I am pasting the same below. Q. "One thing I notice about your code is that you only appear to read an

RE: [gdal-dev] Downsample with averaging?

2011-02-21 Thread Jay Jennings
Unfortunately I can’t provide the file (it’s about 2.1 GB and not releasable), but below is the ‘gdalinfo’ dump for it. The problem may be related to size of the input, because the same command worked OK on a GeoTiff that is “only” 975 MB. BTW For the 975 GB run that succeeded, the created ov

Re: [gdal-dev] Downsample with averaging?

2011-02-21 Thread Chaitanya kumar CH
Jay, Can you provide a sample file that gives this error? On Tue, Feb 22, 2011 at 1:56 AM, Jay Jennings wrote: > Hello list, > > (using GDAL 1.8.0) I am trying to create a 32:1 down-sampled overview of a > GeoTiff satellite image. My first thought was gdal_translate, with args > such as “-outsi

[gdal-dev] Downsample with averaging?

2011-02-21 Thread Jay Jennings
Hello list, (using GDAL 1.8.0) I am trying to create a 32:1 down-sampled overview of a GeoTiff satellite image. My first thought was gdal_translate, with args such as "-outsize 3.125% 3.125%"... which produces surprisingly high quality given the absence of a resampling option. However I'm loo

Re: [gdal-dev] Transform point from UTM to Lat/Long

2011-02-21 Thread Jorge Arévalo
On Mon, Feb 21, 2011 at 7:01 PM, Frank Warmerdam wrote: > On 11-02-21 12:43 PM, Jorge Martin wrote: >> >> Hello, >> >> >>         I have a big doubt about transforming one point from UTM to >> Lat/long. >> I have to make the resampling of a Lat/long image. The target image is UTM >> with >> 2.5 re

Re: [gdal-dev] Transform point from UTM to Lat/Long

2011-02-21 Thread Frank Warmerdam
On 11-02-21 12:43 PM, Jorge Martin wrote: Hello, I have a big doubt about transforming one point from UTM to Lat/long. I have to make the resampling of a Lat/long image. The target image is UTM with 2.5 resolution. To create the target image I use GDAL, so I have to set the UTM zone, s

[gdal-dev] Transform point from UTM to Lat/Long

2011-02-21 Thread Jorge Martin
Hello, I have a big doubt about transforming one point from UTM to Lat/long. I have to make the resampling of a Lat/long image. The target image is UTM with 2.5 resolution. To create the target image I use GDAL, so I have to set the UTM zone, so I set this zone to the zone corresponding t

Re: [gdal-dev] Coulour balancing and feathering, in a VRT

2011-02-21 Thread Marius Jigmond
With gdal_translate you can do per band re-scaling. I've used it on Landsat, it's not magic but it works pretty well. You can group your images, find the right formula for each group and you can quickly verify the results with a VRT. -marius On Mon, 2011-02-21 at 10:39 +0200, Zoltan Szecsei wrote

Re: [gdal-dev] Mosaicking Orthos

2011-02-21 Thread Marius Jigmond
On Mon, 2011-02-21 at 13:31 +0530, Chaitanya kumar CH wrote: > Zoltan, > > The creation of 0394w.tif failed. Does the process have write > permission on directory? > I note that you did not specify the -of option for nearblack. In it's > absence, nearblack creates the output file in Erdas Imagin

Re: [gdal-dev] Coulour balancing and feathering, in a VRT

2011-02-21 Thread Norman Vine
On Feb 21, 2011, at 3:39 AM, Zoltan Szecsei wrote: > Hi, > I've been googling around a bit, but no luck yet. > > Now that I have my fancy vrt with a 170 orthos in it, is there a (opensource) > product I can colour balance and feather with, before I cut out the required > orthophoto regions? Z

Re: [gdal-dev] Coulour balancing and feathering, in a VRT

2011-02-21 Thread Zoltan Szecsei
On 2011-02-21 10:44, Peter J Halls wrote: Now that I have my fancy vrt with a 170 orthos in it, is there a (opensource) product I can colour balance and feather with, before I cut out the required orthophoto regions? The Gimp? Blender can also provide this sort of functionality. Batch run

Re: [gdal-dev] Coulour balancing and feathering, in a VRT

2011-02-21 Thread Peter J Halls
Zoltan, Zoltan Szecsei wrote: Hi, I've been googling around a bit, but no luck yet. Now that I have my fancy vrt with a 170 orthos in it, is there a (opensource) product I can colour balance and feather with, before I cut out the required orthophoto regions? The Gimp? Blender can also prov

[gdal-dev] Coulour balancing and feathering, in a VRT

2011-02-21 Thread Zoltan Szecsei
Hi, I've been googling around a bit, but no luck yet. Now that I have my fancy vrt with a 170 orthos in it, is there a (opensource) product I can colour balance and feather with, before I cut out the required orthophoto regions? Thanks in advance, Zoltan -- ==

Re: [gdal-dev] Gdal2tiles in Gdal18 and creating KMZ files

2011-02-21 Thread Vincent Schut
Hi Roland, (lets cc the gdal list, so others can join in reading and/or answering) If I recall correctly, you just have to make sure your input dataset is rgba. I think I usually had a 4-channel 8-bit geotiff, tiled, and with overviews (use gdaladdo to add them). I'm using a self-compiled very

Re: [gdal-dev] Mosaicking Orthos - Solved

2011-02-21 Thread Zoltan Szecsei
On 2011-02-21 08:53, Zoltan Szecsei wrote: Hi Marius, Thanks for the response. See below: On 2011-02-20 21:16, Marius Jigmond wrote: Are you sure that the white you see is a pure 255/255/255? Albeit, the nearblack with its near default of 15 would have likely taken care of that.

Re: [gdal-dev] Re: [mapserver-users] OGR VRT ODBC connection problem

2011-02-21 Thread Peter J Halls
Brent, firstly, whilst SQLPLUS is a useful tool to ensure the Oracle environment is correctly configured, it does not test ODBC - nor does the very much nicer, Java based, SQL Developer, which is also not restricted to use with Oracle. Secondly, how many tables are there in your Oracle

Re: [gdal-dev] Mosaicking Orthos

2011-02-21 Thread Chaitanya kumar CH
Zoltan, The creation of 0394w.tif failed. Does the process have write permission on directory? I note that you did not specify the -of option for nearblack. In it's absence, nearblack creates the output file in Erdas Imagine format. On Sun, Feb 20, 2011 at 10:50 PM, Zoltan Szecsei wrote: > Hi