phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Be able to load zipped version of event/geometry files in a generic way

Open sponce opened this issue 2 years ago • 1 comments

- 'moved' and adapted from phoenix-helpers repo where it was created initially by mistake -

The gain in size is typically around a factor 10, so for a web based application, it would make sense to be able to use zipped versions of our data files, both for events and geometry. Now I had a look at the code, and the thressjs GLTFLoader does not seem to support it natively, so we would have to write it ourselves

answer from @9inpachi

We already do this but only in the event data import, not through the URL or anywhere else. The same logic could be extracted and reused though.

https://github.com/HSF/phoenix/blob/c6a91537c2f4bea406d6885fa562fe851bce7037/packages/phoenix-ng/projects/phoenix-ui-components/lib/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.ts#L177

summary of discussion

This is for now Atlas specific and event specific. It should be available to all and also for geometry ideally

Steps remaining :

  • [ ] allow zip files for default event files
  • [ ] allow zipped geometries

sponce avatar May 19 '22 09:05 sponce