func (this *Geos) Intersection(a, b *Geom) *Geom { result := C.GEOSIntersection_r(this.v, a.v, b.v) if result == nil { return nil } geom := &Geom{result} return geom }
func cGEOSIntersection(g1 *C.GEOSGeometry, g2 *C.GEOSGeometry) *C.GEOSGeometry { handlemu.Lock() defer handlemu.Unlock() return C.GEOSIntersection_r(handle, g1, g2) }