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
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
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
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:
>
>&
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
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
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
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-