谷歌地图 - 如何从地址获取建筑物的多边形坐标? [英] Google maps - how to get building's polygon coordinates from address?

查看:278
本文介绍了谷歌地图 - 如何从地址获取建筑物的多边形坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何执行以下操作:


  1. 用户定义一个地址


  2. 服务在Google地图上搜索相应的建筑物
  3. 服务使用颜色填充查找到的建筑物

我知道如何:

1.寻找地址的长/长

2.提取多边形



所以,我需要从地址获取建筑物的多边形坐标。

)+算法来获取多边形边角的像素坐标。

(4)墨卡托投影获取像素的纬度/经度


How to implement the following:

  1. User defines an address
  2. User defines a color
  3. Service searches for a corresponding building on the google map
  4. 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?

解决方案

(1) Acquire image tile

(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆