Returns the geometry specified by the WKT (Wll-Known Text) representation.
1 geo.fromText
<geo.fromText>
<type> *
<type /> *
</type>
<coords> *
<coords /> *
</coords>
<srid> *
<srid /> *
</srid>
</geo.fromText>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etype | Type of geometry. Types of objects POINT, LINESTRING, POLYGON... | ||||
Etype | string | ||||
Ecoords | Coordinates of the geometry, separated by ",". | ||||
Ecoords | string | ||||
Esrid | SRID of the geometry. | ||||
Esrid | integer |
Example
Copy
<select> <columns> <geo.fromText type='LINESTRING'> <coords>1313 242, 0 0</coords> <srid>4326</srid> </geo.fromText>, <geo.fromText type='POINT'> <coords>1 4</coords> <srid>4326</srid> </geo.fromText>, </columns> <from table='cdataemp' /> </select>