Skip to content

Commit

Permalink
Describe how to use the GeoJSON shape file in QGIS
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Mar 15, 2024
1 parent ef15e53 commit 9753999
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# verkeersdrukte
Java application to serve traffic data from NDW in a friendly format

## Usage in QGIS
The software presents a shape file in GeoJSON format that can be imported into QGIS.
Each point in the GeoJSON represents a measurement site,
and contains all properties of the original shape file,
plus URLs to the static data (fixed properties), dynamic data (traffic speed and flow) and a link to Google streetview.

First, add an openstreet background layer,
by clicking XYZ Tiles / OpenStreetMap
![QGIS Add openstreetmap](images/qgis_osm.png)

Then, add a vector layer, by opening menu
Layer / Add Layer / Add Vector Layer ...
![QGIS Add vector layer](images/qgis_vectorlayer.png)
The URL is https://stofradar.nl/traffic/static
Click 'Add', then 'Close'.

You should now see all measurement sites on the map.
Select a particular site using the 'Identify features' button.

![QGIS Add vector layer](images/qgis_identify.png)

This shows the static information about the measurement site,
including an URL to the dynamic information. For example:
http://stofradar.nl:9002/traffic/dynamic/RWS01_MONIBAS_0121hrr0292ra

The URL to the SSE event stream has '/events' appended:
http://stofradar.nl:9002/traffic/dynamic/RWS01_MONIBAS_0121hrr0292ra/events
Binary file added images/qgis_identify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/qgis_osm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/qgis_vectorlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9753999

Please sign in to comment.