Databases and backend servers
15 Nov 2023Lots of little bits connected up today, no time to write it all up. To I did the following
- Create a postgis database (using a docker container)
- Generate some random points using a poisson disk sampling method using this handy library https://pysal.org/notebooks/explore/pointpats/process.html
- 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
- Dump those into the database
- Created a FastAPI server to read the above from the database and serve geojson through a REST api
- Updated the client app to read that geojson and draw some circles in those positions