MobilityDB 1.1

◆ stbox_in()

STBox * stbox_in ( const char *  str)

Return a spatiotemporal box from its Well-Known Text (WKT) representation.

Examples of input:

STBOX((1.0, 2.0), (3.0, 4.0)) -> only spatial
STBOX Z((1.0, 2.0, 3.0), (4.0, 5.0, 6.0)) -> only spatial
STBOX T([2001-01-01, 2001-01-02], ((1.0, 2.0), (3.0, 4.0))) -> spatiotemporal
STBOX ZT([2001-01-01, 2001-01-02], ((1.0, 2.0, 3.0), (4.0, 5.0, 6.0))) -> spatiotemporal
STBOX T([2001-01-01, 2001-01-02]) -> only temporal
SRID=xxxx;STBOX... (any of the above)
GEODSTBOX Z((1.0, 2.0, 3.0), (4.0, 5.0, 6.0)) -> only spatial
GEODSTBOX T([2001-01-01, 2001-01-02]) -> only temporal
GEODSTBOX ZT([2001-01-01, 2001-01-02], ((1.0, 2.0, 3.0), (4.0, 5.0, 6.0)) -> spatiotemporal
SRID=xxxx;GEODSTBOX... (any of the above)

where the commas are optional and the SRID is optional. If the SRID is not stated it is by default 0 for non geodetic boxes and 4326 for geodetic boxes