Transform a temporal network point to another subtype
tnpointInst(tnpoint) → tnpointInst
tnpointSeq(tnpoint) → tnpointSeq
tnpointSeqSet(tnpoint) → tnpointSeqSet
SELECT tnpointSeq(tnpoint 'NPoint(1, 0.5)@2001-01-01', 'discrete'); -- {NPoint(1,0.5)@2001-01-01} SELECT tnpointSeq(tnpoint 'NPoint(1, 0.5)@2001-01-01'); -- [NPoint(1,0.5)@2001-01-01] SELECT tnpointSeqSet(tnpoint 'NPoint(1, 0.5)@2001-01-01'); -- {[NPoint(1,0.5)@2001-01-01]}
Transform a temporal network point to another interpolation
setInterp(tnpoint, interp) → tnpoint
SELECT setInterp(tnpoint 'NPoint(1,0.2)@2001-01-01','linear'); -- [NPoint(1,0.2)@2001-01-01] SELECT setInterp(tnpoint '{[NPoint(1,0.1)@2001-01-01], [NPoint(1,0.2)@2001-01-02]}', 'discrete'); -- {NPoint(1,0.1)@2001-01-01, NPoint(1,0.2)@2001-01-02}
Round the fraction of the temporal network point to the number of decimal places
round(tnpoint,integer) → tnpoint
SELECT round(tnpoint '{[NPoint(1,0.123456789)@2001-01-01, NPoint(1,0.5)@2001-01-02)}', 6); -- {[NPoint(1,0.123457)@2001-01-01 00:00:00+01, NPoint(1,0.5)@2001-01-02 00:00:00+01)}