Ticket #1348 (closed defect: invalid)

Opened 6 months ago

Last modified 4 months ago

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

Changed 4 months ago by pramsey

  • status changed from new to closed
  • resolution set to invalid

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.