Opened 15 years ago

Closed 15 years ago

#264 closed task (fixed)

Discrete Hausdorff distances exposed in C API

Reported by: vincentp Owned by: pramsey
Priority: minor Milestone: 3.2.0
Component: C API Version: main
Severity: Feature Request Keywords: hausdorff distance capi patch
Cc:

Description

The new hausdorff distance operations should be exposed in CAPI so apps can get their hands on it.

Find a patch attached. There are two hausdorff distance methods in the C++ API : the normal one and another with densification. I made them available as :

GEOSHausdorffDistance and GEOSHausdorffDistanceDensify

I modified the capi unit test as well, but please review it as I am not sure of the way it works.

Find attached as well a sample c program calling the c api.

Please be indulgent with this first patch as I am not at ease yet with the GEOS library.

Attachments (2)

hausdorff_capi.diff (9.5 KB ) - added by vincentp 15 years ago.
patch against trunk to expose hausdorff methods in capi
hausdorff_capi_example.tbz (974 bytes ) - added by vincentp 15 years ago.
example of using geos capi hausdorff method

Download all attachments as: .zip

Change History (5)

by vincentp, 15 years ago

Attachment: hausdorff_capi.diff added

patch against trunk to expose hausdorff methods in capi

by vincentp, 15 years ago

Attachment: hausdorff_capi_example.tbz added

example of using geos capi hausdorff method

comment:1 by vincentp, 15 years ago

Owner: vincentp removed

Unassign, to be reviewed by someone (and commited hopefully).

comment:2 by pramsey, 15 years ago

Owner: set to pramsey
Status: newassigned

I will attempt to work on this, but for me #270 is a blocker right now.

comment:3 by pramsey, 15 years ago

Resolution: fixed
Status: assignedclosed

Committed to trunk at r2604, thanks!

Note: See TracTickets for help on using tickets.