Skip to content

Instantly share code, notes, and snippets.

@praszuk
praszuk / boundaries_splitter.md
Last active September 6, 2025 21:48
Split (Multi)Polygons to unique LineStrings.

Boundaries splitter

The tool can be used to transform a GeoJSON file with Polygons and MultiPolygons into a GeoJSON file with LineStrings, which makes it easier to replace geometries in the JOSM editor.

How it works

The script splits boundary lines at their intersections.
E.g. 3 borders areas (polygons), each one has a line which may duplicate edges of another like for green & red and red & blue:

@kenji-miyake
kenji-miyake / how-to-generate-xyz-tiles-using-qgis3.md
Created June 21, 2019 03:43
How to generate XYZ tiles using QGIS3

How to generate XYZ tiles using QGIS3

Overview

QGIS3 has a tool called 'gdal2tiles.py' which can generate map tiles, but currently, it only supports TMS, not XYZ. However, QGIS3 loads XYZ by default and requires checkbox for TMS, so it's better to convert TMS to XYZ.

The difference between TMS and XYZ is just the name of Y-coordinate, so renaming works well. tms2xyz.py is a script for that.

@PurpleBooth
PurpleBooth / README-Template.md
Last active December 3, 2025 00:19
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites