Re: [gdal-dev] gdalwarp -dstalpha does not create alpha band

2020-02-11 Thread John W. Glendening
Jukka After reading your message assuring me that -dstalpha does work for others, and since what I was doing seemed so basic, I decided to re-boot my computer and try again (I have recently been using some large graphics files). Lo and behold I am now getting the expected result, transparency out

Re: [gdal-dev] Stacking JP2 files

2020-02-11 Thread Even Rouault
On mardi 11 février 2020 18:15:33 CET Júlio César D. M. Esquerdo wrote: > Hello, > > I'm using gdal_merge.py to stack a set of JP2 rasters with the following > command line: > > gdal_merge.py *jp2 -o output.jp2 -of JP2OpenJPEG -separate > > It didn't work. I got the message: "Format driver JP2Op

[gdal-dev] Stacking JP2 files

2020-02-11 Thread Júlio César D . M . Esquerdo
Hello, I'm using gdal_merge.py to stack a set of JP2 rasters with the following command line: gdal_merge.py *jp2 -o output.jp2 -of JP2OpenJPEG -separate It didn't work. I got the message: "Format driver JP2OpenJPEG does not support creation and piecewise writing". The command works fine for

Re: [gdal-dev] GDALDataset::CopyLayer options handling causing crash

2020-02-11 Thread Even Rouault
Dirk, > How is this supported to be handled? How can the caller know the options > array has been destroyed by the CopyLayer function? This is a GDAL bug. This couldn't work. And there was no test for this feature. Fix & small test just committed in master and 3.0 branch Even -- Spatialys - G

[gdal-dev] GDALDataset::CopyLayer options handling causing crash

2020-02-11 Thread Dirk Vanden Boer
I get a crash when calling the CopyLayer function. Pseudo code: char** options = CSLAddString(nullptr, "DST_SRSWKT=some_wkt"); ds->CopyLayer(srcLayer, "newname", options); CSLDestroy(options); Inside GDALDataset::CopyLayer the DST_SRSWKT option is removed from the list: // Remove DST_WKT from opti

[gdal-dev] Python: MEM inputs to warp and DEMProcessing

2020-02-11 Thread Idan Miara
Hi, I'm using gdal python API with the following functions: 1. gdal.warp with a cutline input 2. gdal.DEMProcessing in 'color-relief' mode I receive the cutline as WKT and the color file as text, thus to use these functions I needed to create an OGR file and a color palette text file. Is there