CARIS HPD : HPD® Server API : FOID Conversion Functions
 

FOID Conversion Functions

 
FoidNumberToString
FoidStringToNumber

The feature object identifier (FOID) is composed of an agency id, a subdivision id, and an id number. This is displayed in the applications as a string composed of the agency code, id number, and subdivision id (e.g. "1C 0000000001 00001"). Internally, the database stores these three values as a single encoded number (e.g. 2025493936704847873). Most APIs use or return the internal foid number for performance reasons. The following functions convert foids from one format to another.

Function

Description

FoidNumberToString

Converts a FOID as a number to a FOID as a display string.

FoidStringToNumber

Converts a FOID as a display string to the internal FOID number format.