Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-12 Thread Rutger
Hey, Etienne Tourigny-3 wrote did you install the gdal-python package? Your gdal python is probably referencing an older gdal build which does not include netcdf support. There most probably is something wrong with your installation, because I can read both files fine in osgeo4w with

Re: [gdal-dev] [NEW] Multi-threaded warping

2012-06-12 Thread Fabian Schindler
Etienne, The main advantage of OpenMP is that you can compile the code with (-fopenmp on gcc) or without OpenMP support but the output *should* stay the same. So you can produce code that is highly optimized for multithreaded environments (with little overhead) and still have backwards

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Rutger
Hello David, A while back i did some tests with GDAL geolocation arrays using MODIS swath data. I found that specifying the s_srs tag when running gdalwarp gets rid of the 'too many points' error, even if you already have a SRS in your VRT. If you use gdalwarp, your target grid can be completely

[gdal-dev] to find area of shapeFile

2012-06-12 Thread SIVA RAMA KRISHNA
___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Imran Rajjad
Dear List, Have been trying to write raster from one file format e.g. BMP into a tiff file which will eventually become a BIGTiff. The current output is a grey image whereas the output should be RGB. The GeoTiFF is not accepting bands for some reasons, To write a multiband geoTiff do we require

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-12 Thread Etienne Tourigny
* Perhaps * there is a conflict/mismatch between osgeo4w and Tamas's install? As far as I know both packages include netcdf... I have no idea, sorry... Etienne On Tue, Jun 12, 2012 at 4:16 AM, Rutger kass...@gmail.com wrote: Hey, Etienne Tourigny-3 wrote did you install the gdal-python

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Etienne Tourigny
To use geolocation arrays with gdalwarp you probably need to add the -geoloc argument Etienne On Tue, Jun 12, 2012 at 6:08 AM, Rutger kass...@gmail.com wrote: Hello David, A while back i did some tests with GDAL geolocation arrays using MODIS swath data. I found that specifying the s_srs tag

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Etienne Tourigny
Not sure about the java bindings - but why don't you use the CreateCopy() function, which will take care of everything for you? I'd bet the error is because you didn't include the band_list parameter. Etienne On Tue, Jun 12, 2012 at 8:31 AM, Imran Rajjad raj...@gmail.com wrote: Dear List,

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Imran Rajjad
Hi, well this kind of operation is well supported under JAI, however it has the limitations of writing a tiff file under 4GB thats why trying out GDAL. Anyway checking out http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/GDALTestIO.java regards, Imran On Tue, Jun 12, 2012 at 5:01

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-12 Thread kedardeshpande87
Frank, Thank you very much for the reply. I am still really curious about what could be the reason that it returns multiple features for a single point. The code for filtering which I have written is like this : ... OGRDataSource *ds = OGRSFDriverRegistrar::Open(shapefile_path, FALSE); OGRLayer

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Even Rouault
Le mardi 12 juin 2012 13:31:44, Imran Rajjad a écrit : Dear List, Have been trying to write raster from one file format e.g. BMP into a tiff file which will eventually become a BIGTiff. The current output is a grey image whereas the output should be RGB. The GeoTiFF is not accepting bands

Re: [gdal-dev] [WFS Driver] Http Error Code 414

2012-06-12 Thread Even Rouault
Le mardi 12 juin 2012 14:38:05, xavier lhomme a écrit : Hello I'm requesting a WFS source with a very long request. The URI generated by the WFS driver is very long (more than 2048). In return I' ve got an HTTP error code 414. OGRWFSDataSource::HTTPFetch function should be protected

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread David Hoese
Rutger, Thanks for the reply. I tried the s_srs tag and it still didn't help. I also tried using the -geoloc flag which I had tried earlier too and still get the 441 out of 441 failed to transform error. I have tried PyTroll, but there KDTree algorithm seems to be too slow for the amount

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Joaquim Luis
David, Would this help? https://sites.google.com/site/mironehowtos/satellite/import-a-modis-l2-sst-hdf-grid I do the projection using the geolocation arrays and an internal interpolation using a minimum curvature algorithm. Works pretty nicely with MODIS L2 SSTs and chlorophyll Joaquim

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-12 Thread David J. Bakeman
Kedar Deshpande wrote: Thanks David, it is now clear to me why do we get multiple features. So, for example, if we have a small zipcode which is kind of embedded in a large zipcode of 'L' shape, for any point inside the inner zipcode, it will return both zipcodes since the envelope of the L

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-12 Thread Frank Warmerdam
On Tue, Jun 12, 2012 at 10:44 AM, kedardeshpande87 kedardeshpand...@gmail.com wrote: I checked the envelope the OGRPoint geometry I have created. This envelope is also a single point (minX, maxX are same and minY, maxY are same). So, how is it possible that multiple features overlap on the same

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-12 Thread kedardeshpande87
Thanks dbnakuru, quote author=dbnakuru lt;!DOCTYPE HTML PUBLIC quot;-//W3C//DTD HTML 4.01 Transitional//ENquot;gt; Otherwise what you can do is test to see if your point is in any of the polygons returned by OGR.nbsp; So let OGR do the initial checks then grab the vertices yourself and run a

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-12 Thread Imran Rajjad
Hi Even, I have 1.8, and I was getting a grey image earlier but I guess by adding the Integer.SIZE in the byte array size made it work, but honestly I am not sure how its working now, further I was wondering if GDAL can leverage from JAI`s DiskMemImage class, because if I have to write a bigtiff