6.3 SDO_NET.ADD_FEATURE
Format
SDO_NET.ADD_FEATURE( feature_layer_id IN NUMBER, feature_id IN NUMBER, feature_elements IN SDO_NET_FEAT_ELEM_ARRAY DEFAULT NULL, child_feature_ids IN SDO_NET_LAYER_FEAT_ARRAY DEFAULT NULL, check_integrity IN BOOLEAN DEFAULT TRUE);
Description
Adds a feature to a feature layer.
Parameters
- feature_layer_id
-
ID of the feature layer to which to add the feature.
- feature_id
-
ID of the feature to be added to the feature layer.
- feature_elements
-
Feature elements of the feature to be added. If this parameter is null, no feature elements are defined for this feature. (The SDO_NET_FEAT_ELEM_ARRAY type is described in Data Types Used for Feature Modeling.)
- child_feature_ids
-
IDs of the child features of the feature that are to be added along with the feature. If this parameter is null, no child features are to be added. (The SDO_NET_LAYER_FEAT_ARRAY type is described in Data Types Used for Feature Modeling.)
- check_integrity
-
TRUE
(the default) checks if the input network elements exist; and if any do not exist, an error is generated.FALSE
does not check if the input network elements exist.
Usage Notes
To update a feature in a feature layer, use the SDO_NET.UPDATE_FEATURE procedure.
Examples
The following example adds a feature associated with a point at 20% on link 1314.
DECLARE feature_layer_id NUMBER; feature_id NUMBER := 1; elements SDO_NET_FEAT_ELEM_ARRAY := SDO_NET_FEAT_ELEM_ARRAY(); link_id NUMBER := 1314; BEGIN feature_layer_id := sdo_net.get_feature_layer_id('GRID', 'POI'); elements.extend; elements(1) := SDO_NET_FEAT_ELEM(SDO_NET.FEAT_ELEM_TYPE_POL, link_id, 0.2, null); sdo_net.add_feature(feature_layer_id, feature_id, elements, null); END; /
Parent topic: SDO_NET Package Subprograms