Re: [gdal-dev] GetGeoTransform() valid?

2013-04-23 Thread Frank Warmerdam
Wim, I have remove the comment you quoted. It is from the distant past. What you should understand is that this isn't the *only* way to express georeferencing for GDAL images. You can also use Ground Control Points, RPCs and geolocation arrays. However GeoTransforms are the most common way and

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-04-23 Thread Peter Bunting
Thanks Frank, Sam and I will prepare a RFC and pass it around. Should we post it to the mailing list or add directly to the trac? Best wishes, Pete On 24 Apr 2013, at 10:17, Frank Warmerdam wrote: > Peter, > > Actually, I should have added that I think a following stage should be for > yo

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-04-23 Thread Frank Warmerdam
Peter, Actually, I should have added that I think a following stage should be for you to prepare a formal detailed RFC proposal for voting on by the PSC rather than just throwing a patch at us since this is an API change. Best regards, Frank On Tue, Apr 23, 2013 at 3:16 PM, Frank Warmerdam wrot

Re: [gdal-dev] GDAL Raster Attribute Tables.

2013-04-23 Thread Frank Warmerdam
On Tue, Apr 23, 2013 at 1:57 PM, Peter Bunting wrote: > Hi All, > > We were wondering if there is any interest in the GDAL community for > improving the Raster Attribute Implementation? Within our group of > collaborators we have been representing image segmentations as clump files > often large

[gdal-dev] GDAL Raster Attribute Tables.

2013-04-23 Thread Peter Bunting
Hi All, We were wondering if there is any interest in the GDAL community for improving the Raster Attribute Implementation? Within our group of collaborators we have been representing image segmentations as clump files often large attribute tables containing millions of rows and numerous column

[gdal-dev] translating palettes in geotiff - followup

2013-04-23 Thread David Strip
In my previous email, I laid out a process that seems to work for me. Now I realize that while this works for a single input file, how do I generalize it to work on a set of tiles? At first I naively thought I could just replace the SourceFileName and re-run the gdal_translate -of gtiff step, bu

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread David Strip
From Even's advice, I was able to piece together this workflow. Given an input geotiff image.gtif gdaltranslate -of image.gtif image.vrt Then open image.vrt in a text editor and look for the color table by searching for the tag (actually you probably don't need to search, it's near the top) R

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread Jukka Rahkonen
David Strip stripfamily.net> writes: > > On 4/23/2013 2:12 PM, Jukka Rahkonen wrote: > > rgb2pct.py utilityhttp://www.gdal.org/rgb2pct.html is doing kind of similar > > thing with the -pct option. > > > > -Jukka Rahkonen- > > I looked at the reference, but don't see how this would work. Seems

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread David Strip
On 4/23/2013 2:12 PM, Jukka Rahkonen wrote: rgb2pct.py utilityhttp://www.gdal.org/rgb2pct.html is doing kind of similar thing with the -pct option. -Jukka Rahkonen- I looked at the reference, but don't see how this would work. Seems like I would have to first translate the geotiff to an RGB,

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread David Strip
On 4/23/2013 2:11 PM, Even Rouault wrote: Le mardi 23 avril 2013 21:52:39, David Strip a écrit : I have a paletted geotiff that I want to modify by mapping palette entries to a new palette. Thus, I have an input palette, an output palette, and a geotiff. I have a mapping (many to 1, if it matte

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread Even Rouault
Le mardi 23 avril 2013 22:36:10, David Strip a écrit : > On 4/23/2013 2:11 PM, Even Rouault wrote: > > Le mardi 23 avril 2013 21:52:39, David Strip a écrit : > >> I have a paletted geotiff that I want to modify by mapping palette > >> entries to a new palette. > >> Thus, I have an input palette, an

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread Jukka Rahkonen
David Strip stripfamily.net> writes: > > I have a paletted geotiff that I want to modify by mapping palette > entries to a new palette. > Thus, I have an input palette, an output palette, and a geotiff. I have > a mapping (many to 1, if it matters) from the input palette to the > output pale

Re: [gdal-dev] translating palettes in geotiff

2013-04-23 Thread Even Rouault
Le mardi 23 avril 2013 21:52:39, David Strip a écrit : > I have a paletted geotiff that I want to modify by mapping palette > entries to a new palette. > Thus, I have an input palette, an output palette, and a geotiff. I have > a mapping (many to 1, if it matters) from the input palette to the > o

Re: [gdal-dev] Cropping to another image?

2013-04-23 Thread Daniel Clewley
Hi, I did something similar to what Doug suggested using the GDAL python bindings to get the size, projection and pixel size of an image, then cropping and re projecting to match using gdalwarp. You can view the code at: https://bitbucket.org/petebunting/rsgis_scripts/src/c999df5483d3ed988fea

Re: [gdal-dev] [REMINDER] Motion: Promote 1.10.0RC4 for release

2013-04-23 Thread Frank Warmerdam
+1 Frank I had hoped to get to more serious testing but did not. Best regards, Frank On Tue, Apr 23, 2013 at 10:56 AM, Even Rouault wrote: > Le vendredi 19 avril 2013 23:41:17, Even Rouault a écrit : > > Motion: GDAL/OGR 1.10.0RC4 is promoted to be the official 1.10.0 final > > release. > > >

[gdal-dev] translating palettes in geotiff

2013-04-23 Thread David Strip
I have a paletted geotiff that I want to modify by mapping palette entries to a new palette. Thus, I have an input palette, an output palette, and a geotiff. I have a mapping (many to 1, if it matters) from the input palette to the output palette. Each pixel in the output geotiff will have a va

Re: [gdal-dev] Motion: Promote 1.10.0RC4 for release

2013-04-23 Thread Tamas Szekeres
+1 Tamas 2013/4/19 Even Rouault > Motion: GDAL/OGR 1.10.0RC4 is promoted to be the official 1.10.0 final > release. > > --- > > I'll start the voting again with my : > > +1 Even > > --- > > #5058 is now fixed and is the only change w.r.t. RC3, so I'm both > announcing > the availability of RC

Re: [gdal-dev] Cropping to another image?

2013-04-23 Thread Newcomb, Doug
--j, I you wanted to use the gdal utility programs , you can use gdalinfo to get the extent of the first image and use gdal_translate -projwin with the coordinates you captured from the first command. There are a couple of ways to pythonify those two commands or other python methods into a single

Re: [gdal-dev] [REMINDER] Motion: Promote 1.10.0RC4 for release

2013-04-23 Thread Daniel Morissette
+1 Daniel On 13-04-23 1:56 PM, Even Rouault wrote: Le vendredi 19 avril 2013 23:41:17, Even Rouault a écrit : Motion: GDAL/OGR 1.10.0RC4 is promoted to be the official 1.10.0 final release. --- Hi, only my vote and Howard's up to now... Would be good if we could get a few additional votes.

[gdal-dev] [REMINDER] Motion: Promote 1.10.0RC4 for release

2013-04-23 Thread Even Rouault
Le vendredi 19 avril 2013 23:41:17, Even Rouault a écrit : > Motion: GDAL/OGR 1.10.0RC4 is promoted to be the official 1.10.0 final > release. > > --- Hi, only my vote and Howard's up to now... Would be good if we could get a few additional votes. Thanks, Even

[gdal-dev] Cropping to another image?

2013-04-23 Thread Jonathan Greenberg
GDALers: Is there a way to easily crop one image to the the extent of another image? --j -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urba

[gdal-dev] GetGeoTransform() valid?

2013-04-23 Thread Wim de Vries
Hi, I want to go from x,y (pixels) to lon,lat and vice versa, using geotiffs. I have found the GetGeoTransform() function, but the documentations says: "NOTE: GetGeoTransform()