About Custom Map Regions Visualization
Oracle Spatial Studio allows you to create custom map regions on map layers that support polygon type geometry.
You can create a new map region by selecting multiple polygon shapes and combining them with a new key-value. You can then append or insert this new map region with the new key-value into a target dataset containing all of your other custom map regions, or save it as a new dataset.
These newly created custom shapes are persisted on the underlying database table of the target dataset, and therefore can be used for data visualization or reporting just like any other dataset.
The following are the main characteristics for this feature support:
-
The source dataset, that is the dataset whose polygon shapes you will be selecting and then combining into a custom map region, must always be based on an Oracle Database table.
Datasets from Oracle views and Studio’s Analyses are not currently supported.
-
The new regions may or may not be contiguous.
-
The target dataset, that is the dataset on which you want to store the newly created custom map regions, will store them in its geo-reference system.
-
The target dataset can be a new dataset or an existing dataset in the current project. For a new dataset, you need to specify the connection, the table name, the dataset name, the key-column name of the table, and provide the key value for the new region.
-
Only the key value and new geometry value are inserted into the newly created target table. For inserting the new region into an existing dataset, you may provide values for all of the dataset’s attributes, or only the required ones.
-
An existing targets dataset must meet the following requirements:
-
The geometry metadata information for the target dataset must be available in the SDO_GEOM_METADATA view.
-
A spatial index must exist on the geometry column. Note that if a spatial index is not created on the geometry column, then the target data layer cannot be dragged on to the map visualization canvas.
Note: Prior to Release 22.3, these target dataset requirements were implemented using SQL statements. However, from Release 22.3 onwards, if a new dataset is created to store the regions, then Spatial Studio automatically takes care of updating the geometry metadata and creating a spatial index.
-
-
For a new target dataset, once it is created and the first region is inserted, then the dataset can be manually added to the current active project and added as a layer to the map visualization. For subsequent processing, this new target dataset is treated as an existing target dataset.
Creating Custom Regions for Visualization
You can create custom polygon regions on the source dataset that contains polygon type geometries and apply them on a target dataset using the follow steps:
The instructions assume that the source and target datasets are already added to your Project in the ActiveProject page.
-
Click the Visualizations tab on the left pane in the Active Project page.
This lists the various visualization options.
-
Click and drag Map from the list to the visualization window on the right to create a map visualization.
A default base map is displayed with no data visualization layers.
-
Click the Data tab on the left pane in the Active Project page.
This lists all the Datasets that are loaded for the project.
-
Click and drag the desired source dataset from the list to the map view on the right.
A map layer with polygon shapes is created.
-
Create the required custom regions by performing the following steps as many times as required:
-
Select the regions for aggregation using the polygon selection tool in the map tool bar.

Description of the illustration create_custom_regions.png
Tip: Alternatively, you can also select multiple polygons by using the keyboard shortcut
Ctrl + Clickon a Windows system. -
Click
, Actions icon on the map tool bar and select Create Custom Region.Combining shape dialog opens as shown:

-
Select the source dataset from the Combine shapes in drop-down list.
-
Select one of the following desired options for Target dataset:
- Create new: To create a new target dataset:
-
Enter Connection, Table name, and Dataset name details for the new target dataset.
-
Enter the Key column name and the Key value that uniquely identifies the custom map region.
-
- Append to existing: To append the custom polygon shapes to an existing target dataset:
-
Select an existing target dataset from the Append result to dataset drop-down list.
-
Click Enter new shape attributes and enter a unique key value for the Key column name of the target dataset.
-
- Create new: To create a new target dataset:
-
Optionally, switch on or off the Include only selected items toggle button:
Caution: The whole source dataset may be aggregated into one region if Include only selected items is switched off. In this case the process may run for a long time depending on the number of features in the source dataset. Therefore, use this option only if required.
-
Click OK to create the custom map region.
-
-
Drag and drop the target dataset to the map view on the right to view the newly created custom regions.
The following figure shows the newly defined custom regions that were inserted into the target dataset.

Creating a Target Dataset
There are two ways to create a target dataset:
-
By Spatial Studio: Refer to the Create New Target Dataset option in the earlier section. Note that you must specify the key column name for the target dataset as the key values are stored in the key column names for the corresponding geometries (custom map regions).
-
By manual process: Perform the following steps to create a dataset manually:
-
Connect to an Oracle database schema using SQL Developer or any other tools.
-
Create a spatial table as shown:
CREATE TABLE affected_regions (region_id NUMBER PRIMARY KEY, geom SDO_GEOMETRY); -
Insert the spatial table into USER_SDO_GEOM_METADATA view. For example:
INSERT INTO USER_SDO_GEOM_METADATA VALUES ( 'affected_regions', -- TABLE_NAME 'geom', -- COLUMN_NAME SDO_DIM_ARRAY -- DIMINFO attribute for storing dimension bounds, 0.5 m as tolerance (SDO_DIM_ELEMENT ('LONGITUDE', -180, 180, 0.5 ), SDO_DIM_ELEMENT ( 'LATITUDE', -90, 90, 0.5 )), 4326 -- SRID value for specifying a geodetic coordinate system ); COMMIT; -
Create a spatial index on the SDO_GEOMETRY column.
CREATE INDEX affected_regions_sidx ON affected_regions(geom) INDEXTYPE IS MDSYS.SPATIAL_INDEX_V2; -
Create a dataset in Spatial Studio from the database schema used in the preceding steps.
The required target dataset is created. You may use this data layer on to which you can apply the newly created custom map regions.