ST_BUFFER距离单元
您好,我使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 callingST_Buffer
but note that 3857 will give you a approximation but there will be more suitable projections to improve the result.