Skip to content

Instantly share code, notes, and snippets.

View detlevn's full-sized avatar

Detlev Neumann detlevn

View GitHub Profile
@detlevn
detlevn / raster_calculator2.py
Created November 1, 2019 14:48
Executing QgsRasterCalculator in standalone python app fails
import os
import sys
from qgis.core import *
from PyQt5.QtCore import *
from qgis.analysis import QgsRasterCalculator, QgsRasterCalculatorEntry
import gdalnumeric
import gdal
import osr
@detlevn
detlevn / qgis_integrate_w_merge_rule.py
Last active March 19, 2016 14:30
Transfers attributes from layers to features of a master layer whose feature geometries are equal to or contained by geometries of these layers
# -*- coding: utf-8 -*-
"""
/***************************************************************************
Integrate
Transfers attributes from layers to features of a master layer whose
feature geometries are equal to or contained by geometries of these layers
-------------------
date : 2016-03-09
version : 6.5.1
# -*- coding: utf-8 -*-
"""
/***************************************************************************
point_interpolation
Interpolates height values for a list of points using a regular or irregular height field represented
by another list of points.
-------------------
begin : 2014-11-12
copyright : (C) 2014 by Detlev Neumann