Opened 6 months ago

Closed 3 months ago

Last modified 3 months ago

#3774 closed defect (fixed)

st_length on compound curve is on linearized geometry

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.1.9
Component: postgis Version: 2.3.x
Keywords: Cc: mjurce

Description

Reading the code I found that lwcompound_length, which is called by lwgeom_length, in turn called by ST_Length, is using a lineraized curve to compute the length.

This is an inconsistency with changes made in 2.1 from fixing #2463

I dunno how much back we want to go with fixing this last mile.

Change History (9)

comment:1 Changed 3 months ago by pramsey

Code in trunk at r15746, need a test, and then backport

Last edited 3 months ago by pramsey (previous) (diff)

comment:2 Changed 3 months ago by pramsey

In 15755:

Add regression test for trigonometric length calculation
for compoundcurve (references #3774)

comment:3 Changed 3 months ago by pramsey

In 15756:

Trig length calculation for compoundcurve in 2.3 branch (references #3774)

comment:4 Changed 3 months ago by pramsey

In 15757:

Trig length calculation for compound curve in 2.2 (references #3774)

comment:5 Changed 3 months ago by pramsey

In 15758:

Trig length calculation for compoundcurve (references #3774)

comment:6 Changed 3 months ago by pramsey

Resolution: fixed
Status: assignedclosed

comment:7 Changed 3 months ago by pramsey

In 15759:

Added news entry (references #3774)

comment:8 Changed 3 months ago by pramsey

In 15760:

Added NEWS entry (references #3774)

comment:9 Changed 3 months ago by pramsey

In 15761:

Added NEWS entry (references #3774)

Note: See TracTickets for help on using tickets.