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 , 8 years ago
Milestone: | PostGIS 2.3.3 → PostGIS 2.4.0 |
---|
comment:2 by , 7 years ago
comment:3 by , 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 , 7 years ago
Owner: | changed from | to
---|
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.
Darafei,
If you can provide a patch for this within next week I'll accept. Otherwise going to have to punt till 2.5.