Posts

Showing posts with the label gdal

Merging overlapping rasters [on hold]

Merging overlapping rasters [on hold] There are two rasters A and B. A is smaller but within B and since A has more up-to-date pixel values, I was able to merge A and B with "Mosaic raster layers" tool in QGIS which replaces B pixel values with A. However there is a problem, that A does have no value pixels (which are dummy high numbers), when the merge happens it overwrites B which I don't want it to happen as B has values for those missing points within A. Is there any way it could be done? It may be possible with GDAL, but I don't know how to set up the rules. Many Thanks

Install GDAL in virtualenvwrapper environment

Install GDAL in virtualenvwrapper environment I tried to install gdal (pip install gdal)in virtualenvwrapper environment but I got this error : error: command 'gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for gdal Failed to build gdal I tried also "pip install --no-install GDAL" but there is nooption --no-install what should I do !? Which OS is this on? pyGDAL is a little bit difficult with virtualenvs since it requires the appropriate C++ library already installed on the system. You also should match versions (i.e. if your OS has libgdal 1.9, pip install gdal==1.9 is your friend). For Debian-based systems you also need libgdal-dev installed. And then there's sometimes also CPPFLAGS and LDFLAGS . – dhke Aug 18 '15 at 8:10 pip install...