跳转到主要内容

一个将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 (4.2 kB 查看散列)

上传时间

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面