An open API service indexing awesome lists of open source software.

https://github.com/lukasalexanderweber/replace-invalid-osm-ids

Update invalid (<1) Ids within a OSM file
https://github.com/lukasalexanderweber/replace-invalid-osm-ids

Last synced: 2 months ago
JSON representation

Update invalid (<1) Ids within a OSM file

Awesome Lists containing this project

README

        

# replace-invalid-osm-ids
Update invalid (<1) Ids within a OSM file

Editors as JOSM store yet not existing OSM IDs as negatives.
However, tools like [osm2pgsql](https://github.com/openstreetmap/osm2pgsql/issues/1097) or [graphhopper](https://github.com/graphhopper/graphhopper) do not support such negative IDs.

This script updates all invalid IDs to valid IDs.

## Usage

`python replace_invalid_osm_ids.py invalid.osm valid.osm`

invalid.osm

```xml

















```

valid.osm

```xml

















```