GithubHelp home page GithubHelp logo

sacro / woodpecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anisotropi4/woodpecker

0.0 0.0 0.0 159.87 MB

A way to overlay and combine two linear geographic network models

License: Apache License 2.0

Shell 3.71% Python 95.74% Dockerfile 0.55%

woodpecker's Introduction

Woodpecker

This is a way to overlay and combine two linear geographic network models.

Overview

The centre-line track-model is a dataset published via an Environmental Information Regulations (EIR) request by Network Rail under the Open Government Licence:

Open Street Map contains current and historic mainland Britain railway data here published under the Open Database License.

Run the following script:

$ ./run.sh

This will downloads dependencies, centre-line and OSM data, creates the network overlay and combines this in a outputx.gpkg repository.

Overlay and combine approach

The approach used to overlay and combine data is:

  1. create a cropped OSM and centre-line track-model LineString segments within scaled hexagons
  2. create line-extended centre-line track-model rectangular polygons within a given hexagon
  3. test if the OSM LineStrings are within these rectangular polygons
  4. any OSM LineString segments that fall within a centre-line track-model rectangular polygon are discarded.
  5. hexagons are classified as to whether they contain no rail, only OSM, only centre-line or a mixture of elements.
  6. OSM data in hexagons only containing OSM elements are retained.
  7. hexagons with mixed OSM and centre-line data are reassessed but at the next granular hexagon level.
  8. the combined OSM only data and centre-line model then seems to give the required result.

woodpecker's People

Contributors

anisotropi4 avatar sacro 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.