Oracle - Introduction To Oraclespatial
Oracle - Introduction To Oraclespatial
Oracle Spatial
EHSAN HAMZEI
DECEMBER, 2016
Oracle Spatial??
Example:
SDO_ELEM_INFO
SDO_ELEM_INFO
SDO_ELEM_INFO
SDO_ORDINATE
Spatial operators:
Just as you can specify relational operators in a SQL
statement, such as
“< (less than), > (greater than), or = (equal to), and
so on”, you can likewise use a spatial operator to search
the location (SDO_GEOMETRY) columns of a table for
proximity with respect to a query location
Need Spatial Index First !!!
Spatial Index!
USER_SDO_GEOM_METADATA
INSERTION EXAMPLE:
REVIEW
GENERAL SYNTAX:
EXAMPLE:
SPATIAL OPERATORS
SDO_WITHIN_DISTANCE
Operator
Concept:
Syntax:
Example:
SDO_NN Operator
Concept:
Syntax:
Example:
SDO_NN Operator (more
examples)
SDO_RELATE
CONCEPT:
SYNTAX:
EXAMPLE:
SDO_RELATE
CONCEPT:
SDO_RELATE
CONCEPT:
SDO_RELATE
Syntax:
Example:
SDO_RELATE
More Example:
Geometry Processing
Functions
No Need For Spatial Index!
more detailed analyses
can appear in the SELECT list (as well as the WHERE
clause)
GP Function:
1-Buffering Function
2- Relationship Function
3- Geometry Combination Function
4- Geometric Analysis Function
5- Aggregate Function
Buffering Function
Concept
Buffering Function
Syntax:
Example:
Relationship Analysis
Functions
SDO_DISTANCE
Concept:
Relationship Analysis
Functions
SDO_DISTANCE
Syntax:
Example:
Relationship Analysis
Functions
Relate
Syntax
Relationship Analysis
Functions
Relate Example:
Geometry Combination
Functions
Concept
Geometry Combination
Functions
Syntax:
Examples:
Geometry Combination
Functions
Geometric Analysis
Functions
Numeric
Area
Length
Volume
Geometric Analysis
Functions
Geometric
MBR
Convex Hall
Centroid
Aggregate Functions
AGGR_MBR
AGGR_CONVEXHULL
AGR_UNION
Aggregate Functions
REVIEW