コード例 #1
0
ファイル: geos.go プロジェクト: Kotaimen/imposm3
func (this *Geos) IsValid(geom *Geom) bool {
	if C.GEOSisValid_r(this.v, geom.v) == 1 {
		return true
	}
	return false
}
コード例 #2
0
ファイル: cwrappers.go プロジェクト: helmi03/gogeos
func cGEOSisValid(g1 *C.GEOSGeometry) C.char {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSisValid_r(handle, g1)
}