Coder Social home page Coder Social logo

download_ta_bdys's People

Contributors

billgeo avatar palmerj avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rcoup

download_ta_bdys's Issues

Code review

@josephramsay. As discussed, once you've incorporated the fix from the table_version function and got it working again. We will do a code review with @imincik and discuss any improvements that could be made.

Use TA Code at the primary key

Use the data's natural primary key (the TA code) rather than generating an ogc_fid key during import.
This will be needed for new AIMS requirements.

admin_bdy branch: add more configuration

Would be good to make this more configurable rather than hardcoded and also use YAML for configuration.

Things like:

  1. Data sources
  2. Source -> Target schema mapping
  3. Logging email details

Admin Boundaries Downloader - Enhancement

Addressing request to provide a means of user validation pausing processing before final import.
Initial implementation.

  1. DAB split into two parts; (1) File download and DB import. (2) Table mapping and versioning
  2. Notification to users following completion of Part-1 @LinzDSie
  3. Web interface (on common tomcat installation) taking user input (Y/N) to trigger Part-2

Additionally, provide changeset information in notification and/or web interface, also validation functions..

admin_bdy branch: run AIMS database functions

Final step in the process is to run the AIMS database functions for updating reference data. Will need to check the return codes and raise message appropriately.

fnreferencedataupdatelocality
fnreferencedataupdatemeshblock

sftp dependency

meshblock fetching is done over sftp using the python paramiko library that only works on newer linux installations

admin_bdy branch: incrementally update data

Data should be imported incrementally, i.e. only import changes to the data based on primary key (don't truncate and insert).

Use the functions from the table versioning extensions to create a diff and then apply it. Would suggest importing to a temp table first.

ver_get_table_differences
ver_apply_table_differences

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.