Opened 3 years ago

Last modified 3 years ago

#3279 new defect

ST_OffsetCurve return wrong result

Reported by: MaxS Owned by: pramsey
Priority: low Milestone: PostGIS GEOS
Component: postgis Version: 2.1.x
Keywords: st_offsetcurve Cc:

Description

Using st_offsetcurve with specific geometry returns wrong result. It should be single linestring, but returns multilinestring. Geometry valid without repeated points. Tested on 2.1.8 and 2.1.3

Code highlighting:

select st_offsetcurve(
      '010200000012000000F6285C8FC2F5D83F7C14AE47E17A94BF08C74D2293C2DD3F7C14AE47E17A94BF7D2DE0BC9FDEDD3FF8E99A9A6ABC94BF52178CBF78F9DD3F3231DD24068195BF7B467E6F1A13DE3FED0F5839B4C896BFC4DFF0C8842BDE3F08816ABC749398BF27C5BD4DD18BDF3FE0272224E970ABBF8470A08C28CCDF3F851754A8F0FAA9BF6889E29BD28DDE3F9A796ABC749398BF3E3A7C44937CDE3F9E115839B4C896BF0EE8AE9A7278DE3FDB2FDD24068195BFBF29E8997081DE3F37F0EFE26ABC94BF4890BA7D8997DE3F7C14AE47E17A94BFFE2A8716D9CEE33F7C14AE47E17A94BF022B8716D9CEE33FF951B81E85EBB1BF7D3F355EBA49E43FF951B81E85EBB1BF7B3F355EBA49E43F7814AE47E17A94BFCDCCCCCCCCCCE43F7814AE47E17A94BF'::geometry,
      -0.002,
      'join=mitre')

Attachments (2)

ow.png (2.1 KB) - added by MaxS 3 years ago.
source line and offset result
qw2.png (1.2 KB) - added by MaxS 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by MaxS

Attachment: ow.png added

source line and offset result

comment:1 Changed 3 years ago by MaxS

Similar problem with another geom (ow2.png):

select st_offsetcurve('0102000020E610000004000000F0A61ECD01B645403953B99565E34540C797CF2601B6454040C0279565E345401FE25F70FAB54540DDED498465E34540566E5741F9B545403CC27B8265E34540'::geometry,0.00001)

Changed 3 years ago by MaxS

Attachment: qw2.png added

comment:2 Changed 3 years ago by pramsey

Milestone: PostGIS 2.1.9PostGIS GEOS

Dropping the mitre join seems to change things. This is actually going to be a bug w/ GEOS, so do file a ticket there please, https://trac.osgeo.org/geos/

Note: See TracTickets for help on using tickets.