ArcGIS Server Banner

ST_M

ST_M

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback
Note: This topic was updated for 9.3.1.

Definition

ST_M takes an ST_Point as an input parameter and return its m (measure)-coordinate.

Syntax

Oracle

sde.st_m (g1 sde.st_point)

PostgreSQL

st_m (g1 st_point)

Return type

Number

Example

Oracle

CREATE TABLE m_test (id integer, geometry sde.st_point);

INSERT INTO m_test VALUES (
1,
sde.st_point (2, 3, 32, 5, 0)
);

INSERT INTO m_test VALUES (
2,
sde.st_point (4, 5, 20, 4, 0)
);

INSERT INTO m_test VALUES (
3,
sde.st_point (3, 8, 23, 7, 0)
);

SELECT id, sde.st_m (geometry) M_COORD
FROM m_test; 

        ID    M_COORD

         1          5
         2          4
         3          7

PostgreSQL

CREATE TABLE m_test (id integer, geometry st_point);

INSERT INTO m_test VALUES (
1,
st_point (2, 3, 32, 5, 0)
);

INSERT INTO m_test VALUES (
2,
st_point (4, 5, 20, 4, 0)
);

INSERT INTO m_test VALUES (
3,
st_point (3, 8, 23, 7, 0)
);

SELECT id, st_m (geometry) AS M_COORD
FROM m_test; 

        id    m_coord

         1          5
         2          4
         3          7

See Also

  • An overview of SQL functions used with ST_Geometry types