scalableminds / webknossos-connect

Connect webKnossos with existing datasets (BossDB, Neuroglancer Precomputed)
GNU Affero General Public License v3.0
0 stars 0 forks source link

datasource-properties: add largestSegmentId, dataFormat & wkwResolutions #64

Closed jstriebel closed 5 years ago

jstriebel commented 5 years ago

This makes the reported datasource-properties compatible to what wk (front- & backend) actually expects.

fm3 commented 5 years ago

@jstriebel cubeLength is the number of voxels per dimension in a wkw file. This is usually 1024. It is encoded in the wkw header ( see https://github.com/scalableminds/webknossos-wrap#header-fields ) –webKnossos itself doesn’t care about this, it is just used within the datastore. It probably needs to be present, though, in order for the type checks to work. As you can see here and related here, webKnossos has a concept of different kinds of data layers (so far knossos vs wkw) – so I’m not sure if it makes sense to emulate wkw layers if we don’t actually have them in wkconnect. But since it is designed as an adapter, it might also be ok just to write 1024 to the cubeLength.