NOTE: Application programs are responsible for properly inserting, updating, and fetching the contents of the SDO_GEORASTER type using Oracle's object-relational structured query language (SQL) interface. Applications are also responsible for ensuring that the content of each raster adheres to the rules defined in the Oracle documentation.
The settings for ArcSDE geodatabase storage are defined in the DBTUNE table; the RASTER_STORAGE parameter controls the storage of raster data. To create a table in an ArcSDE geodatabase that contains an SDO_GEORASTER column and, therefore, stores raster as SDO_GEORASTER, you must use a configuration keyword that contains a RASTER_STORAGE parameter set to SDO_GEORASTER when you create the raster dataset or catalog.
When you first install the ArcSDE 9.3 component, the default setting for RASTER_STORAGE in the DBTUNE table is BLOB and the default GEOMETRY_STORAGE is ST_GEOMETRY. Below is a partial list of the DEFAULTS keyword parameters:
##DEFAULTS
GEOMETRY_STORAGE "ST_GEOMETRY"
ATTRIBUTE_BINARY "BLOB"
RASTER_STORAGE "BLOB"
If you plan to store the majority of your raster data in SDO_GEORASTER format, you need to alter the RASTER_STORAGE parameter of the DEFAULTS keyword. In addition, you cannot use a GEOMETRY_STORAGE type of ST_GEOMETRY or SDO_GEOMETRY if you are using SDO_GEORASTER for your raster storage; therefore, you must change your GEOMETRY_STORAGE to either SDELOB or SDEBINARY and set RASTER_STORAGE to SDO_GEORASTER in your DEFAULTS configuration keyword to make SDO_GEORASTER the default storage for your raster data.
NOTE: It is recommended you not use SDEBINARY geometry storage, which stores the data as LONG RAW, for new data because Oracle will be deprecating support for LONG RAW at its 11g release.
In the following example, the DEFAULTS keyword is altered to create vector data using SDELOB storage and raster data using SDO_GEORASTER storage.
##DEFAULTS
GEOMETRY_STORAGE "SDELOB"
ATTRIBUTE_BINARY "BLOB"
RASTER_STORAGE "SDO_GEORASTER"
Following the change, ArcSDE creates raster catalogs and raster datasets with SDO_GEORASTER columns by default.
Although there can only be one default raster schema (one setting for RASTER_STORAGE under the DEFAULTS configuration keyword), you can use the existing SDO_GEOMETRY configuration keyword to specify SDO_GEORASTER for RASTER_STORAGE when you create a raster catalog or dataset. Do this if you only need to store a minority of your raster data in SDO_GEORASTER format.
Before the SDO_GEORASTER keyword can be used, you need to edit the table space information for the RDT_STORAGE and RDT_INDEX_COMPOSITE parameters. By default, the table space information is not included with the SDO_GEORASTER keyword. In the dbtune.sde file, the SDO_GEORASTER keyword appears as follows:
##SDO_GEORASTER
GEOMETRY_STORAGE "SDELOB"
RASTER_STORAGE "SDO_GEORASTER"
ATTRIBUTE_BINARY "BLOB"
RDT_STORAGE "PCTFREE 0 INITRANS 4"
# TABLESPACE <RDT Table tablespace name>
RDT_INDEX_COMPOSITE "PCTFREE 0 INITRANS 4
# TABLESPACE <RDT Composite index tablespace name>
STORAGE ( INITIAL 409600) NOLOGGING"
UI_TEXT "User Interface text description for SDO_GEORASTER"
COMMENT "Any general comment for SDO_GEORASTER keyword"
END
To change the information in the DBTUNE table for this keyword, use the sdedbtune administration command. You can find details on how to use this command in the ArcSDE Administration Command Reference, installed in the SDEHOME directory.
Or you can create a new configuration keyword to use to store raster datasets as SDO_GEORASTER; for example:
##GEORASTER
RASTER_STORAGE "SDO_GEORASTER"
SDO_COMMIT_INTERVAL 1000
UI_TEXT "Use to create raster catalogs and datasets with GEORASTER storage"
END
Notice that the preceding examples do not have a complete set of storage parameters associated with them. That is because any parameters not specified in a keyword are picked up from the DEFAULTS keyword. That means there is no need to include parameters that have the same values as those specified under the DEFAULTS keyword. In the examples above, parameters such as BND_STORAGE and AUX_STORAGE aren't included; they are read from the DEFAULTS keyword. For the new configuration keyword example (GEORASTER), this means the GEOMETRY_STORAGE parameter is also being read from DEFAULTS. If you do not include the GEOMETRY_STORAGE parameter in your custom SDO_GEORASTER configuration keyword, be sure the GEOMETRY_STORAGE under DEFAULTS is not set to SDO_GEOMETRY or ST_GEOMETRY.
For more information on geometry storage keywords, see
Oracle DBTUNE configuration parameters. For general information on the DBTUNE table or configuration keywords, see
The dbtune file and the DBTUNE table or
DBTUNE configuration keywords, respectively.
You can use the ArcSDE administration command sderaster –o add to register a table containing an SDO_GEORASTER column that was created by a third-party application. For example:
sderaster –o add –l landforms,raster –u gis –p gis
For a table to be added to ArcSDE, it must meet the following criteria:
- It must be owned by the user adding the table.
- It must have a single SDO_GEORASTER column.
- It must have a valid GeoRaster Data Manipulation Language (DML) trigger created with the sdo_geor_utl.createDMLTrigger stored procedures.
- It must have a valid SDO_GEORASTER data table.
- It cannot contain any SDO_GEOMETRY or ST_GEOMETRY columns.
The following is a list of limits to keep in mind when storing raster data in your ArcSDE geodatabase as SDO_GEORASTER.
- Oracle does not support piecewise updates for SDO_GEORASTER. Therefore, it is not possible to mosaic image files to an existing raster dataset that is stored as an SDO_GEORASTER.
- Pyramids cannot be constructed during the insertion of data. After inserting image data into an SDO_GEORASTER, a separate update step is required to construct the pyramid. For this reason, you should always uncheck the Build pyramid check box on the dialog box of any of the ArcGIS geoprocessing tools that create raster datasets or raster catalogs.
- The image data cannot be currently stored in a compressed format in SDO_GEORASTER if you are using Oracle 10g Release 1 (R1). Oracle added image compression to the SDO_GEORASTER type in Oracle 10g Release 2 (R2). If you are using Oracle 10g R1, you should always set the compression type to NONE on the dialog box of any ArcGIS geoprocessing tools when you use them to create raster datasets or raster catalogs.
- Oracle implements SDO_GEORASTER as a band-integrated architecture. Therefore, it is not possible to add and delete individual bands of a raster dataset.
- ArcSDE and ArcGIS do not support multiple raster columns in a table. Tables with multiple SDO_GEORASTER columns should be accessed through views that contain only one SDO_GEORASTER column. Use the sdetable create_view operation to create these views of the table. See the ArcSDE Administration Command Reference for details on using the sdetable command.
- When using SDO_GEORASTER storage in an ArcSDE geodatabase, there is no support for a nodata bitmask. Therefore, it is not possible to build a pyramid on nonsquare regular data.