Git Product home page Git Product logo

transportation-systems's Issues

Extract query information from ODOT crash database

The Microsoft Access database we received from ODOT has some queries that ODOT uses to generate reports. Those would help the API and data exploration process, so we should extract them from the database and add them to the documentation.

PostgreSQL cleanup / documentation

Approximately prioritized - feel free to adjust:

Dependency - needs to wait for the ODOT crash dump API to be merged to master. Some of this will be done in branches to https://github.com/hackoregon/transportation-system-backend.

Develop a script to install PostGIS in Amazon Linux 2

See hackoregon/civic-devops#19. DevOps is going with Amazon Linux 2 for a PostgreSQL server, which doesn't have PostGIS packages available. So if we're using GeoDjango against it, we'll need PostGIS. https://docs.djangoproject.com/en/2.0/ref/contrib/gis/install/#spatial-database

Given the unique nature of "Amazon Linux" - it's Yum / RPM based, but there's no guarantee that RHEL/CentOS RPMs will inter-operate correctly with it. So we need to build PostGIS and its dependencies from source.

My plan is to make this available as a Dockerfile / Docker compose file for local development, so we're testing on the same software we're deploying.

Rename Database Dumps to confirm to standards

Hey folks, as discussed at meeting on Tuesday, DevOps are looking to get some dbs up in development server. At this time naming conventions appears to be only blocking issue.

Tasks I see:

  1. rename our databases to append the "transportation-systems" title to beginning of all Databases. See hackoregon/civic-devops#1 (comment) for source of truth
  2. (Maybe optional) Standardize usage of hyphens vs underscores?
  3. Update our local db variables in the django project and test if any migrations/changes are needed.
  4. Provide db on google drive
  5. I will upload to s3 for devops to deploy
  6. Test local api connection to the dev database

I am marking this as a high priority, provided we can get this up successfully, should allow devops to move forward with some architecture work. @znmeb going to assign this to you.

Build / distribute TriMet congestion database

This is in progress in repository https://github.com/hackoregon/transportation-congestion-analysist. The best overview is in https://github.com/hackoregon/transportation-congestion-analysis/blob/master/src/data/README.md.

My initial plan is to distribute both individual table dumps, and a dump of the complete database for the more adventurous / computationally empowered. I recommend exploring the data a month at a time; there are four tables for each month that take up about 10 GB of your PostgreSQL data directory. The whole thing is about 30 GB.

Ridership data exploratory data analysis

I've started on this using QGIS. The first thing I'm planning on doing is an animated map of the data over time. QGIS has a plugin that makes this possible; we'd need to filter by bus line or the maps are unreadable but it looks like it can be done without any data other than what we have.

Help wanted sign is up - soliciting more ideas!!

Explore feasibility of doing GIS API using Spatialite instead of PostGIS for ridership data

GeoDjango is capable of using Spatialite as a back end instead of PostGIS. (https://docs.djangoproject.com/en/2.0/ref/contrib/gis/install/#spatial-database). While PostGIS is preferred, our deployed application may not have a PostGIS server available, just PostgreSQL.

The ridership data is small-ish and very tidy - Spatialite should be capable of doing any GIS work GeoDjango has to do. And the Spatialite database is an SQLite database - it's just a file that lives in the same filesystem image as the container serving up the Django REST Framework API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.