geoadmin / mf-chsdi3

api3.geo.admin.ch source code
https://api3.geo.admin.ch
Other
33 stars 15 forks source link

grid approach for ch.bfe.solarenergie-eignung-daecher tooltips #2034

Open ltclm opened 8 years ago

ltclm commented 8 years ago

With the introduction of the new grid layer type we could change the ch.bfe.solarenergie-eignung-daecher tooltips now. The raster part of the tooltip information could be accessed from s3.

This would mean that we can replace the tables:

The total size of these tables is 1GB now but.

Do you think this is worth the effort to move this data from db to s3 and introduce a new hybrid tooltip solution for this layer with one part coming from database and the other part coming from s3 (grid)?

@gjn @AFoletti @loicgasser your thoughts please.

gjn commented 8 years ago

In general yes, but I have one question.

We keep 10 years but only need 12 months? Why?

ltclm commented 8 years ago

raster data in the filesystem is for the last 10 years, in the tooltip we just need 12 months. That's why we should remove this data from the database and adapt the import scripts. @AFoletti can you confirm?

gjn commented 8 years ago

+1 from me then.

loicgasser commented 8 years ago

+1, but does it mean we have to update grid cells automatically on S3 when new raster arrive? I didn't get if those layers were shipped automatically sorry. And what would still some from the DB? (Expect the metadata of course)