Example #1
0
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
}
Example #2
0
func cGEOSContains(g1 *C.GEOSGeometry, g2 *C.GEOSGeometry) C.char {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSContains_r(handle, g1, g2)
}