Re: [gdal-dev] some problem in python bindings

2010-05-20 Thread Ari Jolma
Howard Butler wrote: On May 20, 2010, at 7:48 AM, Vincent Schut wrote: svn and I don't remember this happening earlier), there is a problem with the python swig bindings when doing this: data = gdal_array.BandReadAsArray(gdal.Open(filename).GetRasterBand(1)) This is a consequence of th

Re: [gdal-dev] NetCDF driver in gdal_translate ignores xllcorner and yllcorner?

2010-05-20 Thread Michael Sumner
What is the result of running gdalinfo on the NetCDF file (or on the desired subdataset)? The y values are not regular, as you can see in this subset of the sequence: 9165629, 9166645, 9167660, 9168676 That might be part of the issue. Cheers, Mike. On Fri, May 21, 2010 at 2:28 PM, Kyle Shannon

[gdal-dev] NITF 2.1 GDAL 1.7.2 and FWTools 2.4.7 Translation Errors

2010-05-20 Thread Doug White
Hi, I have been trying to translate a DigitalGlobe GeoEye-1 NITF image to GeoTiff or JP2 with GDAL 1.7.2 compiled with JP2ECW on x86 Linux and also with FWTools 2.4.7 (raises a unknown software exception). gdalinfo will read the file successfully. I can display the file with PCI Geomatics on

Re: [gdal-dev] NetCDF driver in gdal_translate ignores xllcorner and yllcorner?

2010-05-20 Thread Kyle Shannon
I have also had an issue with the geotransform being of by a factor of 1000, but it was a units issue. GDAL kind of assumes CF=1.x convention, as netcdf is very broad in its specification. Could you attach a small sample dataset to a ticket so I can take a look? Thanks. kss # ==

Re: [gdal-dev] NetCDF driver in gdal_translate ignores xllcorner and yllcorner?

2010-05-20 Thread Chris Barker
Ole, The netcdf data model is pretty different than the GDAL data model, I"m not surprised that GDAL can't figure out the grid. Can you just go hand-edit the AAIGRID? If you need to script this, I'd tend to look for another solution -- it would be pretty easy to parse the ncdump output and

[gdal-dev] NetCDF driver in gdal_translate ignores xllcorner and yllcorner?

2010-05-20 Thread Ole Nielsen
Dear GDAL developers I have been using GDAL for a while with great success and really appreciate the toolkit. As of recently, I now have the need to read NetCDF files and convert them into AAIGRIDs. However, the cellsize is wrong and I don't think xllcorner and yllcorner are correct either. I ha

Re: [gdal-dev] Create gdaldataset from in-memory Image/Bitmap/byte[]/MemoryStream

2010-05-20 Thread Tamas Szekeres
Felix, You can find examples in the gdal source tree about creating a dataset and write data by using the WriteRaster method: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALWrite.cs http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALDatasetWrite.cs For more in

Re: [gdal-dev] Create gdaldataset from in-memory Image/Bitmap/byte[]/MemoryStream

2010-05-20 Thread Matt Klaric
http://www.gdal.org/frmt_mem.html On Thu, May 20, 2010 at 2:48 PM, Felix Obermaier wrote: > Hello list, > > I'm using GDAL via swig C# bindings. Is there a way to create a gdal > dataset object from an in-memory Image/Bitmap/byte[]/MemoryStream, and if > so, how can I achive this. > > Thanks in

[gdal-dev] Create gdaldataset from in-memory Image/Bitmap/byte[]/MemoryStream

2010-05-20 Thread Felix Obermaier
Hello list, I'm using GDAL via swig C# bindings. Is there a way to create a gdal dataset object from an in-memory Image/Bitmap/byte[]/MemoryStream, and if so, how can I achive this. Thanks in advance Felix Obermaier -- Ingenieurgruppe IVV GmbH & Co. K

[gdal-dev] Cannot project MERIS N1 data with gdalwarp

2010-05-20 Thread Derick Swanepoel
Hi, I'm having trouble projecting MERIS level 1b data: $ gdalwarp MER_RR__1PPBCM20100101_080424_00622085_00350_40985_0012.N1 meris.tif ERROR 1: Unable to compute a transformation between pixel/line and georeferenced coordinates for MER_RR__1PPBCM20100101_080424_00622085_00350_40985_0012.N

Re: [gdal-dev] gdal_retile and nodata

2010-05-20 Thread christian . mueller
gdal_retile use gdal core functions to rescale and I see no possibility to pass a nodata value to these functions. Have your tiff files a no data value in the meta info. Quoting acangi : When creating the level x, gdal_retile interpolates the tiles of level x-1. If not all data exist in le

[gdal-dev] gdal_retile and nodata

2010-05-20 Thread acangi
When creating the level x, gdal_retile interpolates the tiles of level x-1. If not all data exist in level x-1, it interpolates with nodata values (I guess ?). The result is that at the border, we can see almost black values, but not exactly black. They become visible when setting the output trans

Re: [gdal-dev] some problem in python bindings

2010-05-20 Thread Howard Butler
On May 20, 2010, at 7:48 AM, Vincent Schut wrote: > Hi, > > since some time (I don't know exactly since when, but I regularly update gdal > from svn and I don't remember this happening earlier), there is a problem > with the python swig bindings when doing this: > > data = gdal_array.BandRead

[gdal-dev] Re: Modify virtual file attributes

2010-05-20 Thread Luca Fasano
Frank Warmerdam wrote: > > > Luca, > > I reviewed the VRTRasterBand class and found that it was not marking the > VRT as needing a write to disk for some items that change including > the unit type, offset, scale and category names. I have fixed this in > trunk: > >http://trac.osgeo.org/

[gdal-dev] some problem in python bindings

2010-05-20 Thread Vincent Schut
Hi, since some time (I don't know exactly since when, but I regularly update gdal from svn and I don't remember this happening earlier), there is a problem with the python swig bindings when doing this: data = gdal_array.BandReadAsArray(gdal.Open(filename).GetRasterBand(1)) instead of this:

Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Ivan Lucena
Hi there, > ---Original Message--- > From: mail2vajram > To: gdal-dev@lists.osgeo.org > Subject: [gdal-dev] How to read first line pixel values of an image into > buffer > Sent: May 20 '10 02:30 > > > I am using the following code to read pixel values. It read only one pixel >

[gdal-dev] where gdal-java package

2010-05-20 Thread ahmet temiz
hello where can I find gdal-lava package for ubuntu ? or what might be the alternatives regards ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Frank Warmerdam
mail2vajram wrote: I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1); double[] buffer = new double[d

Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Iván Sánchez Ortega
El 20/05/2010 9:30, mail2vajram escribió: I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. Use a loop? generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1);

[gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread mail2vajram
I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1); double[] buffer = new double[ds.RasterXSize]; band