Skip to content

trailbehind/changegen

Repository files navigation

OSM Changefile Generator (changegen)

Codeship Status for trailbehind/changegen

more info on testing in test/README

Changegen is a command-line application for generating OpenStreeMap changefiles from database tables and their source extract. This software is designed to support PostGIS/Imposm-based workflows for conflation of third-party data with OSM. The resulting changefiles can be used post-conflation to enable the updating of the source Planet file (or any other extract) with newly-conflated data via software such as Osmosis.

The primary output of this software are .osc files, described in detail here. (It is important to note that .osc change files are distinct from OSM Change Sets)

Main Features:

  • Ensures properly noded junctions (e.g. intersecting Ways always share a Node).
  • Preserves topology of existing OSM network.
  • Configurable ID generation (negative IDs, arbitrary offsets)
  • Use of GDAL for efficient geodata processing

This software is currently in an alpha release, and will change rapidly.

Contributing

We welcome pull requests for consideration. This repository uses pre-commit hooks to validate contributions for style. Please install and enable pre-commit.