Re: [gdal-dev] Create dummy internal mask

2018-09-03 Thread Even Rouault
On dimanche 2 septembre 2018 21:43:51 CEST Denis Rykov wrote: > Hi, > > I need to add dummy internal mask to 1-band GeoTIFF for further processing. > The drawback of the following approach is that it mask legitimate 0 pixels: > > gdal_translate --config GDAL_TIFF_INTERNAL_MASK YES -mask 1 nomask.

Re: [gdal-dev] Fwd: Missing _gdal_array.py, fail to import in Ubuntu 18.04

2018-09-03 Thread Imanol
Hey, Actually that one is missing. I have { _gdal, _gnm, _gdalconst, _ogr, _osr}.cpython-36m-x86-linux-gnu.so but no _ gdal_array.cpython-36m-x86-linux-gnu.so. If there is no _gdal_array.py, why gdal_array.py tries to import it? How can be missing _gdal_array.cpython-36m-x86-linux-gnu.so if numpy

Re: [gdal-dev] Fwd: Missing _gdal_array.py, fail to import in Ubuntu 18.04

2018-09-03 Thread Even Rouault
(please keep the list cc'ed in your replies) There's no such file as _gdal_array.py. But there should be a file named like _gdal_array.cpython-36m-x86_64-linux-gnu.so with the native code of the binding corresponding to gdal_array.py Perhaps try make clean before rebuilding > Hello Even, > > I

Re: [gdal-dev] Suggestion to create drivers for a new raster format

2018-09-03 Thread Even Rouault
On vendredi 31 août 2018 09:45:02 CEST Nicolas Cadieux wrote: > Hi, > > How do we proceed if we want GDAL team to create drivers for a new raster > format? Nicolas, GDAL being open source software, the GDAL team is basically anyone willing to tackle on this task. You, a coworker, etc... General

Re: [gdal-dev] Fwd: Missing _gdal_array.py, fail to import in Ubuntu 18.04

2018-09-03 Thread Even Rouault
Imanol, it is likely you need also to install the python-numpy package. The gdal_array.py extension used by ReadAsArray() is only built if numpy is available when the bindings are built. Even > Dear all, > > I have been struggling with these for some days. Usually I always build > from source

[gdal-dev] Fwd: Missing _gdal_array.py, fail to import in Ubuntu 18.04

2018-09-03 Thread Imanol
Dear all, I have been struggling with these for some days. Usually I always build from source GDAL, it tends to give me better results than install packages. But this time no, I have tried with `./configure', `./configure --with-python' and `./configure --with-python=python3.6'. It seems to compi