[gdal-dev] gdalwarp + cutline and change extent

2016-06-03 Thread Paul Meems
Hi, Currently we're using GDAL v1.10 We need to clip a piece out of a larger tiff file using a shapefile. When we use this command: gdalwarp -cutline Field9.shp -crop_to_cutline -wo "CUTLINE_ALL_TOUCHED=TRUE" input.tif output.tif We get a nicely cropped tiff-file like we want. But the pixels have

Re: [gdal-dev] gdalwarp + cutline and change extent

2016-06-03 Thread Even Rouault
Le vendredi 03 juin 2016 09:12:25, Paul Meems a écrit : > Hi, > > Currently we're using GDAL v1.10 > We need to clip a piece out of a larger tiff file using a shapefile. > > When we use this command: > gdalwarp -cutline Field9.shp -crop_to_cutline -wo > "CUTLINE_ALL_TOUCHED=TRUE" input.tif output

Re: [gdal-dev] Starting a discussion on style and coding guidelines

2016-06-03 Thread Kurt Schwehr
I would make some of assertions (some just restating what Even wrote) * The cost to heap allocation is a fair question (but I would suggest we defer the work until required) * Any work done on performance critical subroutines should be done carefully. * It would help to have a standard comment t

Re: [gdal-dev] Starting a discussion on style and coding guidelines

2016-06-03 Thread Mateusz Loskot
On 3 June 2016 at 15:54, Kurt Schwehr wrote: > I would make some of assertions (some just restating what Even wrote) > > * The cost to heap allocation is a fair question (but I would suggest we > defer the work until required) > > * Any work done on performance critical subroutines should be done

[gdal-dev] Fwd: How to reuse memory pointer of GDAL Memory driver

2016-06-03 Thread Pol Monsó Purtí
I've posted this question on gis stackexchange, but maybe here is more appropriate. I am doing the same as in http://gis.stackexchange.com/questions/134000/gdal-api-cant-save-image-in-some-formats That is, saving a `JPEG` image with `GDAL`. I know I'd have to create a `MEM` buffer and then `Creat

Re: [gdal-dev] Fwd: How to reuse memory pointer of GDAL Memory driver

2016-06-03 Thread Mateusz Loskot
On 3 June 2016 at 20:45, Pol Monsó Purtí wrote: > I've seen this mysterious article http://www.gdal.org/frmt_mem.html which > references the `DATAPOINTER` option. I've seen another reference > [here](https://lists.osgeo.org/pipermail/gdal-dev/2006-November/010583.html) > which does > > > sprintf(f

[gdal-dev] Questions on working with HYCOM data in netcdf format

2016-06-03 Thread Stephen Woodbridge
Hi All, I want to convert some HYCOM data into GTiff format and I'm a little lost on how to get started, whether I can do what I need just using a vrt or if I'm going to have to write code to process the data. To start with I have placed gdalinfo on one file here: http://imaptools.com:8080/dl

[gdal-dev] PostGIS Out of db VRT containing JPEG2000 GDAL 2.1 OpenJPEG

2016-06-03 Thread bboughton
Not sure on 'repost' rules so apologies if this is out of place, but I have this GDAL/JPEG2000/VRT/POSTGIS problem that I have put up on GIS Stack Exchange with no interest. I am unsure if it is a bug, incorrect setup or not even possible. Essentially my procedure is: Build GDAL 2.1 with OpenJPEG