SimonFisher92 / Scottish_Snow

2 stars 0 forks source link

"Drop a pin" geojson generation #33

Open SimonFisher92 opened 6 months ago

SimonFisher92 commented 6 months ago

Currently we rely on hardcoded geojsons, genereated initially from coordinates given to me by Iain Cameron. Perhaps in the future, there might be other patches of interest? We need to be able to generate data from a "heres a LAT/LON tuple, get me the data" request for a new snowpatch.

@ipoole , @murraycutforth any takers?

I can also handle it

murraycutforth commented 6 months ago

I'm down. This will also help with @EddieBoyle2019's work on the web app I think.

murraycutforth commented 6 months ago

I'll write a small python module which has a list of lat/lon coordinates of known snow patches hardcoded in, and then running this will create a geojson file for each one. This will take a "box size" parameter, which we should give in metres and then I'll convert that to a lat/lon offset in the geojson. Any other suggestions?

murraycutforth commented 6 months ago

Okay I've made a first pass, all I've done is to refactor the file produce_geojsons.py, get rid of the old code based on the bluebird urls, and instead we create geojsons from a new file: snowpatch_coords.json, which is just a dict of names -> coordinates which we can add to. I've experimentally added in beinn nevis :)