Databases and backend servers

Lots of little bits connected up today, no time to write it all up. To I did the following

  1. Create a postgis database (using a docker container)
  2. Generate some random points using a poisson disk sampling method using this handy library https://pysal.org/notebooks/explore/pointpats/process.html
    1. I’m not entirely convinced that this is working as intended. I might end up using this instead https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.PoissonDisk.html + UTM coordinate space
  3. Dump those into the database
  4. Created a FastAPI server to read the above from the database and serve geojson through a REST api
  5. Updated the client app to read that geojson and draw some circles in those positions