Opened 15 years ago

Closed 15 years ago

#278 closed enhancement (fixed)

Add STRtree support to the C API

Reported by: sderle Owned by: pramsey
Priority: major Milestone: 3.2.0
Component: C API Version: main
Severity: Unassigned Keywords: STRtree
Cc:

Description

Attached is a patch adding support for the STRtree class to the C API.

This patch also wraps the STRtree::iterate method introduced in #277.

Attachments (2)

capi-additions.patch (12.9 KB ) - added by sderle 15 years ago.
capi-additions-2.patch (13.2 KB ) - added by sderle 15 years ago.
revised patch to move CAPI_ItemVisitor outside the extern "C" block

Download all attachments as: .zip

Change History (6)

by sderle, 15 years ago

Attachment: capi-additions.patch added

comment:1 by sderle, 15 years ago

Type: defectenhancement

comment:2 by pramsey, 15 years ago

Declaring a class (class CAPI_ItemVisitor) in the midst of the 'extern "C"' block is worrisome, but I'm not an expert in C++ things.

Also, ensure you are really really happy with the API, because we don't do API changes in patch level releases, and the time between minor releases is pretty long (the 3.1/3.2 cycle is probably an anomaly).

comment:3 by sderle, 15 years ago

The API additions are quite simple, and I'm totally happy with them.

I've attached a new patch that moves the CAPI_Visitor declaration to the top of geos_ts_c.cpp, outside of the extern "C" block.

by sderle, 15 years ago

Attachment: capi-additions-2.patch added

revised patch to move CAPI_ItemVisitor outside the extern "C" block

comment:4 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

Committed to trunk at r2612

Note: See TracTickets for help on using tickets.