ST_BUFFER距离单元

发布于 2025-01-28 18:26:02 字数 337 浏览 2 评论 0原文

您好,我使用ST_Buffer设置了使用此代码的5公里缓冲区:

CREATE TABLE Buf_5km_Schiff as
SELECT ST_Buffer(geom, 0.05) 
FROM public."Input_Schifffahrtswege";

它有效,但我不确定为什么我需要将0.05设置为5公里。我起初尝试了5和5000,但它没有起作用。

顺便提一句。我使用了EPSG 4258坐标系。

提前提前!

Hello I used the ST_Buffer to set a 5 kilometre buffer with this code:

CREATE TABLE Buf_5km_Schiff as
SELECT ST_Buffer(geom, 0.05) 
FROM public."Input_Schifffahrtswege";

It works but im not sure why I need to set 0.05 for 5 kilometres. I tried 5 and 5000 at first but it did not work.

Btw. I used the EPSG 4258 Coordinate System.

Thx in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云淡月浅 2025-02-04 18:26:02

epsg:4258 是学位。您将必须转换为一些度量投影,以使用您期望的缓冲区设置。您可以尝试 epsg:3857 通过将您的几何列包装到st_transform(GEOM,3857) >然后调用st_buffer,但请注意,3857将为您提供近似值,但会有更合适的预测来改善结果。

EPSG:4258 is in degrees. You will have to transform to some metric projection to use the buffer setting you are expecting. You could try EPSG:3857 by wrapping your geometry column into ST_Transform(geom, 3857) and then calling ST_Buffer but note that 3857 will give you a approximation but there will be more suitable projections to improve the result.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文