You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to abide by the documentation for DCAT-US 1.1, Charlotte data providers wants the harvester to support spatial 'type':'envelope' .
Acceptance Criteria
GIVEN a JSON source is harvested by the harvester
AND the DCAT-US documentation states spatial needs to be in Geo Markup format
WHEN a harvest source contains spatial 'type':'envelope',
THEN the record should not error
AND the dataset should be successfully harvested and added to the catalog
As an aside, the logic is actually here: https://github.com/GSA/ckanext-geodatagov/blob/main/ckanext/geodatagov/logic.py#L445-L515
We already munge the spatial field into what ckanext-spatial expects, so it would be adding this use case.
I think it's fine to wait for harvest2.0. Tagging @rshewitt for assessment, but similar logic might need to be built into H2.0 CKAN transformation. Most of that function could possibly be copied wholesale, and the specific additions mentioned in this ticket added.
So what you are saying, @jbrown-xentity, is that doing this logic work now would also be of service to the H2.0 logic and would not be work ultimately lost in transition? If so, I may advocate to re-prioritize this ticket because yet another org (wake county) attempting to have a valid harvest source has hundreds of these same errors.
User Story
In order to abide by the documentation for DCAT-US 1.1, Charlotte data providers wants the harvester to support spatial
'type':'envelope'
.Acceptance Criteria
AND the DCAT-US documentation states
spatial
needs to be in Geo Markup formatWHEN a harvest source contains spatial
'type':'envelope'
,THEN the record should not error
AND the dataset should be successfully harvested and added to the catalog
Background
https://data.charlottenc.gov/data.json contains records in the format of spatial
'type':'envelope'
, which currently error when harvests happen:The current harvester logic appears to only accept
polygon
type spatial fields:https://github.com/ckan/ckanext-spatial/blob/master/ckanext/spatial/harvesters/base.py#L187
We need to update the logic to accept the
envelope
typeSecurity Considerations (required)
NA
Sketch
TBD
The text was updated successfully, but these errors were encountered: