Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Generalizes collections of lines on maps to simpler lines for improved labeling.

Project description

Skeletron generalizes collections of lines to a specific spherical mercator zoom level and pixel precision, using a polygon buffer and voronoi diagram as described in a 1996 paper by Alnoor Ladak and Roberto B. Martinez, “Automated Derivation of High Accuracy Road Centrelines Thiessen Polygons Technique” (

Required dependencies:

You’d typically use it via one of the provided utility scripts, currently just these two:

Accepts OpenStreetMap XML input and generates GeoJSON output for streets using the “name” and “highway” tags to group collections of ways.

Accepts OpenStreetMap XML input and generates GeoJSON output for routes using the “network”, “ref” and “modifier” tags to group relations. More on route relations:

The Name

The first two implementations of Skeletron used the “straight skeleton” of a polygon to find a generalized center, and ultimately didn’t work very well.

The straight skeleton:
How it’s useful for maps:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Skeletron-0.10.0.tar.gz (16.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page