postgresql 如何获得点周围的边界多边形?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2062992/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 23:58:53  来源:igfitidea点击:

How do i get a bounding polygon around points?

postgresqlpostgis

提问by ADAM

I have a table with thousands of addresses as points.

我有一张表,上面有数千个地址作为点。

Is there a function in postgis that will allow me to get a bounding polygon around these points and return it as a polygon?

postgis 中是否有一个函数可以让我在这些点周围获得一个边界多边形并将其作为多边形返回?

updateI am looking for a more complex polygon than just a bounding rectangle

更新我正在寻找一个比边界矩形更复杂的多边形

回答by mloskot

It may be not 100% clear from your question what you mean as more bounding polygon. It may be understood as

从您的问题中可能不是 100% 清楚您的意思是更边界多边形。可以理解为

回答by Andrew McGregor

Sure is, ST_Extent: http://postgis.refractions.net/documentation/manual-1.4/ST_Extent.html

当然是,ST_Extent:http://postgis.refractions.net/documentation/manual-1.4/ST_Extent.html