LABELS
gts
The LABELS
function consumes a GTS from the stack, extracts its labels, puts them in a map and pushes the map onto the stack.
LABELS is available since version 1.0.0.
See also
Signatures
Examples
NEWGTS 'test name' RENAME
{ 'label0' '42' 'label1' 'foo' } RELABEL
100 48.4313071 -4.4513631 25100 10 ADDVALUE
200 48.4313072 -4.4513632 25200 9 ADDVALUE
300 48.4313073 -4.4513633 25300 8 ADDVALUE
// Returns the map of labels
LABELS
Examples
A = NEWGTS()
RENAME(A, 'test name')
RELABEL(A, { 'label0':'42', 'label1': 'foo' })
ADDVALUE(A,100, 48.4313071, -4.4513631, 25100, 10)
ADDVALUE(A, 200, 48.4313072, -4.4513632, 25200, 9)
ADDVALUE(A, 300, 48.4313073, -4.4513633, 25300, 8)
// Returns the map of labels
return LABELS(A)