Skip to content

Instantly share code, notes, and snippets.

@signedav
signedav / legendserver_bugresearch.md
Last active February 24, 2023 11:17
Legend Server Bug Research

Bring it home

1. Commit

Fix inconcequent use of DPI at generating the WMS legend

  • Consider DPI of QgsWmsRenderContext what is the OGC default (0.28 mm per pixel) or the passed WMS parameter - this is done by creating the QgsRenderContext by the mapSettings (with BBOX) or applying the dotsPerMm to the scaleFactor.

  • Additionally the image size needs to be calculated according to the QgsRenderContext now, what means it needs to be generated before.

  • The QPainter needs to be applied after to the context (since it's not passed by creating the context anymore).

@signedav
signedav / oid_generating.md
Last active July 21, 2025 07:44
OID (TID / BID) Generation

Generieren von OIDs (TID/BID) und Behälter (Basket) Manager

Hintergrund

Model Baker macht das Arbeiten mit INTERLIS Datenmodellen in QGIS einfach. Dennoch bedürfen gewisse Szenarien noch manueller Konfigurationen. Eines davon ist das Generieren von OID Werten und Behälter.

1. OID Generierung

Problem

Das Format der systemübergreifenden TID oder auch der BID (für Behälter) kann in INTERLIS Modellen OID AS definiert werden:

@signedav
signedav / base_model_suport.md
Last active April 21, 2023 10:20
Base Model Support

Verbessertes Arbeiten mit erweiterten INTERLIS Modellen in Model Baker

Hintergrund

Model Baker macht das Arbeiten mit INTERLIS Datenmodellen in QGIS einfach. Dennoch bedürfen gewisse Szenarien noch manueller Konfigurationen. Eines davon ist das Arbeiten mit erweiterten Modellen. Dies könnte verbessert werden.

Layerbenennung und Sichtbarkeit

Problem

Wenn ein Modell bzw. Topic erweiterte Klassen enthält, werden die alle in der physischen Datenbank implementiert und folglich Layer in QGIS erstellt. Da die erweiterten Klassen oftmals die gleichen Namen haben, ist es schwierig sich zurecht zu finden.

@signedav
signedav / sequence_usabilityhubexporter.md
Last active August 3, 2022 13:41
Sequence Diagramm UsabILIty Hub Exporter

Simple Workflow

sequenceDiagram
    participant WI
    participant TM
    participant mb
    WI->>TM: Target (with directories)
    mb->>WI: Models
    WI->>TM: Models of Interest
    WI->>TM: ProjectTopping
@signedav
signedav / baker_usabilityhub_exporter_final.md
Last active August 26, 2022 10:57
QGIS Model Baker - UsabILIty Hub Exporter Final Concept

UsabIlity Hub Exporter Final Concept

Final concept only containing things that will be implemented and addtional notes how the technical implementation could be.

1. Create UsabILIty Meta Data

New wizard with an own button / menu entry.

image

@signedav
signedav / changelog_710.md
Last active April 8, 2022 07:37
Changelog 7.1.0

With release 7.1. of the QGIS Model Baker the backend library is separated from the graphical components. As well there PostgreSQL services are supported (pg_service.conf) in the database selection as well as the SSL mode. Another nice thing is the new "Link Child Dialog" in the Relation Editor Widget provided by the new plugin Linking Relation Editor

Linking Relation Editor

With Qgis Model Baker the Linking Relation Editor plugin is loaded as dependency. When a project is generated this widget type is chosen as the Relation Editor Widget.

image

When linking child features there will be opened a much more comfortable dialog, than we are used to. image

@signedav
signedav / usabilityhub_id_and_layertree.md
Last active March 23, 2022 08:17
UsabILIty Hub Layertree concept

Note that those are only notes made by @signedav and not a clearly defined concept. See for the implemented part opengisch/QgisModelBaker#648

Layertree, internal Id and Relations

Super Layertree

First of all the layer tree file gets powerfull.

The layer tree file will contain in future:

  • Optional internal id's in the layers (and the groups) - not integrated
@signedav
signedav / baker_usabilityhub_exporter.md
Last active July 15, 2022 11:41
QGIS Model Baker - UsabILIty Hub Exporter

UsabIlity Hub Exporter

This is the original started concept, containing a lot of general thoughts. For the final concept see: https://gist.github.com/signedav/44b12b6667c707f646dc6177e026ac56

1. Create UsabILIty Meta Data

We will have a new wizard - and not to insert it into the existing workflow wizard, since it's kind of an operator functionality and the normal user should not be confronted to much with it - with an own button / menu entry.

image

@signedav
signedav / Intersection_ErrorLog.md
Created December 20, 2021 15:38
Intersection_ErrorLog.
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3">
<HEADERSECTION SENDER="ili2pg-4.6.1-63db90def1260a503f0f2d4cb846686cd4851184" VERSION="2.3"><MODELS><MODEL NAME="IliVErrors" VERSION="2016-06-10" URI="mailto:ceis@localhost"></MODEL></MODELS></HEADERSECTION>
<DATASECTION>
<IliVErrors.ErrorLog BID="b1">
<IliVErrors.ErrorLog.Error TID="o1"><Message>ili2pg-4.6.1-63db90def1260a503f0f2d4cb846686cd4851184</Message><Type>Info</Type><TechDetails>logGeneralInfo():  (Ili2db.java:1458)</TechDetails></IliVErrors.ErrorLog.Error>
<IliVErrors.ErrorLog.Error TID="o2"><Message>ili2c-5.2.3-3ec7a10e9bacc87e149a14a7f11a6035e0481c69</Message><Type>Info</Type><TechDetails>logGeneralInfo():  (Ili2db.java:1459)</TechDetails></IliVErrors.ErrorLog.Error>
<IliVErrors.ErrorLog.Error TID="o3"><Message>iox-ili-1.21.8-a6aee68136447c0616995e56888fa9c7ef362a77</Message><Type>Info</Type><TechDetails>logGeneralInfo():  (Ili2db.java:1460)</TechDetails></IliVErrors.ErrorLog.Error>
<IliVErrors.ErrorLog