7.22 SDO_NFE.GET_POINTS_MATCH_LP_RULE
Format
SDO_NFE.GET_POINTS_MATCH_LP_RULE(
model_id IN SDO_NUMBER,
lp_rule_id IN NUMBER,
points IN SDO_INTERACT_POINT_FEAT_ARRAY,
) RETURN DBMS_SQL.NUMBER_TABLE;Description
Given an set of point features, this function calculates the group of them that match a connectivity line-point rule. Returns a DBMS_SQL.NUMBER_TABLE object with the indexes of the points in the input array that match the line-point rule.
Parameters
- model_id
-
NFE model identifier.
- lp_rule_id
- Connectivity line-point rule identifier. Must exist in the LINE_POINT_RULE table.
- points
- Array of point features where the search will take place. (The SDO_INTERACT_POINT_FEAT_ARRAY type is described in Data Types Used for NFE Connectivity Rules.)
Usage Notes
This function is mainly used after the SDO_NFE.GET_INTERACTION_GROUPS function, which returned a group of mixed line features where some line features matched a specific connectivity rule and some did not.
Examples
The following example gets the specific point features that match a line-point rule.
DECLARE
model_id NUMBER := 1;
lp_rule_id NUMBER := 1;
rule_points_indexes dbms_sql.NUMBER_TABLE;
inter_grps SDO_INTERACTION_ARRAY;
BEGIN
-- Get the groups of interacting features that meet the L-P Rule in the model
inter_grps := sdo_nfe.get_interaction_groups( model_id, sdo_nfe.RULE_TYPE_LINE_POINT, lp_rule_id );
-- For each group:
FOR i IN 1..inter_grps.count loop
-- Get the specific point features that match the L-P rule.
rule_points_indexes := sdo_nfe.get_points_match_lp_rule( model_id, lp_rule_id, inter_grps(i).points );
END loop;
END;
/
Parent topic: SDO_NFE Package Subprograms