Using Bitmap Masks with GeoRaster Themes Reprojection of GeoRaster Themes

2-32 Oracle Fusion Middleware Users Guide for Oracle MapViewer ------------------------ -- Create a spatial index on the spatial extent. ------------------------ CREATE INDEX georaster_idx ON georaster_tablegeoraster.spatialextent INDEXTYPE IS MDSYS.SPATIAL_INDEX; -------------------------------------------------------- -- Create a predefined GeoRaster theme for MapViewer. -------------------------------------------------------- INSERT INTO user_sdo_themes VALUES GEORASTER_TABLE, GeoTiff image, GEORASTER_TABLE, GEORASTER, ?xml version=1.0 standalone=yes? styling_rules theme_type=georaster raster_table=RDT_GEOR raster_id=1 raster_bands=0,1,2 styling_rules ; commit;

2.3.4.2 Using Bitmap Masks with GeoRaster Themes

Effective with Oracle Spatial GeoRaster for Release 11.1, bitmap masks can be assigned to GeoRaster layers stored in the database. A bitmap mask is a special one-bit deep rectangular raster grid with each pixel having either the value of 0 or 1. It is used to define an irregularly shaped region inside another image. The 1-bits define the interior of the region, and the 0-bits define the exterior of the region. For more information about bitmap masks, see Oracle Spatial GeoRaster Developers Guide. To specify a bitmap mask with a GeoRaster theme, use the bitmap_masks element in the styling_rules element for the predefined theme, as shown in Example 2–17 . Example 2–17 Bitmap Mask in Predefined GeoRaster Theme styling_rules theme_type=georaster raster_id=1 raster_table=RDT_MASS_COLOR_MOSAIC bitmap_masks mask layers=1,2 zeromapping=0 onemapping=255 bitmap_masks styling_rules The bitmap_masks element contains one or more mask elements, each with a mask definition for a specific GeoRaster object. In Example 2–17 , a mask is defined for layers 1 and 2 of the GeoRaster object with the raster ID of 1 in the RDT_MASS_ COLOR_MOSAIC table. The mask element has the following attributes: ■ raster_id specifies the raster ID value of the GeoRaster object. ■ raster_table specifies the raster data table RDT. ■ layers specifies the layer numbers in the GeoRaster object to be used for the mask. ■ zeromapping specifies the transparency value to be applied during rendering on bitmap pixels with a value of 0 zero. The attribute value can be from 0 completely transparent to 255 completely opaque. MapViewer Concepts 2-33 ■ onemapping specifies the transparency value to be applied during rendering on bitmap pixels with a value of 1. The attribute value can be from 0 completely transparent to 255 completely opaque.

2.3.4.3 Reprojection of GeoRaster Themes

Effective with Oracle Spatial GeoRaster for Release 11.2.0.1, GeoRaster objects can be reprojected into a different SRID. It is recommended that you apply Oracle Database patch 10259201, to avoid black boundaries for adjacent reprojected GeoRaster objects when the objects are rendered in MapViewer. For more information, see My Oracle Support document ID 1272931.1, Black Lines After Reprojection Of Georaster Data Via Wms In Oracle Mapviewer. In MapViewer, a GeoRaster theme will be reprojected if its SRID is different from the map request SRID. The reprojection is just for rendering, with no changes made to the original GeoRaster object. For older databases without reprojection support, the GeoRaster object will not be reprojected. The reprojection modes available are BILINEAR used as default, NN, CUBIC, AVERAGE4, AVERAGE16. For more information about reprojection, see Oracle Spatial GeoRaster Developers Guide. To specify a reprojection mode with a GeoRaster theme, use the reproj_mode keyword in the styling_rules element for the predefined theme, as shown in Example 2–18 . Example 2–18 Reprojection Mode in Predefined GeoRaster Theme styling_rules theme_type=georaster reproj_mode=CUBIC styling_rules

2.3.5 Network Themes