#2463 closed enhancement (fixed)
st_length on curve is on linearized geom
Reported by: | mjurce | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.1 |
Component: | postgis | Version: | 2.0.x |
Keywords: | Cc: |
Description
Executing: select st_length(st_geomFromtext('CIRCULARSTRING(0 1000,707.1067812 707.1067812,1000 0)'));
st_length
1570.63862548611
Gives same result as: select st_length(st_curvetoline(st_geomFromtext('CIRCULARSTRING(0 1000,707.1067812 707.1067812,1000 0)')));
st_length
1570.63862548611
The function should return the arc length and not the approximated linestring length.
Change History (11)
comment:1 by , 11 years ago
Type: | defect → enhancement |
---|
comment:2 by , 11 years ago
should this be 2.0.4 or 2.1.1 instead. If it requires a lot of code for 2.0.4 (which doesn't have your new fangled code), we probably shouldn't mess with it in 2.0.4
comment:3 by , 11 years ago
Milestone: | PostGIS 2.0.4 → PostGIS 2.1.1 |
---|
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 7 years ago
I noticed compoundcurve is still using the linearized geom for length, should I reopen this ?
comment:10 by , 7 years ago
This being from 4 years ago I guess it's better to file another ticket. Would you do verify my finding, mjurce, and open the new ticket ? What I noticed was in the C code, didn't try to expose it at the SQL level...
There's lots of stuff in the arc support that doesn't work directly on arcs. Heck, distance didn't work directly on arcs until 2.1. So upgrades for full arc support are enhancements. I'm a little surprised that length isn't implemented, and will verify if that is the case, since it's so easy to do.