谷歌地图 - 如何从地址获取建筑物的多边形坐标? [英] Google maps - how to get building's polygon coordinates from address?
本文介绍了谷歌地图 - 如何从地址获取建筑物的多边形坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何执行以下操作:
- 用户定义一个地址
- 服务在Google地图上搜索相应的建筑物
- 服务使用颜色填充查找到的建筑物
我知道如何:
1.寻找地址的长/长
2.提取多边形
所以,我需要从地址获取建筑物的多边形坐标。
)+算法来获取多边形边角的像素坐标。How to implement the following:
- User defines an address
- User defines a color
- Service searches for a corresponding building on the google map
- Service fills the found building on the map with the color
I know how to:
1.find lat/long of the address
2.draw the polygon
So, to do the task I need to get polygon coordinates of building from address. How to?
解决方案
(2) Segment buildings based on pixel color (here, 0xF2EEE6).
(3) Image cleanup (e.g. erosion then dilation) + algorithm to acquire pixel coordinates of polygon corners.
(4) Mercator projection to acquire lat/long of pixel
这篇关于谷歌地图 - 如何从地址获取建筑物的多边形坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文