Skip to content

rduivenvoorde/pdokservicesplugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDOK Service Plugin

English

This plugin is probably only interesting for the dutch audience.

It shows a list of available web services (WMS, WMTS, WFS, OGC:API tiles/features etc) from our national data services (in our national crs EPSG:28992). Further information in dutch below.

If you think this plugin is useful sent me a kind email :-)

Nederlands

PDOK (Publieke Dienstverlening Op de Kaart) is een plugin om de verschillende PDOK services te testen of te bekijken.

Op basis van een json bestand (IN de plugin) met alle op dit moment beschikbare services wordt een dialoog opgebouwd met daarin

  • het soort service (WMS, WMTS, WFS, TMS, OGC:API tiles/features)
  • de naam van de service
  • een regel per laag van de service

Door op een item te klikken wordt de service direct aangeroepen een getoond.

Alle services zijn minstens in EPSG:28992 beschikbaar

Developers

Install dev tools with:

pip3 install -r pdokservicesplugin/requirements/dev.txt

Lint python code with:

pylint --errors-only --disable=E0611 pdokservicesplugin

Format python code with:

black pdokservicesplugin

Update layers config file in pdokservicesplugin/resources/layers-pdok.json (run from root of repo):

./scripts/generate-pdok-layers-config.sh pdokservicesplugin/resources/layers-pdok.json

Create symlink to QGIS plugin directory from repository directory (Windows):

Rem maak een QGIS profiel aan met de naam "pdokplugin-develop"
mklink /d "%APPDATA%\QGIS\QGIS3\profiles\pdokplugin-develop\python\plugins\pdokservicesplugin" "%REPODIR%\pdokservicesplugin"

Create symlink to QGIS plugin directory from repository directory (Ubuntu):

# maak een QGIS profiel aan met de naam "pdokplugin-develop"
symlink_path "$(realpath ~)/.local/share/QGIS/QGIS3/profiles/pdokplugin-develop/python/plugins/pdokservicesplugin"
mkdir -p $(dirname "$symlink_path")
ln -s "$(pwd)/pdokservicesplugin" "$symlink_path" # uitvoeren vanuit root van repo

Extend the layers config file using OGC:API urls, see scripts/modify-layers-pdok-ogcapi.py for more detailed instructions.