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 a

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

2012-06-12 Thread kedardeshpande87
Thanks dbnakuru, quote author="dbnakuru"> Otherwise what you can do is test to see if your point is in any of the polygons returned by OGR.  So let OGR do the initial checks then grab the vertices yourself and run a point in polygon t

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

2012-06-12 Thread Frank Warmerdam
On Tue, Jun 12, 2012 at 10:44 AM, kedardeshpande87 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 point ? Kedard, Becau

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] 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 Ru

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 o

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] 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 ba

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); OGRLaye

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

2012-06-12 Thread xavier lhomme
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 against very long URI and switch between a GET request to a POST req

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

2012-06-12 Thread Rutger
Etienne Tourigny-3 wrote > > To use geolocation arrays with gdalwarp you probably need to add the > -geoloc argument > Its probably good to do so. I think however that if you use the VRT method as shown at the link in the opening post, the "" part already takes care of this. Adding or removing

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 PM,

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 wrote: > Dear List, > > Have been tryi

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 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 when runnin

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 wrote: > Hey, > > > Etienne Tourigny-3 wrote >> >> did you install the gdal-python package? Yo

[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 to

[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

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

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 compat

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 wit