Skip to content

Instantly share code, notes, and snippets.

@tobwen
tobwen / qgis-logo_fixed.svg
Created March 30, 2017 22:10
fixed QGIS logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tobwen
tobwen / qgis-logo_fixed_straight.svg
Last active March 31, 2017 01:43
fixed QGIS logo (straight gradients)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tobwen
tobwen / qgis-logo_fixed_straight_flat.svg
Last active March 31, 2017 01:50
fixed QGIS logo (straight gradients, flat design)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tobwen
tobwen / gist:c1fc1512458ce272aee2410e36cf1e21
Created March 7, 2019 19:30
HOWTO: backport fuse3 for Debian Stretch
# backport libfuse3 from Debian 10
apt install -t stretch-backports equivs meson mk-build-deps
mkdir "$HOME/build/libfuse3/" && cd "$HOME/build/libfuse3/"
(
dget -x http://deb.debian.org/debian/pool/main/f/fuse3/fuse3_3.4.1-1.dsc; \
cd fuse3-3.4.1; \
mk-build-deps --install --remove --tool "apt -o Debug::pkgProblemResolver=yes --no-install-recommends -t stretch-backports" --root-cmd "sudo"; \
sudo dpkg --remove fuse3-build-deps; \
dch --local ~bpo9+ --distribution stretch-backports "Rebuild for stretch-backports (local only)."; \
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -j4; \
@tobwen
tobwen / install_podman.sh
Last active April 1, 2019 01:52
HOWTO: install podman and dependencies rootless
#!/usr/bin/env bash
# for Debian 9: apt install -t stretch-backports uidmap [others will follow soon]
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH"
[ -d "$GOPATH" ] || mkdir -p "$GOPATH"
buildah_src="containers/buildah"
catatonit_src="openSUSE/catatonit"
cni_src="containernetworking/plugins"
@tobwen
tobwen / wronxit.geojson
Created October 29, 2019 18:27
NEVER `buffer with 0`
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tobwen
tobwen / nw_3035.md
Last active May 23, 2020 09:29
Variants to generate an INSPIRE-compliant grid in EPSG:3035 for Germany's federal state Northrhine-Westfalia in PostGIS
@tobwen
tobwen / gdal-raster.md
Last active January 21, 2022 13:06
`.geoTransform` is off in different raster formats

version

GDAL 3.4.1, released 2021/12/27

get source cache (mbtile)

curl -kJLOR "https://daten.gdz.bkg.bund.de/produkte/topplus_open/TopPlusOpen/aktuell/mercator/9.mbtile"
cp 9.mbtile 9.mbtiles

create extracts

@tobwen
tobwen / INSPIRE Verwaltungseinheiten DE.md
Last active July 14, 2022 22:15
INSPIRE Verwaltungseinheiten DE

WFS-Download

dl_wfs_1() {
    curl --insecure --location --remote-time --create-dirs --get \
    --url "$1" \
    --data "service=WFS" \
    --data "request=GetFeature" \
    --data "version=1.1.0" \
 --data "resultType=results" \
@tobwen
tobwen / example-maplibre-gl-leaflet-html
Created November 8, 2022 00:06
basemap.de Web Vektor - MapLibre GL Leaflet Demo
<!DOCTYPE html>
<html>
<head>
<title>basemap.de Web Vektor - Leaflet Demo</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css" />
<style>
body {
margin: 0;
padding: 0;