Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the CSV data into individual json files #9

Open
willwnekowicz opened this issue Oct 17, 2017 · 1 comment
Open

Split the CSV data into individual json files #9

willwnekowicz opened this issue Oct 17, 2017 · 1 comment

Comments

@willwnekowicz
Copy link
Owner

Each record should have a json file (ex: static/stars/1.json) to keep all the data on the frontend but prevent loading of the entire dataset at once.

Constellation groupings should be made into separate files, too (ex: static/constellations/ori.json)

@mfcovington
Copy link

Are public/featuredStars.json and public/featuredStars2.json the source files that need to be split into separate json files?

Would the following, for example, be static/stars/0.json?

{
   "type":"Feature",
   "id":0,
   "properties":{
      "name":"Sol",
      "desig":"Sol",
      "con":null,
      "mag":-26.7,
      "bv":0.656
   },
   "geometry":{  
      "type":"Point",
      "coordinates":[
         -360.0,
         0.0
      ]
   }
}

What are the source files for the constellations? Or should that data just be extracted from ['properties']['con']?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants