示例#1
0
文件: ops.go 项目: Rachine/imposm3
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
}
示例#2
0
func cGEOSIntersects(g1 *C.GEOSGeometry, g2 *C.GEOSGeometry) C.char {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSIntersects_r(handle, g1, g2)
}