Skip to content

Pull Request: Load Data from Local Parquet File & Expose API Endpoint #1

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

SammyGIS
Copy link
Collaborator

Summary

This PR adds:

  • Functionality to load flood data (Parquet file) locally geospatial data from a
  • A new API endpoint to serve the data via FastAPI.

Context

This update supports efficient local data access during development and testing. It avoids external storage and aligns with the project’s current architecture.

Next Steps

  • Fully integrate the new endpoint with the main API logic and existing routing structure.
  • Optimize performance by:
    • Creating a local spatial database (duckdb table).
    • Enabling spatial indexing for faster query performance.
    • Try to see if the data can be cached for fast processing

Feedback Requested

Looking for feedback on:

  • Code structure and readability
  • Efficiency of loading data from local storage
  • Integration of the new endpoint into the existing API — is the approach clean and maintainable?
  • Suggestions for optimizing the geospatial queries setup

@JoanaMiguens JoanaMiguens merged commit 14c4ae6 into main Jun 12, 2025
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

Successfully merging this pull request may close these issues.

2 participants