Opened 9 years ago
Last modified 8 years ago
#3539 closed defect
geography ST_Segmentize returning straight line instead of curved — at Version 3
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.3.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description (last modified by )
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 POSTGIS="2.2.2 r14797" GEOS="3.5.0-CAPI-1.9.0 r4090" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.0.2, released 2016/01/26" LIBXML="2.7.8" LIBJSON="0.12" RASTER
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 (4)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Priority: | medium → blocker |
by , 9 years ago
Attachment: | bad_geog_segmentize.png added |
---|
comment:2 by , 9 years ago
Version: | 2.2.x → trunk |
---|
comment:3 by , 9 years ago
Description: | modified (diff) |
---|