Summary
The 30-line extractLatLonFromResult() helper currently in demo/src/pages/MapViewPage.vue L1263–1295 (this repo) should remain in place as-is. No action is needed today. This issue exists as a tracking marker so that when a library-level SWE Common–aware result-vector extractor ships in OS4CSAPI/ogc-client-CSAPI_2 (tracked there at #171, deferred), this consumer-side helper gets replaced with the library version rather than continuing to grow.
Context
The library considered absorbing this helper as extractGeoLocation() in ogc-client-CSAPI_2#169, then closed that issue wontfix after Phase 8 triage. Reasons for the rejection (full text in that issue's status banner):
- Unit ambiguity across the convention set (km/m/ft/unspecified) is unrecoverable from field names alone.
- Heuristic field-name matching is architecturally wrong — SWE Common is the correct path.
- The six conventions encode the OSHConnect-Python publisher fleet specifically; codifying them in the library is N=1-consumer opinion masquerading as general utility.
The right place for the heuristic (until SWE Common arrives) is here, in this repo, where the convention list can evolve in lockstep with the publisher fleet.
Action items (none today; reminders for the future)
Out of scope
- ❌ Do not modify the upstream library — see
ogc-client-CSAPI_2#169 for the closure rationale.
- ❌ Do not start migrating to SWE Common manually in this repo — wait for the library to provide it.
- ❌ Do not delete or refactor the existing
extractLatLonFromResult() today. It works against the current publisher fleet; replacement is for later.
References
Summary
The 30-line
extractLatLonFromResult()helper currently indemo/src/pages/MapViewPage.vueL1263–1295 (this repo) should remain in place as-is. No action is needed today. This issue exists as a tracking marker so that when a library-level SWE Common–aware result-vector extractor ships inOS4CSAPI/ogc-client-CSAPI_2(tracked there at #171, deferred), this consumer-side helper gets replaced with the library version rather than continuing to grow.Context
The library considered absorbing this helper as
extractGeoLocation()inogc-client-CSAPI_2#169, then closed that issuewontfixafter Phase 8 triage. Reasons for the rejection (full text in that issue's status banner):The right place for the heuristic (until SWE Common arrives) is here, in this repo, where the convention list can evolve in lockstep with the publisher fleet.
Action items (none today; reminders for the future)
OS4CSAPI/ogc-client-CSAPI_2#171ships, replaceextractLatLonFromResult()with the library-level extractor.uomfrom SWE Common) — update consumers of the helper to stop assuming the result is in any specific unit and instead use the returneduom.Out of scope
ogc-client-CSAPI_2#169for the closure rationale.extractLatLonFromResult()today. It works against the current publisher fleet; replacement is for later.References
OS4CSAPI/ogc-client-CSAPI_2#169wontfix; rationale for keeping this helper localOS4CSAPI/ogc-client-CSAPI_2#171OS4CSAPI/ogc-client-CSAPI_2references.md— Research Findings Not Adopted, Finding 1