[geos-devel] Calling MinimumDiameter from C API

jiajianying jiajianying at tigerknows.com
Thu Mar 3 03:15:50 EST 2011


On 2011年03月03日 15:48, Sandro Santilli wrote:
> 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.
>
> --strk;
>
>    ()   Free GIS&  Flash consultant/developer
>    /\   http://strk.keybit.net/services.html
>
>

I'm hesitating to use C++ api or extend C api. Not just minimum 
diameter, I will use other algorithms in future. C api seems too 
limited. But I'm also afraid of the maintenance problem in the future. 
Can you give me some advice?

Thanks

Justin



More information about the geos-devel mailing list