func (this *Geos) SimplifyPreserveTopology(geom *Geom, tolerance float64) *Geom { simplified := C.GEOSTopologyPreserveSimplify_r(this.v, geom.v, C.double(tolerance)) if simplified == nil { return nil } return &Geom{simplified} }
func cGEOSTopologyPreserveSimplify(g1 *C.GEOSGeometry, tolerance C.double) *C.GEOSGeometry { handlemu.Lock() defer handlemu.Unlock() return C.GEOSTopologyPreserveSimplify_r(handle, g1, tolerance) }