Re: [gdal-dev] Write dataset to web output

2013-09-25 Thread Even Rouault
Le mercredi 25 septembre 2013 10:48:00, Guillaume Sueur a écrit : > Hi list, > > I've build a python gdal script which retrieves WMS images from a remote > layer. I'd like to send the image back to the browser, but I can't > figure out how to do that... > Once I've got a correct gdal dataset, how

Re: [gdal-dev] gdal_grid: how to choose ellipse radius

2013-09-25 Thread Even Rouault
Le mercredi 25 septembre 2013 12:31:05, laura0 a écrit : > Hi all, > I am investigating Nearest neighbor algorithm of gdal_grid. > The search ellipse is described by the three parameters: > radius1, radius2, angle . > My target is to get a regular grid as similar as possible at the original > cloud

Re: [gdal-dev] DataSource::ExecuteSQL

2013-09-25 Thread Jukka Rahkonen
Finegan Thomas-QTF001 motorolasolutions.com> writes: > > Hello all, > Does > OSGeo.OGR.DataSource support sorting in the query? I would like to get a Layer back from this method that returns the features sorted by a specific field. >   > Thanks, > Tom By reading http://www.gdal.org/ogr/ogr_sql

[gdal-dev] DataSource::ExecuteSQL

2013-09-25 Thread Finegan Thomas-QTF001
Hello all, Does OSGeo.OGR.DataSource support sorting in the query? I would like to get a Layer back from this method that returns the features sorted by a specific field. Thanks, Tom ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Dmitriy Baryshnikov
I'm not sure, but /err_threshold /setting to zero maybe sute:/ / -et 0.0 Best regards, Dmitriy 25.09.2013 15:36, Jukka Rahkonen ?: Alexander Bruy gmail.com> writes: 2013/9/25 Jukka Rahkonen mmmtike.fi>: Have a try by -tr together with -tap http://www.gdal.org/gdalwarp.html I guess

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Jukka Rahkonen
Alexander Bruy gmail.com> writes: > > 2013/9/25 Jukka Rahkonen mmmtike.fi>: > > Have a try by -tr together with -tap > > http://www.gdal.org/gdalwarp.html > > > > I guess it will give about what you want. > > Thanks for hints, I'll try this. But seems to use -tr option I should > first calcula

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Alexander Bruy
2013/9/25 Jukka Rahkonen : > Have a try by -tr together with -tap > http://www.gdal.org/gdalwarp.html > > I guess it will give about what you want. Thanks for hints, I'll try this. But seems to use -tr option I should first calculate resolution of the output raster. This can work for time from tim

Re: [gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Jukka Rahkonen
Alexander Bruy gmail.com> writes: > Is it possible to do this without raster grid resampling? Keeping pixel size > is very important for further analysis. Hi, Have a try by -tr together with -tap http://www.gdal.org/gdalwarp.html I guess it will give about what you want. -Jukka Rahkonen-

[gdal-dev] gdal_grid: how to choose ellipse radius

2013-09-25 Thread laura0
Hi all, I am investigating Nearest neighbor algorithm of gdal_grid. The search ellipse is described by the three parameters: radius1, radius2, angle . My target is to get a regular grid as similar as possible at the original cloud of point, with the same values (no interpolation, so I choose the N

[gdal-dev] Write dataset to web output

2013-09-25 Thread Guillaume Sueur
Hi list, I've build a python gdal script which retrieves WMS images from a remote layer. I'd like to send the image back to the browser, but I can't figure out how to do that... Once I've got a correct gdal dataset, how to read it into the server response ? Thanks Guillaume

[gdal-dev] Crop raster without changing output pixel size

2013-09-25 Thread Alexander Bruy
Hi all, I have a georeferenced raster and want to crop it using shapefile as mask layer. I use next command: gdalwarp -q -cutline myshape.shp -crop_to_cutline -of GTiff input.tif output.tif All fine except one thing: the output raster has another pixel size than input. For example, input raster