Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4570404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:21:24+00:00 2026-05-21T19:21:24+00:00

I am interested in best practices for designing relational DB tables for holding spatio-temporal

  • 0

I am interested in best practices for designing relational DB tables for holding spatio-temporal data. Specifically data that will be kept in such tables are custom geometries that have certain validity period, geometry definition as well as hierarchical aspect(certain geometries will be children of other geometries).

I curious if someone can point me to a good material on this subject or could suggest specific implementation.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:21:25+00:00Added an answer on May 21, 2026 at 7:21 pm

    I’d use PostGIS (http://postgis.refractions.net/) for geometry type and make a table like this:

    CREATE TABLE data (
        geometry geometry,
      valid_from timestamp,
      valid_till timestamp,
      check(valid_till >= valid_from)
    );
    

    PostGIS can make spatial queries, so you can query database for all geometries in a specific geometry (e.g. query for all geometries in a geometry representing a State, or a County).

    To get the validity period, you should add to this query additional condition for getting only the rows where (valid_from >= now() and valid_till <= now()).

    You will also need indexes on all three columns of course. On the geometry column there should be a spatial index.

    All the information about the spatial queries and geometry type and geometry indexes you can find on the PostGIS site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically I am interested for the LAMP Stack and some of the best practices
What are the best practices for building a GUI desktop app that will support
I'm interested in learning secure coding best practices (specifically for Java apps) and I'm
What books/blogs/podcasts etc... discuss patterns and best practices for designing software systems that interact
I am interested in learning the best practices on managing user session and organizing
I would interested to hear from other developer tip on SSIS best practices, dos
Greetings! I am interested to your feedback regarding best practices for handling a website
What are the best practices for writing code that can be cross compiled on
I'm interested in knowing what are the best practices for using role based security
I'm interested in the best practices of using LDAP authentication in a Java-based web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.