Re: [gdal-dev] Can GDAL read a GTiff from a memory buffer?

2014-05-01 Thread Robert Nix
Sorry, Even. :) On Thu, May 1, 2014 at 3:53 PM, Robert Nix wrote: > Great, Evan! And I found your blog post about > it<http://erouault.blogspot.com/2012/05/new-gdal-virtual-file-system-to-read.html> > with > some good, helpful links too. Thank you! > > > On Thu, M

Re: [gdal-dev] Can GDAL read a GTiff from a memory buffer?

2014-05-01 Thread Robert Nix
Great, Evan! And I found your blog post about it<http://erouault.blogspot.com/2012/05/new-gdal-virtual-file-system-to-read.html> with some good, helpful links too. Thank you! On Thu, May 1, 2014 at 2:54 PM, Even Rouault wrote: > Le jeudi 01 mai 2014 20:34:51, Robert Nix a écrit

[gdal-dev] Can GDAL read a GTiff from a memory buffer?

2014-05-01 Thread Robert Nix
Hi, I have a situation where i get a geotiff across the network. I don't want to have to save it to a file and reopen it to load it into numpy. Is this possible with GDAL? Doesn't have to be supported in Python. I can call into C/C++ if needed. Thanks -- .nix

Re: [gdal-dev] More information to understand ColorTables in GeoTiffs

2013-03-10 Thread Robert Nix
I_PaletteIndex) > > c = gdal.ColorTable(gdal.GCI_PaletteIndex) > n = c.SetColorEntry(1,[0,0,0]) > m = c.SetColorEntry(65535,[0,0,0]) > c.CreateColorRamp(1,n,65535,m) > band.SetColorTable(c) > > --nix > > On 2013/03/08, at 19:09, Frank Warmerdam wrote: > >&

Re: [gdal-dev] More information to understand ColorTables in GeoTiffs

2013-03-10 Thread Robert Nix
Int16) > > band = dst_ds.GetRasterBand(1) > band.SetRasterColorInterpretation(gdal.GCI_PaletteIndex) > > c = gdal.ColorTable(gdal.GCI_PaletteIndex) > n = c.SetColorEntry(1,[0,0,0]) > m = c.SetColorEntry(65535,[0,0,0]) > c.CreateColorRamp(1,n,65535,m) > band.SetColo

Re: [gdal-dev] More information to understand ColorTables in GeoTiffs

2013-03-08 Thread Robert Nix
nput,"hhh|h", &ce.c1, &ce.c2, &ce.c3, &ce.c4 ) ) { PyErr_SetString(PyExc_TypeError, "Invalid values in ColorEntry sequence "); --nix On Mar 8, 2013, at 16:35, Robert Nix wrote: > Hi, > > I'm trying to add a color table to a 1-band UInt16 Ge

[gdal-dev] More information to understand ColorTables in GeoTiffs

2013-03-08 Thread Robert Nix
Hi, I'm trying to add a color table to a 1-band UInt16 GeoTiff with Python as follows: import numpy as np import gdal driver = gdal.GetDriverByName('GTiff') dst_ds = driver.Create('testcolor.tif', 100, 100, 1, gdal.GDT_UInt16) band = dst_ds.GetRasterBand(1) band.SetRasterColorInterpretation(gd

[gdal-dev] Darwin patches for building on Mac OS X

2013-02-14 Thread Robert Nix
If anyone is interested, I created a few patches for GDAL's configure and java.opt files to allow for a successful build --with-java on Mac OS X https://gist.github.com/rnix/4958168 --nix smime.p7s Description: S/MIME cryptographic signature ___ gdal-