Skip to content

Instantly share code, notes, and snippets.

View m-kuhn's full-sized avatar
💡

Matthias Kuhn m-kuhn

💡
View GitHub Profile

Details

The QGIS attribute form currently allows displaying and editing the following things:

  • Attribute editors (highly configurable)
  • Relation editor (for showing children of a feature)

We propose to add a new widget type Charts and drawings Widget to this list. With this new type it will be possible to show graphically appealing and interactive items like charts or technical drawings on the attribute form.

screenshot from 2018-05-08 12-21-44

@m-kuhn
m-kuhn / geomchecks.md
Last active August 21, 2018 12:45
Geometry Checking in QGIS

QGIS Enhancement: Geometry Validation

Date 2018/08/01

Author Matthias Kuhn (@m-kuhn)

Contact matthias@opengis.ch

maintainer @m-kuhn

@m-kuhn
m-kuhn / recipe.sh
Created August 14, 2018 12:25
QGIS OSGeo4A recipe
#!/bin/bash
# version of your package
VERSION_qgis=3.2.0
# dependencies of this recipe
DEPS_qgis=(gdal qca libspatialite spatialindex expat gsl postgresql libzip qtkeychain)
# DEPS_qgis=()
# url of the package
@m-kuhn
m-kuhn / Zonen_mku.qml
Created June 28, 2018 15:05
Zonenplan gemerged
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="2.10.1-Pisa" minimumScale="0" maximumScale="1e+08" simplifyDrawingHints="1" minLabelScale="0" maxLabelScale="1e+08" simplifyDrawingTol="1" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyLocal="1" scaleBasedLabelVisibilityFlag="0">
<edittypes>
<edittype widgetv2type="TextEdit" name="xtf_geomattr">
<widgetv2config IsMultiline="0" fieldEditable="1" UseHtml="0" labelOnTop="0"/>
</edittype>
<edittype widgetv2type="TextEdit" name="xtf_id">
<widgetv2config IsMultiline="0" fieldEditable="1" UseHtml="0" labelOnTop="0"/>
</edittype>
<edittype widgetv2type="TextEdit" name="xtf_basket">
[unittest]
plugins = nose2.plugins.logcapture
[log-capture]
always-on = True
clear-handlers = True
log-level = NOTSET
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
<gml:Box>
<gml:coord><gml:X>0.6538461538461539</gml:X><gml:Y>-1</gml:Y></gml:coord>
<gml:coord><gml:X>8</gml:X><gml:Y>5.5</gml:Y></gml:coord>
@m-kuhn
m-kuhn / # qgis3-dev - 2016-12-01_16-55-44.txt
Created December 2, 2016 13:44
qgis3-dev (qgis/qgisdev/qgis3-dev) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for qgis/qgisdev/qgis3-dev on macOS 10.11.6
Build date: 2016-12-01 16:55:44

How to upload a file to a github release

  • Create the release using the github page

  • Query the github API for the upload URL

    curl -i https://api.github.com/repos/opengisch/osgeo4travis/releases/tags/{releasename}
    
@m-kuhn
m-kuhn / pyqgis-sip2.rst
Last active December 18, 2015 07:29 — forked from NathanW2/pyqgis-sip2.rst
Minor updates.

The QVariant type doesn't exist any more so any methods returning QVariant will be auto converted to Python types. You no longer need to convert the return type using the toXXXX methods.

Remove all:

toString()
toList()
toInt()
toFloat()
toStringList()
toByteArray()
@m-kuhn
m-kuhn / gist:0f9a29894cde5e1997fa
Created January 26, 2015 13:56
QGIS Docker test
# QGIS Test
#
# VERSION 0.0.1
FROM ubuntu:12.04
MAINTAINER Matthias Kuhn <matthias at opengis dot ch>
RUN apt-get update
RUN apt-get install -y bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal1-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd pkg-config poppler-utils pyqt4-dev-tools python python-dev python-qt4 python-qt4-dev python-sip python-sip-dev spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb clang++-3.4 clang-3.4 make