Design Decision: Vector-Based Representation of Feedstocks #6
tylerhuntington
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Our tool needs to represent and manage multiple types of biomass feedstocks (e.g., corn stover, grape trimmings, almond shells) across California, with both quantitative and qualitative attributes tied to specific crop field locations. The backend stack is Django + GeoDjango + PostgreSQL/PostGIS.
Decision
Based on the rationale below, there is a strong case for storing feedstock data in the tool as vector-based geometries (e.g., polygons representing crop fields or grid cells) in PostGIS, rather than raster-based representations.
Rationale
Attribute-Rich Data Model
First-Class GeoDjango Integration
Point,LineString,Polygon, etc.) via the ORM, enabling clean, maintainable, and performant queries.Query and Filter Flexibility
WHERE grape_trimmings_tons > 50 AND region = 'Central Valley').Data Update and Maintenance
Interoperability and Analysis
Trade-offs
Conclusion
Given our need to store multiple quantitative and qualitative attributes per location, maintain tight integration with GeoDjango/PostGIS, and support flexible querying and updates, a vector-based representation offers the best balance of maintainability, performance, and analytical capability for biomass feedstock data in California.
Beta Was this translation helpful? Give feedback.
All reactions