Python-地理png图像到多边形的geojson

发布于 2025-02-03 13:43:36 字数 299 浏览 3 评论 0原文

我有一个同一地图的多个PNG图像的文件夹。该地图位于国家 /地区,由行政多边形组成。我为此提供了geojson,我想通过Python进行编程地理位置,所有这些图像都归Geojson,然后获得每个多边形的颜色值。 图像的一个例子是:

和此地图的Geojson可用

I have a folder of multiple png images of the same map. The map is on country level and consists of administrative polygons. I have the geojson for this and I want to georeference programmatically, with Python, all of these images to the geojson and then get the color value for each polygon.
An example of the images is this:
enter image description here

and the geojson for this map is available here. I have read about overlay with rasterio but it seems too complicated to rasterize my polygons and back and forth. I also read about georeferencing the polygon corners but this still is about png over tiff file.
Any ideas on how to approach this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文