使用python解析OSM数据以获得分层或光栅化映射

使用python解析OSM数据以获得分层或光栅化映射,python,deep-learning,maps,openstreetmap,generative-adversarial-network,Python,Deep Learning,Maps,Openstreetmap,Generative Adversarial Network,我想从OpenStreetMap网站下载德国某个地区的数据。它有一些下载选项,如下所示: 常用格式 brandenburg-latest.osm.pbf, suitable for Osmium, Osmosis, imposm, osm2pgsql, mkgmap, and others. This file was last modified 9 hours ago and contains all OSM data up to 2021-05-29T20:21:50Z. File size

我想从OpenStreetMap网站下载德国某个地区的数据。它有一些下载选项,如下所示: 常用格式

brandenburg-latest.osm.pbf, suitable for Osmium, Osmosis, imposm, osm2pgsql, mkgmap, and others. This file was last modified 9 hours ago and contains all OSM data up to 2021-05-29T20:21:50Z. File size: 200 MB; MD5 sum: 9c4edd9b0d8ea8599885caf5f306dd72.
brandenburg-latest-free.shp.zip, yields a number of ESRI compatible shape files when unzipped. (Format description PDF) This file was last modified 8 hours ago. File size: 333 MB; MD5 sum: e10d6fb23d706f631bf13d50a6bf527c.
其他格式和辅助文件

brandenburg-latest.osm.bz2, yields OSM XML when decompressed; use for programs that cannot process the .pbf format. This file was last modified 14 hours ago. File size: 322 MB; MD5 sum: fdbb15ad896c855fb1226258f0b394ca.
brandenburg-internal.osh.pbf The history file contains personal data and is available on the internal server only. See notice above for further information.
.poly file that describes the extent of this region.
.osc.gz files that contain all changes in this region, suitable e.g. for Osmosis updates
raw directory index allowing you to see and download older files
所以有一些选项可以下载。 我想解析数据,用python构建一个光栅化或分层的地图,然后将整个地图分成相等的部分(例如,每个部分将是(64x64)像素)。然后我想创建这些图像的数据集,以便将该数据集提供给GAN模型。有人能帮我解析数据吗? 我在互联网上搜索,在很多网站上乱涂乱画,寻找合适的文档和指导,但这些都没有用