[geos-devel] EnhancedPrecisionOp and C API

strk at refractions.net strk at refractions.net
Sat Mar 10 13:54:33 EST 2007

On Sat, Mar 10, 2007 at 06:00:43PM +0100, Mateusz Loskot wrote:
> strk at refractions.net wrote:
> > On Sat, Mar 10, 2007 at 04:35:36PM +0100, Mateusz Loskot wrote:
> >> Hi,
> >> 
> >> Are operations provided by EnhancedPrecisionOp exposed through the
> >> C API in some way? If not, is there any plan to add them to the C
> >> API?
> > 
> > All binary operations performed by the C API are Enhanced themself
> > using the BinaryOp templated class. It is more or less the same
> > heuristic used by EnhancedPrecisionOp.
> Hmm, are you saying these operations exposed by C API are automatically
> enhanced if EnhancedPrecisionOp is available?

IIRC EnhancedPrecisionOp uses CommonBitsRemover.
The BinaryOp tries with original precision first, then
tries with CommonBitsRemover then tries with SNapping
ie: it applies different heuristics struggling to give some
meaningful result.
Compare EnhancedPrecisionOp with BinaryOp


More information about the geos-devel mailing list