A Python package to convert GeoJSON data to OSM XML format
Project description
geojson2osm
A Python package to convert GeoJSON data to OSM XML format.
Inspired From geojsontoosm
Install
pip install geojson2osm
Usage
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geojson2osm-0.0.1.tar.gz
(4.2 kB
view hashes)