Opened 13 years ago
Closed 13 years ago
#1348 closed defect (invalid)
st_curvetoline not working when casting from geography type
Reported by: | bcrosby | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | 1.5.X |
Keywords: | Cc: |
Description
The following returns a polygon instead of a curvedpolygon:
select st_astext(st_linetocurve(st_buffer('POINT(-78.8994666666666667 43.9228166666666667)'::geography,5000)::geometry));
However, the following returns valid curved geometry:
select st_astext(st_linetocurve(st_buffer('POINT(-78.8994666666666667 43.9228166666666667)'::geometry,5000)));
Note:
See TracTickets
for help on using tickets.
Buffer(geography) returns a true circular buffer on the sphere. When you convert it into geography it's actually oblate, squished, and the there is no arc for the routine to find.