CARIS HPD : HPD® Server API : Vector Product Data : P_VECTORAPI : ALLOWSPECIFICCPSUPDATE
 

ALLOWSPECIFICCPSUPDATE

This API limits a vector product so it only sees updates from source for the specified features. When the command "Compare Product to Source" is run in the editor, a message is reported in the output window when the product is limited in this manner, and the layer name is prefixed with a "(! )". This applies to all versions of the product, including future versions, but not new editions. ALLOWALLCPSUPDATES clears this list.

Specifying the same foid more than once does not trigger an exception, and is ignored.

Input

Parameter

Type

Description

p_product_id

NUMBER

The product ID

p_foid

NUMBER

The foid of a feature which is allowed to be updated from source

Example

DECLARE

    CURSOR c_UWTROCs IS

    select distinct foid from SRC_FEATURE_VERSIONS where objectclass_id in (

        select objectclass_id from OBJECTCLASS_VW where acronym = 'UWTROC');

    v_product_id            CONSTANT NUMBER := 1;

BEGIN

    P_VECTORAPI.allowAllCPSUpdates(v_product_id); -- Clear previously listed features

    -- Only allow "Compare Product to Source" to see changes to UWTROCs.

    FOR REC IN c_UWTROCs LOOP

        P_VECTORAPI.allowSpecificCPSUpdate(v_product_id, REC.foid);

    END LOOP;

END;

/

Exceptions

product_id is invalid or does not currently exist.

FOID is invalid or does not currently exist.