![](/img/trans.png)
[英]How to find only the distance to the closest linestring from a polygon in BigQuery?
[英]How to extend the polygon to a certain distance?
如何將多邊形延伸到一定距離? 我圍繞多點創建一個凸包。 但是我需要將范圍擴大到幾公里。 至少在理論上。
假設您能夠獲得凸包(也許您正在使用ConvexHullAggregate
!),則STBuffer()
應該做您想要的事情。
declare @hull geography = «your value here»;
select @hull.STBuffer(10000); -- 10 km buffer
注意: 10000
可能需要根據您使用的SRID進行更改,因為SRID具有固有的距離單位。 但是SRID 4326是文檔中最常用的,並且該SRID的本機單位是米。 所以10公里→10000 m
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.