示例#1
0
文件: geos.go 项目: Kotaimen/imposm3
func (this *Geos) Type(geom *Geom) string {
	geomType := C.GEOSGeomType_r(this.v, geom.v)
	if geomType == nil {
		return "Unknown"
	}
	defer C.free(unsafe.Pointer(geomType))
	return C.GoString(geomType)
}
示例#2
0
func cGEOSGeomType(g1 *C.GEOSGeometry) *C.char {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSGeomType_r(handle, g1)
}