如何根据大圆线定义postgis多边形

发布于 2024-12-22 02:51:07 字数 191 浏览 0 评论 0 原文

我希望使用 PostGIS 选择多边形内的所有点,但这个问题是关于定义实际的多边形。

我正在定义一个基于大圆的多边形,该大圆由地球表面上由纬度和经度坐标定义的两个点指定。我所追求的多边形应该由中心线左右的宽度来定义(中心线是由大圆构成的线),

所得的形状将是一个长弯曲的矩形形状。

目的是选择大圆线 x 距离内的所有点。

I wish to use PostGIS to select all the points within a polygon, but this question is about defining the actual polygon.

I'm looking to define a polygon that is based on a great circle, specified by two points on the earths surface defined by latitude and longitude coordinates. The polygon that I'm after should be defined by a width left and right of the the center line (the center line being the line made by the great circle)

The resulting shape would be a long curved rectangular shape.

The purpose being to select all the points within x distance of the great circle line.

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

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

发布评论

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

评论(1

黯然 2024-12-29 02:51:07

我认为您对正在处理的数据类型感到困惑,如果您使用等距投影,您可以使用像这样简单的东西:

ST_DWithIn(ST_MakeLine(point1, point2),distanceInSRIDunits)

postgis 邮件列表 对您有用。

I think you are confused about the kind of data you are dealing with, if you use a equidistant projection you could use something as simple as this:

ST_DWithIn(ST_MakeLine(point1, point2),distanceInSRIDunits)

There is an old discussion in the postgis mail list that will be useful to you.

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