一个将GeoJSON数据转换为OSM XML格式的Python包
项目描述
geojson2osm
一个将GeoJSON数据转换为OSM XML格式的Python包。
灵感来自 geojsontoosm
安装
pip install geojson2osm
用法
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)
项目详情
关闭
geojson2osm-0.0.1.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | ac1c18be7967c01d6486afe9e10c00cde0a4c31e88739f434223c09cc20b5f71 |
|
MD5 | bf156d93ac7128cf18c1925cb36d444f |
|
BLAKE2b-256 | 3a057fc55180671bfa5a52707816894f0f9dc9815a99c8fba70b29ce4b3eb0a6 |