Re: [gdal-dev] Raster from temporary tiles

2016-07-19 Thread Matthias Kuhn
On 20/07/16 08:20, Even Rouault wrote: > Le mercredi 20 juillet 2016 08:08:07, Matthias Kuhn a écrit : >> Hi Even >> >> On 20/07/16 08:04, Even Rouault wrote: >>> Hi Matthias, >>> >>> The GPKG driver is a full-blown raster driver with similar capabilites to >>> the GeoTIFF one. That is you can use

Re: [gdal-dev] Raster from temporary tiles

2016-07-19 Thread Even Rouault
Le mercredi 20 juillet 2016 08:08:07, Matthias Kuhn a écrit : > Hi Even > > On 20/07/16 08:04, Even Rouault wrote: > > Hi Matthias, > > > > The GPKG driver is a full-blown raster driver with similar capabilites to > > the GeoTIFF one. That is you can use GDALCreate() to initialize an empty > > ra

Re: [gdal-dev] Raster from temporary tiles

2016-07-19 Thread Matthias Kuhn
Hi Even On 20/07/16 08:04, Even Rouault wrote: > Hi Matthias, > > The GPKG driver is a full-blown raster driver with similar capabilites to the > GeoTIFF one. That is you can use GDALCreate() to initialize an empty raster > and then write arbitrary portions of it with GDALRasterIO(, ..., GF_Wri

Re: [gdal-dev] Raster from temporary tiles

2016-07-19 Thread Even Rouault
Hi Matthias, The GPKG driver is a full-blown raster driver with similar capabilites to the GeoTIFF one. That is you can use GDALCreate() to initialize an empty raster and then write arbitrary portions of it with GDALRasterIO(, ..., GF_Write, ...). You can also initialize empty overviews with G

[gdal-dev] Raster from temporary tiles

2016-07-19 Thread Matthias Kuhn
Hi, I have a question regarding creating raster data (geopackage). It's trivial to create files with gdal_translate if there is already an existing source raster file (e.g. geotiff). What I need to do is to download tiles and "feed" them to a geopackage raster file. I guess I could just download

Re: [gdal-dev] change attribute type of OSM data

2016-07-19 Thread maning sambale
I see, I'm using 1.11. Will try the sql CAST way. Thanks! On Tue, Jul 19, 2016 at 1:24 PM, Even Rouault wrote: > Le mardi 19 juillet 2016 09:47:33, Even Rouault a écrit : >> Le mardi 19 juillet 2016 06:19:54, maning sambale a écrit : >> > Hi Even, >> > >> > Here's mi osmconf.ini: >> > https://g

Re: [gdal-dev] How to add an external mask as internal mask to a GeoTIFF?

2016-07-19 Thread Daniele Romagnoli
On Tue, Jul 19, 2016 at 3:34 PM, Even Rouault wrote: > Le mardi 19 juillet 2016 15:27:05, Daniele Romagnoli a écrit : > > Hi Even, > > thanks for the feedback. > > > > I was using it as a -co "GDAL_TIFF_INTERNAL_MASK=YES" to the latest > command > > and I was getting > > > > *Warning 6: driver GT

Re: [gdal-dev] How to add an external mask as internal mask to a GeoTIFF?

2016-07-19 Thread Even Rouault
Le mardi 19 juillet 2016 15:27:05, Daniele Romagnoli a écrit : > Hi Even, > thanks for the feedback. > > I was using it as a -co "GDAL_TIFF_INTERNAL_MASK=YES" to the latest command > and I was getting > > *Warning 6: driver GTiff does not support creation option > GDAL_TIFF_INTERNAL_MASK* > Appen

Re: [gdal-dev] How to add an external mask as internal mask to a GeoTIFF?

2016-07-19 Thread Daniele Romagnoli
Hi Even, thanks for the feedback. I was using it as a -co "GDAL_TIFF_INTERNAL_MASK=YES" to the latest command and I was getting *Warning 6: driver GTiff does not support creation option GDAL_TIFF_INTERNAL_MASK* Appending the line you provided me to that command worked! Thanks. Daniele On Tue, J

Re: [gdal-dev] How to add an external mask as internal mask to a GeoTIFF?

2016-07-19 Thread Even Rouault
Hi Daniele, > > I have 2 issues with that: > 1) This solution is really not optimal. Wondering if there is a single > command to attach an external tif as a mask band of an existing raster > (provided it has same CRS, resolution, bbox, ecc) None that I can think of. Your workflow is probably clo

[gdal-dev] How to add an external mask as internal mask to a GeoTIFF?

2016-07-19 Thread Daniele Romagnoli
Hi List, I have a 4 Bands (RGB-IR) GeoTIFF for which I also have an external mask.tif which has been created starting from a mask.shp shapefile using this command: *gdal_rasterize -ot Byte -l mask -CO "TILED=YES" -CO "NBITS=1" -CO "PHOTOMETRIC=MINISBLACK" -CO "COMPRESS=DEFLATE" -a cat -burn 1 -ts

[gdal-dev] OGDI 3.2.0 released

2016-07-19 Thread Even Rouault
Hi, I guess people will only begin testing when it is released, so here it is : https://sourceforge.net/projects/ogdi/files/ogdi/3.2.0/ogdi-3.2.0.tar.gz/download 3.2.0 news: o Fix Windows build issues o Harding of VRF driver regarding corrupted datasets o Extra fixes for buffer overflows

Re: [gdal-dev] change attribute type of OSM data

2016-07-19 Thread Even Rouault
Le mardi 19 juillet 2016 09:47:33, Even Rouault a écrit : > Le mardi 19 juillet 2016 06:19:54, maning sambale a écrit : > > Hi Even, > > > > Here's mi osmconf.ini: > > https://gist.github.com/anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f > > Works for me. Looking at history, I see this capability wa

Re: [gdal-dev] Unable to read in GML file via OGRINFO / OGR2OGR (attempt 2)

2016-07-19 Thread Jelmer Baas
Amazing! Thanks for the quick response! Regards, Jelmer -Original Message- From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Even Rouault Sent: maandag 18 juli 2016 23:10 To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Unable to read in GML file via OGRINFO / O

Re: [gdal-dev] change attribute type of OSM data

2016-07-19 Thread Even Rouault
Le mardi 19 juillet 2016 06:19:54, maning sambale a écrit : > Hi Even, > > Here's mi osmconf.ini: > https://gist.github.com/anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f Works for me. Looking at history, I see this capability was added in GDAL 2.0 so I presume you use an older version. -- Spatial