Closed edsu closed 9 months ago
@thatbudakguy advised converting all .json
to .geojson
, not just index_map.json
. Is there any further nuance to this, @thatbudakguy?
To my knowledge, the only reason we ever ingest JSON through our GIS pipeline is as geospatial data – that is, as geoJSON. The table above seems to bear that out. I think it's safe to rename all JSON to have the .geojson extension.
The alternatives are:
It appears that PURL only displays index_map.json
files, and that EarthWorks doesn't do anything with them at the moment?
For example:
While we don't have any right now, JSON is a popular data format, and I could imagine non-GeoJSON files being accessioned in the future as part of a GIS dataset. Would we really want to assume that those are GeoJSON, and rewrite the filenames?
Absent a way of reliably identifying GeoJSON files, I do like the idea of accessioneers naming known GeoJSON files with the .geojson
extension going forward.
PS. I created https://github.com/sul-dlss/sul-embed/issues/2118 to track the fact that sul-embed needs to be updated to display the GeoJSON with the new extension.
But as you say @thatbudakguy if we never imagine adding GIS items with other types of supporting JSON in them, then this can be closed.
We are currently converting any
.json
file to use the.geojson
file extension. While reviewing the filenames used in GIS items I noticed that apart from one typo the only JSON filename that is used isindex_map.json
. In order to allow other types of JSON files to be present in GIS items we should only assume thatindex_map.json
is a GeoJSON file.