Skip to content

Beakerboy/geojson2osm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson2osm

A Python package to convert GeoJSON data to OSM XML format.

Inspired From geojsontoosm

Install

pip install geojson2osm

Usage

Command Line

python -m geojson2osm your_geojson_file.geojson output.osm

Library

import json
from geojson2osm import geojson2osm

# Load your GeoJSON data
geojson_data = json.load(open('your_geojson_file.geojson'))

# Convert the GeoJSON data to OSM XML format
osm_xml = geojson2osm(geojson_data)

# Save the OSM XML data to a file
with open('output.osm', 'w') as output_file:
    output_file.write(osm_xml)

About

Geojson To OSM Xml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%