PEKennedy / cityquery

0 stars 0 forks source link

Object Selection should return a file:object pair #26

Closed PEKennedy closed 1 year ago

PEKennedy commented 1 year ago

In CityJSON an object within a cityJSON file is specified as follows: image "CityObjects"{ "Object1": {...}, "Object2":{...}, ...}

We cannot rely on objects selected having unique names, therefore when passing references to objects, it should be as a key:value pair. My initial recommendation is that a file as seen in VisualizationRoot's this.state.cityFiles be a key, and the string name of the object be a value, such that when an object is passed to functions, it is passed as { CityFile: "Object_Name" }.

PEKennedy commented 1 year ago

From experimentation, it seems that to pass an object around, {"name":"Object_name", "file":File} or passing {"File_name":"Object_name"} and the file itself separately needed

PEKennedy commented 1 year ago

resolved