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