Opened 9 years ago

Last modified 8 years ago

#3539 closed defect

geography ST_Segmentize returning straight line instead of curved — at Initial Version

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS 2.3.0
Component: postgis Version: master
Keywords: Cc:

Description

This appears to be a new regression which I am not seeing in PostGIS 2.2.2 install.

When I tried this query in PostGIS 2.3.0 I'm getting a straight line instead of a curve.

SELECT ST_AsText(ST_Segmentize(
ST_MakeLine(ST_Point(-73.8893, 40.6975), ST_POINT(72.8667,19.1583))::geography, 10000000)::geometry);

In 2.2.2 I get this which gets curvier as I reduce the segmentize meters

LINESTRING(-73.8893 40.6975,19.6313806536934 62.1086776667385,72.8667 19.1583)

In POSTGIS="2.3.0dev r14864" GEOS="3.5.0-CAPI-1.9.0 r4088" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.1.0dev, released 2015/99/99" LIBXML="2.7.8" LIBJSON="0.12" RASTER I get

LINESTRING(-73.8893 40.6975,-0.511300000000007 29.9279,72.8667 19.1583)

Look at snapshot for perspective.

Change History (0)

Note: See TracTickets for help on using tickets.