03_Core_ConceptsNumeric Suffix

Numeric Suffix

Purpose

This note defines how HAPI interprets numeric suffixes appended to Feature Codes.

Source Priority

  1. HAPI User Manual.pdf
  2. HAPI Quick Start Guide.pdf
  3. Point Code and Style Code.md

Definition

A Numeric Suffix is a number appended after a Feature_Code to override default processing behaviour.

The suffix is interpreted by digit count.

Digit Count Rule

Digit CountNameMeaningExample
1Sizing_NumberExact number of points used to define an enclosing rectangle.CP3, BN3, UB3
2Clustering_NumberLogical group linking records that may be non-sequential.KX01, FB02

Why This Matters

Numeric suffixes remove ambiguity from conventional survey requirements.

They support:

  • explicit dimensional capture
  • grouping of non-sequential survey records
  • separation of adjacent features with the same Feature Code
  • migration from 2D drafting conventions to ECM-ready modelling logic

Examples

CodeInterpretation
CP3Catch Pit surveyed with three points for rectangular calculation.
BN2Bench captured by two points, typically for linear dimension only.
BN3Bench captured by three points for rectangular calculation.
KX01Kerb Bottom cluster 01.
FB02Flower Bed cluster 02, forming an irregular polygon.

Business Rules

  1. A one-digit suffix is a sizing override.
  2. A two-digit suffix is a clustering override.
  3. Do not treat all numbers as the same type of suffix.
  4. For suffix parsing, preserve leading zeroes in two-digit Clustering Numbers.
  5. Do not convert 01 to integer 1 if the string form is needed for exact grouping.

Implementation Notes

Preferred planned functions:

  • ParseNumericSuffix
  • ClassifyNumericSuffix
  • ResolveSizingNumber
  • ResolveClusteringNumber

Numeric suffix parsing should produce a structured result, for example:

Parsed FieldExample Value
NumericSuffix01
NumericSuffixTypeClusteringNumber
SizingNumberNone
ClusteringNumber01

Open Questions

  • Confirm how the parser should handle invalid numeric suffixes longer than two digits.
Built with LogoFlowershow