Professional Documents
Culture Documents
Sesion 8 Parte 2
Sesion 8 Parte 2
3 - 16
3 - 17
3 - 18
3 - 19
GET_GTYPE()Method
The GET_GTYPE()method returns the geometry type of a
geometry object, as specified in its SDO_GTYPE value.
SELECT g.geom.get_gtype() state_gtype
FROM
geod_states g
WHERE g.state = 'Delaware';
STATE_GTYPE
----------3
GET_DIMS()Method
Returns the number of dimensions of a geometry object, as
specified in its SDO_GTYPE value
SELECT s.geom.get_dims() state_dims
FROM geod_states s
WHERE s.state = 'Delaware';
STATE_DIMS
---------2
3 - 21
GET_WKT():
Returns the WKT format of the geometry
ST_CoordDim():
Returns the dimensionality of the geometry (same as the
GET_DIMS()method)
ST_IsValid():
Validates the geometry
Returns 1 if valid and 0 if not valid
3 - 22
A.GEOM.GET_WKT()
---------------POLYGON ((146.0 66.0, 148.0 66.0, 148.0 68.0, 146.0
68.0, 146.0 66.0))
3 - 23
Summary
In this lesson, you should have learned how to:
Construct collection geometries such as multipoints,
multilines, and multipolygons
Define an oriented point
Use SDO_GEOMETRY constructors and member methods
3 - 25
Practice 3: Overview
This practice covers the following topics:
Inserting collection geometries
Using SDO_GEOMETRY constructors and methods
3 - 26