[postgis-tickets] [PostGIS] #3655: Infinite line defined by two points
PostGIS
trac at osgeo.org
Fri Oct 7 08:17:24 PDT 2016
#3655: Infinite line defined by two points
---------------------------+---------------------------
Reporter: stefanpetrea | Owner: pramsey
Type: enhancement | Status: new
Priority: low | Milestone: PostGIS 2.3.1
Component: postgis | Version: 2.3.x
Keywords: infinite,line |
---------------------------+---------------------------
It would be useful to have the ability to build an infinite line that
passes through two points.
Some people need find point that would lie on a segment's continuation(for
example if they need to extend that segment indefinitely and see if it
would hit a different geometry along the way, maybe a polygon). And
currently it seems that the way this is done is
[http://gis.stackexchange.com/a/33084/22412 by computing the segment's
bearing] and new length, and are extending their lines that way.
Since PostgreSQL has `+/- Infinity`
[https://www.postgresql.org/docs/9.4/static/datatype-numeric.html
#DATATYPE-FLOAT described in the docs] for floating point types, maybe
those could be used to define such a line.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3655>
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