Metadata-Version: 2.3
Name: pinta-qgis-plugin
Version: 0.1.0
Summary: QGIS plugin component of the elevation production system
Requires-Dist: pinta-db>=0.2.0,<0.3
Requires-Dist: pinta-lib
Requires-Dist: qgis-plugin-tools
Requires-Dist: numpy>=1,<2 ; extra == 'qgis'
Requires-Dist: owslib==0.29.3 ; extra == 'qgis'
Requires-Dist: psycopg2-binary>=2,<3 ; extra == 'qgis'
Requires-Dist: requests>=2,<3 ; extra == 'qgis'
Requires-Python: >=3.12, <3.14
Project-URL: Homepage, https://github.com/nlsfi/pinta
Project-URL: Repository, https://github.com/nlsfi/pinta
Project-URL: Changelog, https://github.com/nlsfi/pinta/blob/main/db/qgis_plugin/CHANGELOG.md/
Provides-Extra: qgis
Description-Content-Type: text/markdown

# Pinta QGIS plugin component

Launch development QGIS with `uv run --all-extras qpdt s` from the devcontainer shell in this directory, or with `make qgis-start` from the project root.

Make sure you have copied the necessary environment variables from [.env.example](/.env.example)

## Providing custom basemaps

It is possible to provide custom basemaps for Pinta QGIS plugin. Just copy the
default [basemap_layer_config.json](src/pinta_qgis_plugin/resources/layer_config/basemap_layer_config.json) and modify
it to add your own basemaps. Currently XYZ, WMS and WMTS basemaps are supported.

Here is an example of a basemap layer config:

```json
[
    {
    "layer_name": "OpenStreetMap",
    "uri_parameters": {
      "url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
      "type": "xyz"
    }
  },
  {
    "layer_name": "Your own basemap",
    "uri_parameters": {
      "url": "https://your-wmts-service/wmts/1.0.0/WMTSCapabilities.xml",
      "crs": "EPSG:3067",
      "layers": "layername",
      "tileMatrixSet": "ETRS-TM35FIN",
      "styles": "default"
    }
  }
]

```

## Development

### Translating with QT Linguistic

The translation files are in [i18n](./src/pinta/resources/i18n) folder. Translatable
content in python files is code such as `tr(u"Hello World")`.

Translation files can be updated with `qpdt transup` or wait them to be updated automatically with "update-translations"
pre-commit hook.

After updating ts files, you can open file you wish to translate with Qt Linguist or code editor, make the changes and
compile the translations to .qm files using `qpdt transcompile`.
