GithubHelp home page GithubHelp logo

artembrdn / oracle-load-and-search-geo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

📝 Loading a huge number of geo-objects (in this case, base stations📡) in the fastest way 📈. Only delta is loaded. A continuous chain of the start and end dates of the object positioning on the coordinates is created.

License: MIT License

PLSQL 100.00%
base-station gsm geolocation plsql oracle

oracle-load-and-search-geo's Introduction

Oracle module to load a huge number of geo-objects and then quickly searching through them

📝 Loading a huge number of geo-objects (in this case, base stations📡) in the fastest way 📈. Only delta is loaded. A continuous chain of the start and end dates of the object positioning on the coordinates is created.


LOAD

Only the delta and all new objects are loaded. In this case, the object ID is a group of values: id_src, lac, cell. Also, when loading, the data is cleaned of garbage and thinned to a minimum set of rows, so that the history of changing coordinates for the geo object is preserved.

DB TABLE

id coordinates begin end
2 32.0, 48.0 1970-01-01 00:00:00 2020-02-29 23:59:59
2 32.0, 48.0 2020-03-01 00:00:00 2099-01-01 00:00:00

DATA TO LOAD

id coordinates begin end
1 39.0, 50.0 2020-01-01 00:00:00 2022-01-01 00:00:00
1 39.0, 50.0 2020-03-01 00:00:00 2022-01-01 00:00:00
1 39.5, 50.5 2020-03-01 00:00:00 2024-01-01 00:00:00
1 39.5, 50.5 2020-03-05 00:00:01 2030-01-01 00:00:00
2 31.0, 48.5 2020-03-02 00:00:00 2022-01-01 00:00:00
2 31.0, 48.5 2020-03-04 00:00:00 2022-01-01 00:00:00

DB TABLE AFTER LOAD

id coordinates begin end
1 39.0, 50.0 1970-01-01 00:00:00 2020-02-29 23:59:59
1 39.5, 50.5 2020-03-01 00:00:00 2099-01-01 00:00:00
2 32.0, 48.0 1970-01-01 00:00:00 2020-03-01 23:59:59
2 31.0, 48.5 2020-03-02 00:00:00 2099-01-01 00:00:00
STEPS:
  • Create final table, log table and others objects - Initialization.
  • Create package LOAD_GEO.
  • Execution examples
    • LOAD_GEO.LOAD_FILE('bs_2020_10_10_01_01_00_33', server_directory => '/mnt/bs', database_directory => 'BS_SRC', only_dbms_out => null);
      
    • LOAD(server_directory => '/mnt/bs', database_directory => 'BS_SRC', only_dbms_out => null); --load all files from directory
      

oracle-load-and-search-geo's People

Contributors

artembrdn avatar

Stargazers

 avatar

Watchers

 avatar

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.