Ticket #264 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

Discrete Hausdorff distances exposed in C API

Reported by: vincentp Owned by: pramsey
Priority: minor Milestone: 3.2.0
Component: C API Version: svn-trunk
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

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

Change History

Changed 3 years ago by vincentp

patch against trunk to expose hausdorff methods in capi

Changed 3 years ago by vincentp

example of using geos capi hausdorff method

Changed 3 years ago by vincentp

  • owner vincentp deleted

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

Changed 3 years ago by pramsey

  • owner set to pramsey
  • status changed from new to assigned

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

Changed 3 years ago by pramsey

  • status changed from assigned to closed
  • resolution set to fixed

Committed to trunk at r2604, thanks!

Note: See TracTickets for help on using tickets.