コード例 #1
0
ファイル: geos.go プロジェクト: Kotaimen/imposm3
func (this *Geos) NumGeoms(geom *Geom) int32 {
	count := int32(C.GEOSGetNumGeometries_r(this.v, geom.v))
	return count
}
コード例 #2
0
ファイル: cwrappers.go プロジェクト: helmi03/gogeos
func cGEOSGetNumGeometries(g *C.GEOSGeometry) C.int {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSGetNumGeometries_r(handle, g)
}