Diskussion:Workshop QGIS Python GeoPython 2017: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
K
Zeile 1: Zeile 1:
 
See also
 
See also
* Step-by-step guide for the workshop on [https://github.com/simran001/GeoPython-Workshop/blob/master/README.md Github].
+
* Step-by-step guide for the workshop on [https://github.com/simran001/GeoPython-Workshop/blob/master/README.md Github.]
 
* https://github.com/simran001/PyQGIS
 
* https://github.com/simran001/PyQGIS
 
* https://etherpad.coredump.ch/p/Python-Workshop
 
* https://etherpad.coredump.ch/p/Python-Workshop

Version vom 27. April 2017, 16:33 Uhr

See also

User Defined or Custom Expression Functions (CEFs) can be used in ...

  1. "Layer > Properties > Tab Fields" in Button "Text Edit" in Default- and in Constraints-Field.
  2. "Layer > Properties > Tab Style" in "Label with".
  3. "Select features using an expression".
  4. "Field Calculator".
  5. "Statistical Summary" Panel.
  6. (other places?)

Possible examples

  1. Function doing something "local" like from other field(s).
  2. Functions reading something like a "Singleton" like a system environment variable (usage "env('USERNAME')") layer properties or number sequence (spcial Plugin needed?).
  3. Function for remote webservice: geocoding (reading from the internet).
  4. Out of scope: Function reading from other layers (rather candidate for a plugin).

After the GeoPython Workshop, Simran makes pull request to Expression Plus Plugin adding "env()" fn.

Optional (but highly demanded) use case: A user wants to create a layer (table) which as a primary key (id) which behaves like 'autoincrement' when user edit a new feature. So user does not have to care about unique, sequential values for the PK, like autoincrement in MySQL). In QGIS 3 this is available when user chooses "UNIQUE" as constraint. In QGIS 2.18 (or before) there is a clever custom expression function needed. => Solution?

Notes

Collected (special) use cases:

Plugins:

Open: