Skip to content

sitn/OpenComptage

 
 

Repository files navigation

OpenComptage is a QGIS plugin to manage Canton Neuchâtel's Comptages.

The documentation is here.

  • Purpose The purposes of the QGIS plugin are:
    • plan the future traffic measure
    • prepare the current traffic measure
    • import and management of the measure data
    • centralized management of the measure data

Dev environnement on Windows

First time or if you've changed QGIS version

Delete any existing .venv Create .venv with the python of QGIS and copy .env file from QGIS installation folder:

& "C:\Program Files\QGIS 3.40.9\apps\Python312\python.exe" -m venv .venv
cp "C:\Program Files\QGIS 3.40.9\bin\qgis-ltr-bin.env" .env

Create a simlink so the plugin being developed will be loaded directly in QGIS:

Run powershell as admin in the current directory:

Start-Process powershell -Verb RunAs -ArgumentList "-NoExit -Command `"Set-Location -LiteralPath '$(Get-Location)'`""

Create symlink (adapt <USERNAME>):

New-Item -ItemType SymbolicLink `
  -Path "C:\Users\<USERNAME>\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\comptages" `
  -Target "$(Get-Location)\comptages"

Now you should see the plugin in the list of available plugins.

Follow /docs/installation.md, the deployment section, step 1, 2 and 6. Finally add GDAL_LIBRARY_PATH to your .env according to step 1.

Modify the loaded plugin

Activate venv and load dotenv file

./venv/bin/activate
./load_dotenv.ps1

You can edit the code and use plugin reloader extension to see the changes

Docs

pip install mkdocs mkdocs-material
mkdocs serve

Build the docs:

mkdocs build

About

Neuchâtel "comptages"

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 79.1%
  • QML 20.0%
  • Other 0.9%