osoc17 / rideaway-data Goto Github PK
View Code? Open in Web Editor NEWThe oSoc Brussels Mobility 1 team - Data validation and integration into OpenStreetMap
Home Page: https://osoc17.github.io/rideaway-data/
License: MIT License
The oSoc Brussels Mobility 1 team - Data validation and integration into OpenStreetMap
Home Page: https://osoc17.github.io/rideaway-data/
License: MIT License
http://data.toerismevlaanderen.be/tourist/routes/cycling_node_network_v2 => there is a shapefile there that wasn't there before.
Logging this issue here for future reference/work.
Make a component that compares the metadata of the BM data and OSM data.
Necessary tags:
colour
type = network
route = bicycle
name = Gewestelijke Fietsroutes - Itinéraires Cyclables Régionaux
ref
operator = Brussel Mobiliteit - Bruxelles Mobilité
Preprocess the Brussels Mobility data:
Lambert 72
to wgs84
Make sure the downloaded files have a geojson extension so tools recogize them.
A very simple way to add false positives would be to add two folders to this repo:
They both contain files like ref.geojson that are just added at the beginning of the pipeline to each corresponding route in the corresponding data source.
A timestamp should show when the script last ran successfully and the map was updated.
Finish and test the scraping of the GFR and OSM data.
Clearly visualising the progress that is made by the OSM community in correcting map data would allow people to easily observe the positive impact that our tool has made. This can be used by the OSM Belgian community to demonstrate the power of oSoc and vice versa. A graph can be shown that provides the total conflicts as a percentage and then breaks this down per route ID. The graph would feed off from a text file of this one a daily basis. The percentage could be calculated by the distance the total conflicted routes in proportion to the route length. This can also assist the community to prioritise their map editing work per route.
Automate the comparison between the Brussels data and the OpenStreetMap data using a Python script and QGIS.
Comparison script should be made more robust, either it should only accept geojson files with one geometry or it should merge all geometries into one.
The names of the routes are currently hardcoded in a routes
file, but it would be better if they're extracted from the reference data.
Map control (+/-) are hidden by the routes list in http://cyclenetworks.osm.be/brumob/
Process the OSM data to extract the relations of the existing cycling network and output the underlying geographical data to GeoJSON for the automatic processing.
First do another manual comparison of the data and update the OSM wiki.
Also identify issues with the metadata and provide a detailed plan for fixing and completing the OSM data.
from qgis.core import *
from qgis.utils import iface
from qgis.analysis import QgsGeometryAnalyzer
from qgis.core import QgsMapLayerRegistry
import sys
from PyQt4.QtGui import *
app = QApplication([])
QgsApplication.setPrefixPath("/usr", True)
QgsApplication.initQgis()
sys.path.append('/usr/share/qgis/python/plugins')
from processing.core.Processing import Processing
Processing.initialize()
from processing.tools import *
OSM_INPUT_LOCATION="/home/mramachi/osm/rideaway-data/src/qgis_Scripts/datasources/osm.json"
GFR_INPUT_LOCATION="/home/mramachi/osm/rideaway-data/src/qgis_Scripts/datasources/gfr.geojson"
#output location
OSM_OUTPUT_LOCATION="/home/mramachi/osm/rideaway-data/src/qgis_Scripts/osm.geojson" #not used
GFR_OUTPUT_LOCATION="/home/mramachi/osm/rideaway-data/src/qgis_Scripts/GFR.geojson" #not used
GFRBUFFER_OUTPUT_LOCATION="/home/mramachi/osm/rideaway-data/src/qgis_Scripts/buffered_gfr.shp"
#load GFR data and osm data
osmlayer = QgsVectorLayer(OSM_INPUT_LOCATION,"osmgeojson","ogr")
#gfrlayer = QgsVectorLayer(GFR_INPUT_LOCATION,"gfrgeojson","ogr")
#write output
#writer = QgsVectorFileWriter.writeAsVectorFormat(osmlayer,r"/home/mramachi/osm/rideaway-data/src/qgis_Scripts/osm.shp","utf-8",None,"ESRI Shapefile")
#writer = QgsVectorFileWriter.writeAsVectorFormat(gfrlayer,r"/home/mramachi/osm/rideaway-data/src/qgis_Scripts/gfr.shp","utf-8",None,"ESRI Shapefile")
#read shape files
#osmshape = QgsVectorLayer("/home/mramachi/osm/rideaway-data/src/qgis_Scripts/osm.shp", "osmshape", "ogr")
#gfrshape = QgsVectorLayer("/home/mramachi/osm/rideaway-data/src/qgis_Scripts/gfr.shp", "gfrshape", "ogr")
#buffer
#QgsGeometryAnalyzer().buffer(gfrshape, GFRBUFFER_OUTPUT_LOCATION, 0.0003, False, False, -1)
#gfr_bufferedshape = QgsVectorLayer(GFRBUFFER_OUTPUT_LOCATION, "gfr_buffered", "ogr")
#QgsApplication.exitQgis()
#QApplication.exit()
#1 osm 2 gfr_buffered
#general.runalg('qgis:difference',osmshape,gfr_bufferedshape,False,"/home/mramachi/osm/rideaway-data/src/qgis_Scripts/finaloutput.shp")
#outputLayer2 = QgsVectorLayer("/home/mramachi/osm/rideaway-data/src/qgis_Scripts/finaloutput.shp", "gfrshape", "ogr")
#output as geojson
#QgsVectorFileWriter.writeAsVectorFormat(outputLayer2,'/home/mramachi/osm/rideaway-data/src/qgis_Scripts/output/output.geojson', 'utf-8', None, 'GeoJSON')
Get a domain name for the website and add HTTPS
It's possible with basic HTML/JavaScript so you can use GitHub pages to host it.
Start the project:
goal: writing an expression for 'field calculator' that combines 'icr' with 'part'
the field 'route' already exists
my simple solution of icr || lower(part) doesn't work with 'part' is NULL. fyi the fields of 'icr' and 'part' are in already in a string format.
new idea: can an expression be written that creates a new field of route. it would better automatic the process. thanks.
Open favourite editor for the current mapview.
^ What it says in the title
Now the false positives are also shown in the Brussels data or OSM data depending on the type of false positive. It would be better if the false positives are only used in the difference comparison.
Depends on #42.
Integrate the scraper, OSM processor and QGIS scripts
Django should be placed in production mode to prevent debug information to be shown to the public.
Post process the output files for the frontend.
The log files should be cleaned after a certain amount of time to prevent the server of running out of disk space. Especially the debug.log
file created by the Python processing script.
Add in an open in JOSM button.
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.