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:

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.

  1. Click the Visualizations tab on the left pane in the Active Project page.

    This lists the various visualization options.

  2. 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.

  3. Click the Data tab on the left pane in the Active Project page.

    This lists all the Datasets that are loaded for the project.

  4. 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.

  5. Create the required custom regions by performing the following steps as many times as required:

    1. 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 + Click on a Windows system.

    2. Click custom_region_icon , Actions icon on the map tool bar and select Create Custom Region.

      Combining shape dialog opens as shown:

      Description of the illustration custom_region_dialog.png

    3. Select the source dataset from the Combine shapes in drop-down list.

    4. Select one of the following desired options for Target dataset:

      • Create new: To create a new target dataset:
        1. Enter Connection, Table name, and Dataset name details for the new target dataset.

        2. 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:
        1. Select an existing target dataset from the Append result to dataset drop-down list.

        2. Click Enter new shape attributes and enter a unique key value for the Key column name of the target dataset.

    5. 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.

    6. Click OK to create the custom map region.

  6. 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.

    Description of the illustration target_dataset.png

Creating a Target Dataset

There are two ways to create a target dataset:

  1. Connect to an Oracle database schema using SQL Developer or any other tools.

  2. Create a spatial table as shown:

     CREATE TABLE affected_regions (region_id NUMBER PRIMARY KEY, geom SDO_GEOMETRY);
  3. 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;
  4. Create a spatial index on the SDO_GEOMETRY column.

     CREATE INDEX affected_regions_sidx ON affected_regions(geom) INDEXTYPE IS MDSYS.SPATIAL_INDEX_V2;
  5. 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.