SnowConvert AI - Oracle - Spatial Types¶
Description¶
Oracle Spatial and Graph is designed to make spatial data management easier and more natural to users of location-enabled applications, geographic information system (GIS) applications, and geoimaging applications. (Oracle SQL Language Reference Spatial Types)
SDO_ GEOMETRY¶
Note
Some parts in the output code are omitted for clarity reasons.
Description¶
The geometric description of a spatial object is stored in a single row, in a single column of object type SDO_GEOMETRY in a user-defined table. Any table that has a column of type SDO_GEOMETRY must have another column, or set of columns, that defines a unique primary key for that table. (Oracle SQL Language Reference SDO_GEOMETRY Data Type)
Definition of SDO_GEOMETRY object:
The SDO_GEOMETRY object is not supported in Snowflake. A workaround for this data type is to use Snowflake GEOGRAPHY, however that transformation is currently not supported by SnowConvert.
Sample Source Patterns¶
SDO_ GEOMETRY in Create Table¶
Oracle¶
Snowflake¶
Inserting data in SDO_ GEOMETRY Table¶
Oracle¶
Snowflake¶
Migration using the GEOGRAPHY data type¶
Oracle¶
Result¶
| GEOMETRY_COLUMN | | -------------------------------------------------------- | ----------------------------- | | [2001, null, [-79, 37, null], [NULL], [NULL]] | –(POINT(-79,37)) | | [2002, null, [null, null, null], [1,2,1], [1,3,1,5,2,7]] | –(LINESTRING(1 3, 1 5, 2 7)) |
Snowflake¶
Result¶
| GEOMETRY_COLUMN |
|---|
| POINT(-79 37) |
| LINESTRING(1 3,1 5,2 7) |
Related EWIs¶
- SSC-EWI-0073: Pending Functional Equivalence Review.
SDO_ GEORASTER¶
Note
Some parts in the output code are omitted for clarity reasons.
Description¶
In the GeoRaster object-relational model, a raster grid or image object is stored in a single row, in a single column of object type
SDO_GEORASTERin a user-defined table. (Oracle SQL Language Reference SDO_GEORASTER Data Type).
Definition of SDO_GEORASTER object:
Note
SDO_GEORASTER is disabled by default, to enable its usage, follow the steps described in this section of Oracle documentation.
The SDO_GEORASTER object is not supported in Snowflake.
Sample Source Patterns¶
SDO_ GEORASTER in Create Table¶
Oracle¶
Snowflake¶
Inserting data in SDO_ GEORASTER Table¶
Oracle¶
Snowflake¶
Known Issues¶
1. SDO_GEORASTER Data Type not transformed
SDO_GEORASTER Data Type is not being transformed by SnowConvert.
Related EWIs¶
- SSC-EWI-0028: Type not supported.
- SSC-EWI-OR0076: Built In Package Not Supported.
SDO_ TOPO_ GEOMETRY¶
Note
Some parts in the output code are omitted for clarity reasons.
Description¶
This type describes a topology geometry, which is stored in a single row, in a single column of object type
SDO_TOPO_GEOMETRYin a user-defined table. (Oracle SQL Language Reference SDO_TOPO_GEOMETRY Data Type).
Definition of SDO_TOPO_GEOMETRY object:
The SDO_TOPO_GEOMETRY object is not supported in Snowflake.
Sample Source Patterns¶
SDO_ TOPO_ GEOMETRY in Create Table¶
Oracle¶
Snowflake¶
Inserting data in SDO_ TOPO_ GEOMETRY Table¶
Oracle¶
Snowflake¶
Known Issues¶
1. SDO_TOPO_GEOMETRY Data Type not transformed
SDO_TOPO_GEOMETRY Data Type is not being transformed by SnowConvert.
Related EWIs¶
- SSC-EWI-0028: Type not supported.
- SSC-EWI-0073: Pending functional equivalence review.