Beispiel #1
0
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}
}
Beispiel #2
0
func cGEOSTopologyPreserveSimplify(g1 *C.GEOSGeometry, tolerance C.double) *C.GEOSGeometry {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSTopologyPreserveSimplify_r(handle, g1, tolerance)
}