Table of Contents


Feature ID Checker

Introduction

This object supports the is_deleted_fid method to determine whether or not a feature exists in a Sprout or FIG data store. If a FIG data store is used, then the the $fig object is returned unmodified. In the Sprout case, it will check to see if the incoming ID is for an existing feature or synonym group. In addition, it will cache the identified IDs so they don't need to be checked against the database if the method is called again.

Public Methods

new

my $fidCheck = FidCheck->new($sprout_or_fig);

Construct a new FidCheck object from a specified Sprout, FIG, or SFXlate object.

sprout_or_fig

A Sprout object that may be used to access the database, or a FIG object that may be used to access the data store.

is_deleted_fid

my $flag = $fidCheck->is_deleted_fid($fid);

Return TRUE if the specified feature does not exist, else FALSE. A feature exists if it is in the Feature table or the SynonymGroup table. The synonym groups are not real features, but they do have similarities, so it's important to

fid

ID of the feature whose existence is to be checked.

RETURN

Returns TRUE if the feature does NOT exist, else FALSE.