Opened 8 years ago

Last modified 7 years ago

#3655 new enhancement

Infinite line defined by two points

Reported by: stefanpetrea Owned by: pramsey
Priority: low Milestone: PostGIS Fund Me
Component: postgis Version: master
Keywords: infinite, line Cc:

Description

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 by computing the segment's bearing and new length, and are extending their lines that way.

Since PostgreSQL has +/- Infinity described in the docs for floating point types, maybe those could be used to define such a line.

Change History (2)

comment:1 by robe, 7 years ago

Milestone: PostGIS 2.3.1PostGIS 2.4.0
Version: 2.3.xtrunk

comment:2 by robe, 7 years ago

Milestone: PostGIS 2.4.0PostGIS Fund Me
Note: See TracTickets for help on using tickets.