ST_Intersection Method | Geospatial Data Types | Teradata Vantage - 17.10 - ST_Intersection Method - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1181-171K
Language
English (United States)

Returns an ST_Geometry type where the value represents the point set intersection of two ST_Geometry values.

Valid Data Types

All ST_Geometry types, including GeoSequence, but not the ST_GeomCollection type.

This method can be called on 3D geometries (those that include z coordinates). However, the z coordinate is ignored in method calculations. Consequently, any z coordinates returned by this method should be ignored. Teradata recommends using the Make_2D method to strip out the z coordinates of the return value.

Result Type

The type that the ST_Geometry return value represents is one from the possible set of types in the following table, depending on the argument types.

a ∩ b Ø ST_Point ST_LineString, GeoSequence ST_Polygon ST_MultiPoint ST_MultiLineString ST_MultiPolygon
Ø Ø Ø Ø Ø Ø Ø Ø
ST_Point Ø R09 R09 R09 R09 R09 R09
ST_LineString, GeoSequence Ø R09 R11 R11 R13 R11 R11
ST_Polygon Ø R09 R11 R12 R13 R11 R12
ST_MultiPoint Ø R09 R13 R13 R13 R13 R13
ST_MultiLineString Ø R09 R11 R11 R13 R11 R11
ST_MultiPolygon Ø R09 R11 R12 R13 R11 R12
Where:
  • R09 = Ø, ST_Point
  • R11 = Ø, ST_Point, ST_LineString, ST_MultiPoint, ST_MultiLineString
  • R12 = Ø, ST_Point, ST_LineString, ST_Polygon, ST_MultiPoint, ST_MultiLineString, ST_MultiPolygon
  • R13 = Ø, ST_Point, ST_MultiPoint

Vantage converts GeoSequence types that are involved in the ST_Intersection method to ST_LineString values. Therefore, ST_Intersection never returns a GeoSequence type.