Skip to content

Phase 3.1: GeoJSON Handler Extensions #14

Closed

Description

@Sam-Bolling

Phase 3.1: GeoJSON Handler Extensions\n\nStatus: COMPLETED — Commit a30f5bf\n\n### Delivered\n\n- src/ogc-api/csapi/formats/geojson.ts (~310 lines) with 6 public exports:\n - isCSAPIFeature(feature) — SOSA vocabulary recognition\n - getCSAPIResourceType(feature) — classifies into System / Deployment / Procedure / SamplingFeature\n - parseValidTime(value) — converts OGC timePeriod array [\"ISO\", \"now\"] and object formats to TimeInterval\n - isValidUri(value) — RFC 3986 scheme validation\n - validateCSAPIFeature(feature) — inline validation (required props, URI validity, type-specific constraints)\n - extractCSAPIFeature(feature) — validates + converts raw JSON to typed CSAPI resource\n\n- src/ogc-api/csapi/formats/geojson.spec.ts — 65 tests, all passing\n\n### Coverage\n- All 4 Part 1 GeoJSON resource types: System (5 subtypes), Deployment, Procedure (4 subtypes), SamplingFeature\n- Both SOSA compact CURIE (sosa:Sensor) and full URI (http://www.w3.org/ns/sosa/Sensor) forms\n- System > Deployment > Procedure > SamplingFeature classification priority\n- Deployment validTime requirement, Procedure geometry: null constraint\n\n### Note\nSamplingFeature recognition covers SOSA vocabulary (sosa:SamplingFeature, sosa:Sample). The OGC spec examples use OGC-OM vocabulary URIs for sampling feature featureType values — extending recognition to those vocabularies can be addressed in a future enhancement."

Activity

  1. Sam-Bolling commented on Feb 15, 2026

    @Sam-Bolling
    Author

    📋 Required Reading: Phase 3 Lessons Learned

    Before starting work on this issue, review the Phase 3 Lessons Learned document:

    👉 docs/governance/phase-3-lessons-learned.md

    Instructions:

    1. Read the lessons learned document first — before reading the issue body
    2. Read phase-2-lessons-learned.md second — Lessons 8 (multi-server) and 10 (read-only smoke tests) remain mandatory
    3. Review AI_OPERATIONAL_CONSTRAINTS.md as always

    Key lessons applicable to all Phase 3 work:

    • Lesson 1: Upstream audit check — before building new layers
    • Lesson 2: Postel's Law — never gate extraction on validation
    • Lesson 10: Type naming rules when defining types from external specs
  2. added 2 commits that reference this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions