Skip to content

Instantly share code, notes, and snippets.

View pkinglinz's full-sized avatar

Pete King pkinglinz

  • LINZ
  • Wellington, NZ
View GitHub Profile
from qgis.core import Qgis, QgsMapLayer, QgsPointXY, QgsProject
from qgis.utils import iface
def create_joyplot():
rlayer = iface.activeLayer()
if rlayer.type() != QgsMapLayer.RasterLayer:
iface.messageBar().pushMessage("Error", "Please select a DEM layer", level=Qgis.Critical)
@pkinglinz
pkinglinz / 0_reuse_code.js
Created September 28, 2016 19:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console