Opened 3 years ago

Last modified 20 months ago

#1114 new defect

CAPI STRtree functions swallow errors

Reported by: dbaston Owned by: geos-devel@…
Priority: major Milestone: 3.11.0
Component: Default Version: main
Severity: Unassigned Keywords:
Cc:

Description

GEOSSTRtree_insert, GEOSTRtree_query, and GEOSSTRtree_iterate all return void instead of an integer error code. If an exception is thrown in these functions it cannot be detected by calling code.

Change History (3)

comment:1 by pramsey, 3 years ago

All true. Any preferences for new function names?

comment:2 by robe, 3 years ago

Milestone: 3.10.03.11.0

Retargeting in prep for GEOS 3.10.0 release

comment:3 by dbaston, 20 months ago

Changing these to return int shouldn't break anything, should it? GDAL recently mad a similar change: https://github.com/OSGeo/gdal/pull/6303

Note: See TracTickets for help on using tickets.