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 details)
File details
Details for the file geojson2osm-0.0.1.tar.gz
.
File metadata
- Download URL: geojson2osm-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1c18be7967c01d6486afe9e10c00cde0a4c31e88739f434223c09cc20b5f71 |
|
MD5 | bf156d93ac7128cf18c1925cb36d444f |
|
BLAKE2b-256 | 3a057fc55180671bfa5a52707816894f0f9dc9815a99c8fba70b29ce4b3eb0a6 |