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) }
func cGEOSGeomType(g1 *C.GEOSGeometry) *C.char { handlemu.Lock() defer handlemu.Unlock() return C.GEOSGeomType_r(handle, g1) }