[geos-devel] Calling MinimumDiameter from C API

Sandro Santilli strk at keybit.net
Thu Mar 3 02:48:56 EST 2011

On Thu, Mar 03, 2011 at 11:52:26AM +0800, jiajianying wrote:
> I find
> extern  int  GEOS_DLL GEOSLength(const  GEOSGeometry* g1,double  *length);
> actually calculates the minimum diameter. However, what is the 
> complexity of this computation in GEOS?

GEOSLength returns length for linear geometries, and perimeter for areal
geometries. Minimum diameter isn't exposed in the C API.
Patches are welcome.


  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html

More information about the geos-devel mailing list