pt_centroid
ptrb edited this page May 31, 2013
·
2 revisions
pt_centroid( PostTIME ) : PostTIME
Calculate the instant that is the middle of the argument's temporal bounding box.
SELECT pt_centroid('2013');
-- result
'CAL0012013-07-02T12:00:00.000Z'
SELECT pt_centroid('R21/2014-2-3/P1D/P2D');
-- result
'CAL0012014-03-07T00:00:00.000Z'
| CAL | TCS | ORD ---|---|---|--- TM_Instant | ✔ | ✔ | ✗ TM_Period | ✔ | ✔ |✗ MultiInstant | ✔ | ✔ |✗ MultiPeriod | ✔ | ✔ |✗ RegularMultiInstant | ✔ | ✔ | - RegularMultiPerid | ✔ | ✔ | - ✔ : Processable
✗ : Call will cause an error
∼ : Callable without error, but returns only a pseudo result