Skip to main content

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” (http://proceedings.esri.com/library/userconf/proc96/TO400/PAP370/P370.HTM).

Required dependencies:

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

skeletron-osm-streets.py

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

skeletron-osm-route-rels.py

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

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:

http://twak.blogspot.com/2009/01/that-straight-skeleton-again.html

How it’s useful for maps:

http://aci.ign.fr/Leicester/paper/Haunert-v2-ICAWorkshop.pdf

Project details


Download files

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

Source Distribution

Skeletron-0.9.2.tar.gz (15.7 kB view details)

Uploaded Source

File details

Details for the file Skeletron-0.9.2.tar.gz.

File metadata

  • Download URL: Skeletron-0.9.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Skeletron-0.9.2.tar.gz
Algorithm Hash digest
SHA256 a3098d57872eacb740b8a251a364ef550ad3d40a17c3724da263640caa86fcf5
MD5 643c2add6d21abbf9a863f493821bbb8
BLAKE2b-256 34e99a1689f844e8c3d751a17f882b18bbd8978a8bdb96ad9901d7e4462e2940

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page