Opened 9 years ago
Closed 9 years ago
#3431 closed defect (worksforme)
Problems buffering the output of ST_Segmentize
Reported by: | johnjcz | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.2.2 |
Component: | postgis | Version: | 2.1.x |
Keywords: | Cc: |
Description
I am running into an issue where I cannot buffer the output of ST_Segmentize(geography)
. For example, this query…
SELECT ST_Buffer(ST_Segmentize('LINESTRING(-88 45,-90 43)'::geography, 1000), 1);
Results in this error:
ERROR: transform: couldn't project point (-88 45 0): latitude or longitude exceeded limits (-14) CONTEXT: SQL function "st_buffer" statement 1 Query failed PostgreSQL said: transform: couldn't project point (-88 45 0): latitude or longitude exceeded limits (-14)
However, if you explicitly case the output of ST_Segmentize to a geometry, and then back to a geography, it works as expected:
SELECT ST_Buffer((ST_Segmentize('LINESTRING(-88 45,-90 43)'::geography, 1000)::geometry)::geography, 1);
Also, interestingly the first query works as expected when the first longitude ⇐ -115:
SELECT ST_Buffer(ST_Segmentize('LINESTRING(-120 45,-90 43)'::geography, 1000), 1);
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Going to close this out since I can't replicated with latest micro.
Note:
See TracTickets
for help on using tickets.
johnjcz, I'm not getting an error and I'm running:
Can you run:
and give us the output for that. There was a bug fix done on ST_Segmentize #3355 for 2.2.1 release which may have fixed this issue and explains why I'm not getting it.