[postgis-tickets] [PostGIS] #4278: ST_3DIntersects / ST_3DDistance solid aware in LWGEOM
PostGIS
trac at osgeo.org
Wed Jan 23 02:52:53 PST 2019
#4278: ST_3DIntersects / ST_3DDistance solid aware in LWGEOM
----------------------+---------------------------
Reporter: komzpa | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.0.0
Component: postgis | Version: 2.4.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by komzpa):
Ray from point to infinity can be expressed as a box (Xmin=X[-eps],
Xmax=X[+eps], Ymin=Y[-eps], Ymax=Y[+eps], Zmin=Z, Zmax = infinity). You
can intersect such box with any dimension geometry by feeding the ranges
into lwgeom_clip_to_ordinate_range.
Afterwards you get a bunch of super tiny polygons with 2D area=0, area =
eps^2. Count ones with area>0, that will get you a good approximation of
number of hits. If you find a hit with area of 0 < area < eps^2, it's on
the edge, mark it with a TODO:FIXME and emit a warning.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4278#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list