anastassiavybornova / knudepunkter Goto Github PK
View Code? Open in Web Editor NEWThe Cycle Node Network Planner - instructions, code & data
License: GNU General Public License v3.0
The Cycle Node Network Planner - instructions, code & data
License: GNU General Public License v3.0
doesn't work currently for plot_func.py functions that reference the qgis project homepath (currently we run the the plot_func.py script from within the qgis script); same for eval
try with sys.path.append() to see if it solves this problem
check with our scripts that currently execute the modules instead of importing them, try to import them, fingers crossed
@anerv what do you think of this?
general setup:
data/raw
subfolders: this is where the user provides input.data/processed
mirorring the data/raw
structure. contains all the gpkg output of the evaluation (currently saved to results
) and all files that are currently saved to data/processed/workflow_steps
(distributed across subfolders, e.g. all the nodes.. and edges.. files from data/processed/workflow_steps
will instead go into data/processed/network
)results
to contain only plots and stats subfolders (the gpkg outputs are saved into corresponding data/processed subfolders)Repo will look like so:
├── data
│ ├── processed
│ │ ├── elevation
│ │ ├── linestring
│ │ ├── network
│ │ ├── point
│ │ └── polygon
│ └── raw
│ ├── elevation
│ ├── linestring
│ ├── network
│ ├── point
│ ├── polygon
│ └── studyarea
├── results
│ ├── plots
│ └── stats
├── scripts
└── src
Required user input
data/raw/studyarea
study area polygondata/raw/polygon
polygon layers to evaluate (hardcoded options: nature
, culture
, agriculture
, tourism
, verify
). each layer is optional.data/raw/point
point layers to evaluate (hardcoded options: facility
, service
, poi
)data/raw/linestring
potentially: feature-match (like BikeDNA) to other network provided in linestring format? but let's rather leave that as future feature requesetdata/raw/elevation
elevation data for study areaUser configurations
In config file:
Denmark use case:
We say that in general: user needs to generate input themselves. However in the case of DK: We provide (in separate repo) all the code and data necessary to generate the inputs to data/raw
, for a user-provided region (defined by municipality codes). Output: the output
folder, after running the single script ("merge study layers") for the DK municipalities indicated by the user in the config file here, will contain exactly the folders and data that are needed as user input for the "general" repo above.
DK-repo will look like so:
├── data
│ ├── elevation
│ │ ├── 1234
│ │ ├── 5678
│ │ └── 9012
│ ├── linestring
│ │ ├── 1234
│ │ ├── 5678
│ │ └── 9012
│ ├── network
│ │ └── technical_network_allDK.gpkg
│ ├── point
│ │ ├── 1234
│ │ ├── 5678
│ │ └── 9012
│ ├── polygon
│ │ ├── 1234
│ │ ├── 5678
│ │ └── 9012
│ └── studyarea
│ └── municipality_boundaries.gpkg
├── output
│ ├── elevation
│ ├── linestring
│ ├── network
│ ├── point
│ ├── polygon
│ └── studyarea
├── scripts
│ └── merge_layers_for_study_area.py
└── src
what else? suggestions very welcome. and how? suggestions equally welcome. i thought of having a separate script at the very end that computes all the statistics above; saves the result to a json; and then uses the results to make a series of png plots. (let's save ourselves the pdf fanciness for now - i would suggest to just point to the subfolder which will contain the png files)
! folkersma raw data >> plotting "technical layer" (to see the details)
! folkersma raw data MINUS parallel edges >> for evaluation layer (linestrings, not networkx object)
! folkersma raw data MINUS parallel edges >> polygonization
? folkersma raw data PLUS child/parent info >> to create a network object
main-main >> by design there should be no parallel edges
main-child >> by design there should be no parallel edges
child-child >> parallel edge possible; if >> count; if 1 >> keep; if 2 >> keep the longer one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.