Opened 8 years ago

Closed 7 years ago

#3709 closed defect (fixed)

Allow signed distance for ST_Project

Reported by: komzpa Owned by: robe
Priority: medium Milestone: PostGIS 2.4.0
Component: postgis Version: 2.3.x
Keywords: Cc:

Description

ST_Project now falls with

ERROR: XX000: Distance must be between 0 and 2.00151e+07

when passed distance is negative.

for cases when you have just speed, time delta and heading and would like to calculate position along the path line that corresponds to this point, it breaks on negative time deltas.

This can be implemented as adding 180 degrees to the angle and taking abs(distance).

Change History (5)

comment:1 by robe, 8 years ago

Milestone: PostGIS 2.3.3PostGIS 2.4.0

comment:2 by robe, 7 years ago

Darafei,

If you can provide a patch for this within next week I'll accept. Otherwise going to have to punt till 2.5.

comment:3 by komzpa, 7 years ago

https://github.com/postgis/postgis/pull/138

tests are green, and it bothers me: the middle commit added a test but not expected output for it, and it's green too.

comment:4 by robe, 7 years ago

Owner: changed from pramsey to robe

not following which test you are talking about also looks like you are missing a doc update. I can add the doc update on that so don't worry about it.

comment:5 by robe, 7 years ago

Resolution: fixed
Status: newclosed

In 15598:

Allow signed distance for ST_Project (Darafei Praliaskouski)
Closes https://github.com/postgis/postgis/pull/138
Closes #3709

Note: See TracTickets for help on using tickets.