Daniel
  • Member for 4 years, 3 months
  • Last seen more than a month ago
Python - Correct way of closing ogr.DataSource() objects
Accepted answer
4 votes

It seems that the problem is related to PyCharm. I have tested it in Anaconda/Spyder and VS Code without a problem. As I recall properly, the only way of 'closing' a file with GDAL is with from osgeo ...

View answer
QGIS 3.2 - Poor conversion from high-resolution vector to raster
2 votes

I believe this is very much related to how the pixel is constructed. Imagine that QGIS or ArcMAP, or any other software creates a virtual grid on top of the polygons with the extent of these. Then it ...

View answer
How to use gdal_calc.py to process multiple bands
2 votes

Maybe you can try: gdal_calc.py -A raster1.tif --A_band=5 -B raster2.tif --B_band=5 --allBands=[A,B] --outfile=result.tif --calc="A+B" Also check the following link.

View answer
After changing one layer's projection, layers don't overlay correctly
2 votes

As you have already mentioned, Global Mapper (as well QGIS) has "On the fly projection". Sometimes this softwares automatically overlay diferrent rasters/shapes according to their projection system. ...

View answer
Numpy masked array to raster
Accepted answer
1 votes

In your method, change it like the following lines and that will solve the problem: def array2raster(newRasterfn, rasterOrigin, pixelWidth, pixelHeight, array, path): """ This function works fine,...

View answer