Comments (2)
We can create a composite that stores/indexes the datetime as a tstzrange datatype that is set to an instant (range start = range end) and use postgresql inbuilt range operators (similar to postgis bbox operators) to query between the stac record time range and the passed in start/end times.
We could also keep the start/end of the stac record as separate start/end where we merge in the datetime such that start_datetime = coalesce(datetime, start_datetime) and end_datetime = coalesce(datetime, end_datetime) and use appropriate bilateral less than and greater than statements.
I think the biggest question is do we always want to use some sort of "merged" time to query against or only with a flag or in certain circumstances.
from pgstac.
The tztsrange solution would certainly be more flexible for queries.
from pgstac.
Related Issues (20)
- Error on docker image startup. HOT 10
- Aggregation Extension HOT 1
- No module named 'pypgstac.pgstacrs' HOT 1
- Ensure proper handling of geometries passed in that cross the antimeridian HOT 1
- Docs - Add link to videos that describe pgstac HOT 1
- Add Links to ItemCollection directly in pgstac
- Relax smart-open dependency version HOT 17
- update_collection_extent setting results in wrong JSON structure HOT 2
- collection_temporal_extent produces invalid datetime HOT 3
- Syntax error from temporal_op_query HOT 1
- Add support for loading from pystac objects HOT 3
- Eliminate redundant partition stats update HOT 1
- pypgstac load items partially without exceptions
- Version 0.8.6 is not listed in the CHANGELOG
- Introduce new load method to extend existing STAC items
- Add collection search functionality HOT 2
- Failed to detect the target database version when loading collection and items HOT 2
- Broken symlink issue
- `_where` and `orderby` fields not being populated in `search` table, `search_wheres` not populated at all HOT 2
- Support for the STAC API free-text extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgstac.