Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request for GeoJSON viewer to read lat/long from CSV #109

Open
brooks-eco opened this issue Oct 5, 2024 · 0 comments
Open

Feature request for GeoJSON viewer to read lat/long from CSV #109

brooks-eco opened this issue Oct 5, 2024 · 0 comments

Comments

@brooks-eco
Copy link

Our data is CSV-GEO (CSV with lat/longs)

With recent changes in ckan2.11, geoview and datatables_view there is now not an inbuilt map viewer for point lat/longs in CSV that used to be in the react data viewer (that I can find) so I've taken to uploading a GeoJSON map of points along with my CSV

A "nice" solution might be to augment the GeoJSON_view plugin so that it can also work with CSV directly (presumably a small amount code required to convert CSV-GEO to GeoJSON in the background then plot it). Perhaps the routines already exist in the Leaflet code making this easy. Its beyond my abilities...but seems like it should be doable for skilled code warriors.

One issue with this is when the CSV has many records and it bogs the map - a potential workaround could be that if the record count exceeds a threshold the viewer sorts the lat/long data without the other attributes (so reducing the data set to the unique point locations only so they can be mapped quickly - e.g. one point for one weather station not 1000 points containing the individual records.

I agree Its not hard to load a GeoJSON of the locations as a separate resource - in some cases perhaps even more appropriate - I just thought it would be nice if this was built in for CSV_GEO. data.gov.au uses CSV-GEO-AU as the filetype so it would wnat to pick that up too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant