Opened 4 years ago

Closed 4 years ago

#1058 closed defect (fixed)

GEOSProjectNormalized does not return -1 on exception

Reported by: jorisvandenbossche Owned by: strk
Priority: major Milestone: 3.8.2
Component: C API Version: 3.8.0
Severity: Unassigned Keywords:
Cc:

Description

Because the distance returned by GEOSProject gets normalized (divided by the length of the linestring), the -1 exception value also gets mangled.

https://github.com/libgeos/geos/blob/4f099194d449b987cf9349f65731fce89891152f/capi/geos_ts_c.cpp#L3104

(working on a fix)

Change History (2)

comment:2 by strk, 4 years ago

Milestone: 3.8.2
Resolution: fixed
Status: newclosed

Thanks, merged both in master (c06450e) and in 3.8 branch (07611d4)

Note: See TracTickets for help on using tickets.