func (this *Geos) Contains(a, b *Geom) bool { result := C.GEOSContains_r(this.v, a.v, b.v) if result == 1 { return true } // result == 2 -> exception (already logged to console) return false }
func cGEOSContains(g1 *C.GEOSGeometry, g2 *C.GEOSGeometry) C.char { handlemu.Lock() defer handlemu.Unlock() return C.GEOSContains_r(handle, g1, g2) }