ST_LineString

Definición

ST_LineString es una función del descriptor de acceso que construye una cadena de texto de línea de una representación de texto conocido.

NotaNota:

When creating spatial tables that will be used with ArcGIS, it is best to create the column as ST_Geometry rather than specifying an ST_Geometry subtype, such as ST_LineString.

Sintaxis

Oracle

sde.st_linestring (wkt clob, srid integer)

PostgreSQL

sde.st_linestring (wkt, srid integer) sde.st_linestring (esri_shape bytea, srid integer)

Tipo de devolución

ST_LineString

Ejemplo

Oracle

CREATE TABLE lines_test (id smallint, geometry sde.st_geometry);   INSERT INTO LINES_TEST (id, geometry) VALUES ( 1901, sde.st_linestring ('linestring (750 150, 750 750)', 0) );  SELECT id, sde.st_astext (geometry) Linestring FROM   LINES_TEST;    ID  LINESTRING  1901  LINESTRING  (750.00000000 150.00000000,  750.00000000 750.00000000)

PostgreSQL

CREATE TABLE lines_test (id integer, geometry st_geometry);   INSERT INTO lines_test (id, geometry) VALUES ( 1901, sde.st_linestring ('linestring (750 150, 750 750)', 0) );  SELECT id, sde.st_astext (geometry) AS Linestring FROM   lines_test;    id  linestring  1901  LINESTRING  (750 150, 750 750)

3/6/2012