Skip to content

Response parser: fallback classification for null featureType in GeoJSON (F41) #50

Closed

Description

@Sam-Bolling

Smoke Test Finding F41: Fallback Classification for null featureType\n\n### Completed in e0f3f0b\n\nImplemented endpoint-context classification fallback in src/ogc-api/csapi/formats/classification.ts (Design Option 4 — combination of endpoint context + hint variant).\n\nProblem: 52North servers return featureType: null in GeoJSON despite correct definition: \"sosa:Sensor\" in SensorML format.\n\nSolution:\n- inferResourceTypeFromPath(url) — maps endpoint URL path segments to CSAPIResourceTypeName (/systems → 'System', etc.)\n- classifyFeature(feature, hint?) — tries getCSAPIResourceType() first, falls back to hint only when featureType-based classification fails\n- Hint never overrides a valid featureType (spec-compliant servers are safe)\n\nAcceptance criteria met:\n- [x] Features with featureType: null classified when endpoint context available\n- [x] Features with valid featureType classified by featureType (hint ignored)\n- [x] GeoJSON handler pure functions (isCSAPIFeature, getCSAPIResourceType) unchanged\n- [x] 22 tests cover all 5 required cases + extras\n- [x] All existing tests pass (no regression)\n- [x] Zero lint errors\n- [x] Re-exported from formats/index.ts barrel file"

Activity

  1. added
    enhancement
    on Feb 15, 2026
  2. changed the title [-]GeoJSON handler: fallback for null featureType in GeoJSON format (F41)[/-] [+]Response parser: fallback classification for null featureType in GeoJSON (F41)[/+] on Feb 15, 2026
  3. added 2 commits that reference this issue on Feb 16, 2026
  4. added a commit that references this issue on May 9, 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

    Labels

    Phase 3enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions