Opened 12 years ago

Closed 12 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)));

Change History (1)

comment:1 by pramsey, 12 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.