Skip to content

Update spatial handling for DCAT-US v3.0 Location object #6040

Closed
GSA/datagov-harvester
#912

Description

@SueValente

What: DCAT-US v3.0 spatial is a Location object, not a plain string. The current translate_spatial and translate_spatial_to_geojson utilities produce GeoJSON strings or dicts. These need to handle the v3.0 Location object as both input (when reading a v3.0 record) and output (when producing a v3.0-compatible record from ISO or v1.1 source).

Likely scope:

  • Update translate_spatial to accept a Location object dict as input and extract the geometry value from it for processing
  • Update or wrap translate_spatial_to_geojson to produce a Location object dict as output when the target schema is v3.0
  • Ensure the translated_spatial column in the dataset table stores the GeoJSON geometry (extracted from the Location object) for OpenSearch indexing
  • Update _dataset_payload in Record to produce the correct spatial structure based on the source schema_type

Done When:

  • v3.0 records with Location object spatial pass validation and store correctly
  • v1.1 records with plain string spatial continue to work
  • ISO records (which arrive via MDTranslator as v1.1 output) continue to work
  • OpenSearch spatial indexing is unaffected

Notes:

Activity

  1. moved this from 📥 Queue (up next) to 📟 Sprint Backlog (Top Priority) in data.gov team boardon Aug 12, 2026
  2. moved this from 📟 Sprint Backlog (Top Priority) to 📥 Queue (up next) in data.gov team boardon Aug 19, 2026
  3. moved this from 📥 Queue (up next) to 📟 Sprint Backlog (Top Priority) in data.gov team boardon Aug 27, 2026
  4. self-assigned this
    on Aug 27, 2026
  5. moved this from 📟 Sprint Backlog (Top Priority) to ✔ Done in data.gov team boardon Sep 2, 2026
  6. moved this from ✔ Done to 🗄 Closed in data.gov team boardon Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DCAT-US3Tickets related to DCAT-US3 release and support.geospatial

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions