开发者

Google Maps - create polygon with group of lon/lat points

开发者 https://www.devze.com 2023-01-23 08:03 出处:网络
I have groups of 10 to 700 longitude and latitude points around a city or region. I would like to create a polygon or \"blob\" to cover area defined by these points.

I have groups of 10 to 700 longitude and latitude points around a city or region. I would like to create a polygon or "blob" to cover area defined by these points.

I Could pre-process points on our server to save time.

has anyone done anything like this or seen any useful to开发者_运维技巧ols?


In order to find the polygon you talk about you need the compute the convex hull of your points. There are plenty of algorithms available. Here you can find one in PHP.

0

精彩评论

暂无评论...
验证码 换一张
取 消