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

Serving geospatial data for the frontend #5

Closed
nofurtherinformation opened this issue Sep 11, 2024 · 3 comments
Closed

Serving geospatial data for the frontend #5

nofurtherinformation opened this issue Sep 11, 2024 · 3 comments
Assignees

Comments

@nofurtherinformation
Copy link
Collaborator

Currently, the geospatial map data is deployed on a tile server hosted on linode. This is a good and scaleable solution, especially if this project were to scale up to national election archives, for instance.

However, there are some simpler and more maintainable solutions that could simplify data workflows:

Options include

  • Traditional tile server (backend MBTiles server, file hierarchy pre-baked) or service (maptiler)
  • PMTiles single static file tiles
  • Geospatial data directly (geojson)

My instinct here is to start with simple geojsons. From a quick first look, Ward Precincts can be compressed to around 500kb with reasonable simplification and gzip. Geometric simplification is appropriate here because this is primarily for visualization, not geospatial data science or geoprocessing, and we can point back to the source files for analysts who need the real deal.

@derekeder
Copy link
Member

agreed, lets start with geojson and see if that meets our needs.

@nofurtherinformation nofurtherinformation self-assigned this Sep 16, 2024
@nofurtherinformation
Copy link
Collaborator Author

I'll take a first pass at this tomorrow and plan to use commodity storage (likely Cloudflare R2 for simplicity)

@nofurtherinformation
Copy link
Collaborator Author

Closed by #9

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

No branches or pull requests

2 participants