Skip to main content

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)

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)

Uploaded Source

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

Hashes for geojson2osm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ac1c18be7967c01d6486afe9e10c00cde0a4c31e88739f434223c09cc20b5f71
MD5 bf156d93ac7128cf18c1925cb36d444f
BLAKE2b-256 3a057fc55180671bfa5a52707816894f0f9dc9815a99c8fba70b29ce4b3eb0a6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page