GetSDOInfo()

Summary

Gets information about an Oracle Spatial table.

Syntax

sdo_info = GetSDOInfo(string service_name, string schema_name, string layer_name, string geom_field)

Argument Contents
service_name The name of the Oracle Spatial service
schema_name The name of the Oracle Spatial schema
layer_name The name of the Oracle Spatial table
geom_field The name of the geometry field

Returns

An array of information as follows:

Element Type Contents
1 Array An array of strings, one for each geometry type in the table; can be "Point", "Line", and "Area"
2 Array An array of four real numbers defining the bounding coordinates of the file: {x_min, y_min, x_max, y_max}

Example

// This call...
sdo_info = GetSDOInfo("myservice", "US Data", "US County", "Geometry")
// Returns this type of information...
// sdo_info = {
// {"Area"}, (geometry type)
// {-187.551936, 18.913826, ...}, (bounding rect)
// }

Error Codes

Error Type Meaning
Error Unknown database, or one of the parameters is invalid
NotFound There is no service with the specified name

See Also

Function Summary
AddSDOLayer() Adds a layer from an Oracle Spatial table to a map
AddSDOLayerToWorkspace() Adds a layer from an Oracle Spatial table to an application without it appearing in a map or dataview