Re: [gdal-dev] GeoTiff Class Cell Counts

2009-10-15 Thread Frank Warmerdam
Seth Girvin wrote: Hi, I have just started using the GDAL functions through the .NET wrapper written by Tamas Szekeres. I can get statistics on my GeoTIFF which is great, but I need to get the count of pixels in each class in the raster. Ideally I want to get the count by a range e.g. 123787

Re: [gdal-dev] GetFileList doesn't return the list of files associated

2009-10-15 Thread Juan Rapoport
Even, Thanks for the solution! Regards, Juan ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] GetFileList doesn't return the list of files associated

2009-10-15 Thread Even Rouault
Selon Juan Rapoport : Juan, GetFileList() is a relatively new feature in GDAL long history, so not all drivers implement it : the default implementation just returns the name of the main file passed to GDALOpen. I've just changed the FAST driver to return the filenames of the bands. Done in trunk

Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-15 Thread Even Rouault
Selon Chaitanya kumar CH : Atubar As Chaintanya says and the doc recommands it, you must use the macro and not string values directly. For one good reason : #define ODrCCreateDataSource expands to "CreateDataSource"... So "ODrCCreateDataSource" is an invalid input for OGRSFDriver::TestCapability(

[gdal-dev] with-kakadu error

2009-10-15 Thread Gong, Shawn (Contractor)
hi list, I received Kakadu v6_2_1-00984N.zip and tried to build it on 64-bit Linux. Kakadu make went smoothly. libkdu.a, libkdu_a62R.so, etc were generated in kakadu-v6_2_1-00984N/lib/Linux-x86-64-gcc/ Then I added "--with-kakadu=/home/sgong/build_openev2/kakadu-6_2_1-00984N" in Gdal config. I g

Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-15 Thread Chaitanya kumar CH
atubar, Here is a sample. http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/ogr2ogr.cpp#L401 The preferred #define macro forms are used here. ( http://www.gdal.org/ogr/classOGRSFDriver.html#6c37cb7552902cd27cd6d4b904d7c744 ) As per your problem, perhaps the drivers you tested did indeed not supp

Re: [gdal-dev] Change Resampling method

2009-10-15 Thread vvv jjj
Dear Frank Thanks for the swift response. Viswanath. --- On Thu, 15/10/09, Frank Warmerdam wrote: > From: Frank Warmerdam > Subject: Re: [gdal-dev] Change Resampling method > To: "vvv jjj" > Cc: gdal-dev@lists.osgeo.org > Date: Thursday, 15 October, 2009, 8:01 PM > vvv jjj wrote: > > Hi > >

Re: [gdal-dev] Change Resampling method

2009-10-15 Thread Greg Coats
Your reference to lanscoz is likely referring to Lanczos resampling http://en.wikipedia.org/wiki/Lanczos_resampling The gdalwarp man page shows that it supports 5 resampling methods: near, bilinear, cubic, cubicspline, lanczos. http://www.gdal.org/gdalwarp.html Greg On Oct 15, 2009, at 4:00 AM

[gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-15 Thread atubar
Hi, I want to take a test about the capability of creation and deletion for all supported formats of ogr . The code like below, The parameter "const char" are copied from api doc. But all flag return a value of 0, why ? int flag; flag=poDriver->TestCapability("ODrCCreateDataSource");

Re: [gdal-dev] Change Resampling method

2009-10-15 Thread Frank Warmerdam
vvv jjj wrote: Hi I'm trying to read raster file (simple Tiff) raster data using RasterIO and display the raster data without creating another dataset. By default GDAL uses nearest neighbor resampling algorithm. I would like to use other resampling methods (lanscoz). I do not need to write in a

[gdal-dev] GetFileList doesn't return the list of files associated

2009-10-15 Thread Juan Rapoport
Hello, I'm trying to use the GetFileList() function with a FAST-L7A image; it's supposed to return a list with the files associated with the dataset, but it only returns the administrative file (the _HRF.FST file). How can I get the complete list o files? Thanks -- Juan Rapoport SUR Emprendimie

Re: [gdal-dev] Change Resampling method

2009-10-15 Thread Chaitanya kumar CH
Viswanath, RastorIO doesn't do any resampling. RasterIO doesn't have an argument like hDstDS. I think the resampling is occuring during reprojection or some other process. On Thu, Oct 15, 2009 at 1:30 PM, vvv jjj wrote: > Hi > > I'm trying to read raster file (simple Tiff) raster data using Ras

[gdal-dev] Change Resampling method

2009-10-15 Thread vvv jjj
Hi I'm trying to read raster file (simple Tiff) raster data using RasterIO and display the raster data without creating another dataset. By default GDAL uses nearest neighbor resampling algorithm. I would like to use other resampling methods (lanscoz). I do not need to write in a new file (no h