hamradio
postgresql_hamradio · ham radio extension
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100280 | hamradio | postgresql_hamradio | 1 | TYPE | PostgreSQL | SQL |
| Relationships | |
|---|---|
| Requires | postgis uctext |
Usage
Sources:
hamradio provides PostgreSQL domains, enums, conversion functions, and reference tables for amateur-radio callsigns, bands, frequencies, modes, and Maidenhead locators. It is useful for validating logbook data and deriving geographic cells, but it is a small domain toolkit rather than a complete logging application.
Core Workflow
The extension depends on uctext and postgis. Store validated callsigns, frequencies, and locators, then derive a radio band or PostGIS geometry:
Important Objects
callvalidates upper-case callsign components separated by slash or hyphen.bandenumerates amateur bands from 2190m through 1mm;band(numeric)maps a frequency in MHz to a band.qrgaccepts only frequencies that map to a known band.locatorvalidates 2- to 10-character Maidenhead locators.ST_Locatorreturns the locator-cell polygon in SRID 4326, whileST_LocatorPointreturns its point representation.locator2andlocator4are prepopulated reference tables with GiST-indexed PostGIS cells.major_modeandadif_modenormalize common mode labels.
Operational Notes
The validation rules and band limits are frozen in the extension SQL and may not reflect later regulatory changes or local band plans. The reference tables add precomputed global locator cells at install time. Check the derived band and geometry semantics for the target application, and preserve the exact upper-case formats expected by the domains.