Wichtig

Übersetzen ist eine Gemeinschaftsleistung Sie können mitmachen. Diese Seite ist aktuell zu 66.91% übersetzt.

24.1.2. Kartografie

24.1.2.1. Punkte an Objekten ausrichten

Berechnet die erforderliche Drehung, um Punktelemente mit dem nächstgelegenen Objekt aus einem anderen Referenz-Layer auszurichten. Der Ausgabe-Layer wird um ein neues Feld erweitert, das den Winkel (in Grad, im Uhrzeigersinn) zum nächstgelegenen Referenzobjekt enthält.

Optional kann die Symbologie des Ausgabe-Layers so eingestellt werden, dass sie automatisch das berechnete Rotationsfeld verwendet, um Punktsymbole zu drehen. Bei Bedarf kann ein maximaler Abstand für die Punkte festgelegt werden, um zu vermeiden, dass isoliert liegende Punkte an weit entfernten Objekten ausgerichtet werden.

Hinweis

Dieser Algorithmus ist für Anwendungsfälle wie die Ausrichtung von Gebäudepunktsymbolen auf die nächstgelegene Straßenrichtung konzipiert.

checkbox Erlaubt auch die Insitu-Bearbeitung von Punkt-Objekten

Parameter

Bezeichnung

Name

Typ

Beschreibung

Eingabelayer

INPUT

[Vektor: Punkt]

Punkt-Objekte, für die die Drehung berechnet werden soll

Referenz-Layer

REFERENCE_LAYER

[Vektor: Geometrie]

Layer mit den Objekten, aus denen die Rotation berechnet werden soll

Maximal zu berücksichtigende Entfernung

Optional

MAX_DISTANCE

[numerisch: Double]

Standard: Nicht gesetzt

Wenn innerhalb dieser Entfernung kein Referenz-Objekt gefunden wird, wird dem Punkt keine Drehung zugewiesen.

Winkel-Feldname

FIELD_NAME

[Text]

Standard: ‚rotation‘

Feld, in dem der Rotationswert gespeichert wird.

Symbologie automatisch zuweisen

APPLY_SYMBOLOGY

[Boolean]

Standard: True

Dreht die Symbolmarkierung der Objekte anhand des ermittelten Winkelwerts.

Ausgerichteter Layer

OUTPUT

[Vektor: Punkt]

Standard: [In temporäre Datei speichern]

Legen Sie fest, wie der Ausgabe-Layer gespeichert werden soll. Mögliche Optionen sind:

  • Temporäre Ebene erstellen (TEMPORARY_OUTPUT)

  • In Datei speichern…

  • In GeoPackage speichern…

  • In Datenbank speichern…

Die Kodierung der Datei kann ebenfalls hier geändert werden.

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Ausgerichteter Layer

OUTPUT

[Vektor: Punkt]

Der neue Punkt-Layer mit einem Rotationsfeld. Wenn der Layer direkt in QGIS geladen wird, wird standardmäßig die Symbologie des Eingabe-Layers angewendet, mit einer datendefinierten Drehung für die Punktdarstellung.

Pythoncode

Algorithm-Kennung: native:angletonearest

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.2. Stildatenbanken kombinieren

Kombiniert mehrere QGIS-Stildatenbanken zu einer einzigen Stildatenbank. Wenn Elemente desselben Typs mit demselben Namen in verschiedenen Quelldatenbanken vorhanden sind, werden diese umbenannt, damit sie in der kombinierten Ausgabedatenbank eindeutige Namen haben.

Parameter

Bezeichnung

Name

Typ

Beschreibung

Eingabe-Datenbanken

INPUT

[Datei] [Liste]

Dateien, die QGIS-Stilelemente enthalten

Zu kombinierende Objekte

OBJECTS

[Aufzählung] [Liste]

Arten von Stilelementen in den Eingabedatenbanken, die Sie in die neue Datenbank übernehmen möchten. Dies können sein:

Ausgabe-Datenbank

OUTPUT

[Datei]

Standard: [In temporäre Datei speichern]

Ausgabe: .XML-Datei, die die ausgewählten Stilelemente kombiniert. Mögliche Optionen sind:

  • In temporärer Datei speichern

  • In Datei speichern…

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Anzahl der Farbverläufe

COLORRAMPS

[numerisch: Ganzzahl]

Anzahl der Beschriftungseinstellungen

LABELSETTINGS

[numerisch: Ganzzahl]

Ausgabe-Datenbank

OUTPUT

[Datei]

Ausgabe .XML-Datei, die die ausgewählten Stilelemente kombiniert

Anzahl der Symbole

SYMBOLS

[numerisch: Ganzzahl]

Anzahl der Textformate

TEXTFORMATS

[numerisch: Ganzzahl]

Pythoncode

Algorithm-Kennung: native:combinestyles

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.3. Create categorized renderer from styles

Sets a vector layer’s renderer to a categorized renderer using matching symbols from a style database. If no style file is specified, symbols from the user’s current symbol library are used instead.

A specified expression or field is used to create categories for the renderer. Each category is individually matched to the symbols which exist within the specified QGIS XML style database. Whenever a matching symbol name is found, the category’s symbol will be set to this matched symbol.

If desired, outputs can also be tables containing lists of the categories which could not be matched to symbols, and symbols which were not matched to categories.

Parameter

Bezeichnung

Name

Typ

Beschreibung

Eingabelayer

INPUT

[Vektor: alle]

Vector layer to apply a categorized style to

Categorize using expression

FIELD

[Ausdruck]

Field or expression to categorize the features

Style database (leave blank to use saved symbols)

STYLE

[Datei]

File (.XML) containing the symbols to apply to the input layer categories. The file can be obtained from the Style Manager Share symbols tool. If no file is specified, QGIS local symbols library is used.

Use case-sensitive match to symbol names

CASE_SENSITIVE

[Boolean]

Standard: falsch

If True (checked), applies a case sensitive comparison between the categories and symbols names

Ignore non-alphanumeric characters while matching

TOLERANT

[Boolean]

Standard: falsch

If True (checked), non-alphanumeric characters in the categories and symbols names will be ignored, allowing greater tolerance during the match.

Non-matching categories

Optional

NON_MATCHING_CATEGORIES

[vector: table]

Standard: [Ausgabe überspringen]

Output table for categories which do not match any symbol in the database. One of:

  • Ausgabe übersrpingen

  • Temporäre Ebene erstellen (TEMPORARY_OUTPUT)

  • In Datei speichern…

  • In GeoPackage speichern…

  • In Datenbank speichern…

Die Kodierung der Datei kann ebenfalls hier geändert werden.

Non-matching symbol names

Optional

NON_MATCHING_SYMBOLS

[vector: table]

Standard: [Ausgabe überspringen]

Output table for symbols from the provided style database which do not match any category. One of:

  • Ausgabe übersrpingen

  • Temporäre Ebene erstellen (TEMPORARY_OUTPUT)

  • In Datei speichern…

  • In GeoPackage speichern…

  • In Datenbank speichern…

Die Kodierung der Datei kann ebenfalls hier geändert werden.

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Non-matching categories

NON_MATCHING_CATEGORIES

[vector: table]

Lists categories which could not be matched to any symbol in the provided style database

Non-matching symbol names

NON_MATCHING_SYMBOLS

[vector: table]

Lists symbols from the provided style database which could not match any category

Categorized layer

OUTPUT

[wie Eingabe]

The input vector layer with the categorized style applied. No new layer is output.

Pythoncode

Algorithm ID: native:categorizeusingstyle

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.4. Create style database from project

Extracts all style objects (symbols, color ramps, text formats and label settings) from a QGIS project.

The extracted symbols are saved to a QGIS style database (XML format), which can be managed and imported via the Style Manager dialog.

Parameter

Bezeichnung

Name

Typ

Beschreibung

Input project (leave blank to use current)

Optional

INPUT

[Datei]

A QGIS project file to extract the style items from

Objects to extract

OBJECTS

[Aufzählung] [Liste]

Types of style items in the input project you would like to put in the new database. These can be:

Ausgabe-Datenbank

OUTPUT

[Datei]

Standard: [In temporäre Datei speichern]

Specify the output .XML file for the selected style items. One of:

  • In temporärer Datei speichern

  • In Datei speichern…

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Anzahl der Farbverläufe

COLORRAMPS

[numerisch: Ganzzahl]

Number of color ramps

Anzahl der Beschriftungseinstellungen

LABELSETTINGS

[numerisch: Ganzzahl]

Number of label settings

Ausgabe-Datenbank

OUTPUT

[Datei]

Output .XML file for the selected style items

Anzahl der Symbole

SYMBOLS

[numerisch: Ganzzahl]

Number of symbols

Anzahl der Textformate

TEXTFORMATS

[numerisch: Ganzzahl]

Number of text formats

Pythoncode

Algorithm ID: native:stylefromproject

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.5. Export atlas layout as image

Exports the atlas of a print layout as image files (e.g. PNG or JPEG images).

If a coverage layer is set, the selected layout’s atlas settings exposed in this algorithm will be overwritten. In this case, an empty filter or sort by expression will turn those settings off.

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Optional

COVERAGE_LAYER

[Vektor: Geometrie]

Layer to use to generate the atlas

Filterausdruck

FILTER_EXPRESSION

[Ausdruck]

Expression to use to filter out atlas features

Sort expression

Optional

SORTBY_EXPRESSION

[Ausdruck]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[Boolean]

Standard: falsch

Determines if sorting should be inverted. Used when a sort expression is provided.

Output filename expression

FILENAME_EXPRESSION

[Ausdruck]

Default: ‚output_‘||@atlas_featurenumber

Expression for use to generate filenames

Output folder

FOLDER

[Verzeichnis]

Destination folder where the images will be generated

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map layers to assign to unlocked map item(s)

Optional

LAYERS

[enumeration] [layer]

Layers to display in the map item(s) whose contents are not locked

Image format

EXTENSION

[Aufzählung]

Default: png

File format of the generated output(s). The list of available formats varies depending on OS and installed drivers.

DPI

Optional

DPI

Standard: Nicht gesetzt

[numerisch: Double]

DPI of the output file(s). If not set, the value in the print layout settings will be used.

Generate world file

GEOREFERENCE

[Boolean]

Standard: True

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[Boolean]

Standard: True

Determines if RDF metadata (title, author, …) should be generated

Enable antialiasing

ANTIALIAS

[Boolean]

Standard: True

Determines if antialiasing should be enabled

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Image file

OUTPUT

[Datei]

Image files generated by the atlas layout

Pythoncode

Algorithm ID: native:atlaslayouttoimage

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.6. Export atlas layout as PDF (multiple files)

Exports the atlas of a print layout to multiple PDF files.

If a coverage layer is set, the selected layout’s atlas settings exposed in this algorithm will be overwritten. In this case, an empty filter or sort by expression will turn those settings off.

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Optional

COVERAGE_LAYER

[Vektor: Geometrie]

Layer to use to generate the atlas

Filterausdruck

FILTER_EXPRESSION

[Ausdruck]

Expression to use to filter out atlas features

Sort expression

Optional

SORTBY_EXPRESSION

[Ausdruck]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[Boolean]

Standard: falsch

Determines if sorting should be inverted. Used when a sort expression is provided.

Output filename

Optional

OUTPUT_FILENAME

[Ausdruck]

Name pattern of the PDF output files.

Output folder

OUTPUT_FOLDER

[Verzeichnis]

Destination folder for the output PDF files.

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map layers to assign to unlocked map item(s)

Optional

LAYERS

[enumeration] [layer]

Layers to display in the map item(s) whose contents are not locked

DPI

Optional

DPI

Standard: Nicht gesetzt

[numerisch: Double]

DPI of the output file(s). If not set, the value in the print layout settings will be used.

Always export as vectors

FORCE_VECTOR

[Boolean]

Standard: falsch

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[Boolean]

Standard: falsch

Forces all the items in the map to be rasterized. This parameter takes precedence over the FORCE_VECTOR parameter.

Append georeference information

GEOREFERENCE

[Boolean]

Standard: True

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[Boolean]

Standard: True

Determines if RDF metadata (title, author, …) should be generated

Disable tiled raster layer exports

DISABLE_TILED

[Boolean]

Standard: falsch

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[Boolean]

Standard: True

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[Aufzählung]

Standard: 0

Determines if text should be exported as path or text objects. Possible options are:

  • 0 - Always export text as paths (recommended)

  • 1 - Always export texts as text objects

  • 2 - Prefer exporting texts as text objects

Image compression

IMAGE_COMPRESSION

[Aufzählung]

Standard: 0

Determines compression level of the image and how suitable the file could be for printing outputs or post-production in external applications. Possible options are:

  • 0 - Lossy (JPEG)

  • 1 - Lossless

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

PDF file

OUTPUT

[Datei]

PDF file corresponding to the exported atlas layout

Pythoncode

Algorithm ID: native:atlaslayouttomultiplepdf

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.7. Export atlas layout as PDF (single file)

Exports the atlas of a print layout as a single PDF file.

If a coverage layer is set, the selected layout’s atlas settings exposed in this algorithm will be overwritten. In this case, an empty filter or sort by expression will turn those settings off.

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Optional

COVERAGE_LAYER

[Vektor: Geometrie]

Layer to use to generate the atlas

Filterausdruck

FILTER_EXPRESSION

[Ausdruck]

Expression to use to filter out atlas features

Sort expression

Optional

SORTBY_EXPRESSION

[Ausdruck]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[Boolean]

Standard: falsch

Determines if sorting should be inverted. Used when a sort expression is provided.

PDF file

OUTPUT

[Datei]

Default: [Save to temporary file]

Name (including path) of the output file. One of:

  • In temporärer Datei speichern

  • In Datei speichern…

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map layers to assign to unlocked map item(s)

Optional

LAYERS

[enumeration] [layer]

Layers to display in the map item(s) whose contents are not locked

DPI

Optional

DPI

Standard: Nicht gesetzt

[numerisch: Double]

DPI of the output file(s). If not set, the value in the print layout settings will be used.

Always export as vectors

FORCE_VECTOR

[Boolean]

Standard: falsch

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[Boolean]

Standard: falsch

Forces all the items in the map to be rasterized. This parameter takes precedence over the FORCE_VECTOR parameter.

Append georeference information

GEOREFERENCE

[Boolean]

Standard: True

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[Boolean]

Standard: True

Determines if RDF metadata (title, author, …) should be generated

Disable tiled raster layer exports

DISABLE_TILED

[Boolean]

Standard: falsch

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[Boolean]

Standard: True

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[Aufzählung]

Standard: 0

Determines if text should be exported as path or text objects. Possible options are:

  • 0 - Always export text as paths (recommended)

  • 1 - Always export texts as text objects

  • 2 - Prefer exporting texts as text objects

Image compression

IMAGE_COMPRESSION

[Aufzählung]

Standard: 0

Determines compression level of the image and how suitable the file could be for printing outputs or post-production in external applications. Possible options are:

  • 0 - Lossy (JPEG)

  • 1 - Lossless

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

PDF file

OUTPUT

[Datei]

PDF file corresponding to the exported atlas layout

Pythoncode

Algorithm ID: native:atlaslayouttopdf

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.8. Export print layout as image

Exports a print layout as an image file (e.g. PNG or JPEG images)

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Print layout

LAYOUT

[layout]

Layout to export

Image file

OUTPUT

[Datei]

Default: [Save to temporary file]

Name (including path) of the output file. One of:

  • In temporärer Datei speichern

  • In Datei speichern…

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map layers to assign to unlocked map item(s)

Optional

LAYERS

[enumeration] [layer]

Layers to display in the map item(s) whose contents are not locked

DPI

Optional

DPI

Standard: Nicht gesetzt

[numerisch: Double]

DPI of the output file(s). If not set, the value in the print layout settings will be used.

Generate world file

GEOREFERENCE

[Boolean]

Standard: True

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[Boolean]

Standard: True

Determines if RDF metadata (title, author, …) should be generated

Enable antialiasing

ANTIALIAS

[Boolean]

Standard: True

Determines if antialiasing should be enabled

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Image file

OUTPUT

[Datei]

Image file corresponding to the exported print layout

Pythoncode

Algorithm ID: native:printlayouttoimage

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.9. Export print layout as PDF

Exports a print layout as a PDF file.

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Print Layout

LAYOUT

[layout]

Layout to export

PDF file

OUTPUT

[Datei]

Default: [Save to temporary file]

Name (including path) of the output file. One of:

  • In temporärer Datei speichern

  • In Datei speichern…

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map layers to assign to unlocked map item(s)

Optional

LAYERS

[enumeration] [layer]

Layers to display in the map item(s) whose contents are not locked

DPI

Optional

DPI

Standard: Nicht gesetzt

[numerisch: Double]

DPI of the output file(s). If not set, the value in the print layout settings will be used.

Always export as vectors

FORCE_VECTOR

[Boolean]

Standard: falsch

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[Boolean]

Standard: falsch

Forces all the items in the map to be rasterized. This parameter takes precedence over the FORCE_VECTOR parameter.

Append georeference information

GEOREFERENCE

[Boolean]

Standard: True

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[Boolean]

Standard: True

Determines if RDF metadata (title, author, …) should be generated

Disable tiled raster layer exports

DISABLE_TILED

[Boolean]

Standard: falsch

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[Boolean]

Standard: True

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[Aufzählung]

Standard: 0

Determines if text should be exported as path or text objects. Possible options are:

  • 0 - Always export text as paths (recommended)

  • 1 - Always export texts as text objects

  • 2 - Prefer exporting texts as text objects

Image compression

IMAGE_COMPRESSION

[Aufzählung]

Standard: 0

Determines compression level of the image and how suitable the file could be for printing outputs or post-production in external applications. Possible options are:

  • 0 - Lossy (JPEG)

  • 1 - Lossless

Export layers as separate PDF files

SEPARATE_LAYERS

[Boolean]

Standard: falsch

If True, then a separate PDF file will be created per layer per map item in the layout. Additionally, separate PDF files may be created for other complex layout items, resulting in a set of PDF files which contain logical atomic components of the layout.

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

PDF file

OUTPUT

[Datei]

PDF file(s) corresponding to the exported print layout

Pythoncode

Algorithm ID: native:printlayouttopdf

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.10. Extract labels

Extracts label information from a rendered map at a given extent and scale.

If a map theme is provided, the rendered map will match the visibility and symbology of that theme. If left blank, all visible layers from the project will be used. Extracted label information include: position (served as point geometries), the associated layer name and feature ID, label text, rotation (in degree, clockwise), multiline alignment, and font details.

Warnung

This algorithm drops existing primary keys or FID values and regenerates them in output layers.

Parameter

Grundlegende Parameter

Bezeichnung

Name

Typ

Beschreibung

Map extent

EXTENT

[Ausdehnung]

Extent of the map to extract the labels from

Verfügbare Methoden sind:

  • Aus Layer berechnen…: verwendet die Ausdehnung eines im aktuellen Projekt geladenen Layers

  • Berechne aus Layout-Karte…: verwendet die Ausdehnung eines Layout-Kartenelements im aktiven Projekt

  • Berechne aus Lesezeichen…: verwendet den Bereich eines gespeicherten Lesezeichens

  • Ausdehnung der Kartenansicht verwenden

  • Auf Karte zeichnen: Klicken und ziehen Sie ein Rechteck, das den zu berücksichtigenden Bereich abgrenzt

  • Geben Sie die Koordinaten als xmin, xmax, ymin, ymax ein.

Map scale

SCALE

[scale]

Extracted labels will be rendered using their properties set at this scale.

Map theme

Optional

MAP_THEME

[maptheme]

A map theme displaying the layers to extract the labels from. If unset, labels of the currently visible layers are extracted.

Include unplaced labels

INCLUDE_UNPLACED

[Boolean]

Standard: True

Specify whether all overlapping labels should be extracted, including the conflicting (thus unplaced) ones.

Extracted labels

OUTPUT

[Vektor: Punkt]

Standard: [Create temporary layer]

Specify the output vector layer for the extent(s). One of:

  • Temporäre Ebene erstellen (TEMPORARY_OUTPUT)

  • In Datei speichern…

  • In GeoPackage speichern…

  • In Datenbank speichern…

Die Kodierung der Datei kann ebenfalls hier geändert werden.

Fortgeschrittene Parameter

Bezeichnung

Name

Typ

Beschreibung

Map resolution (in DPI)

Optional

DPI

Default: 96.0

[numerisch: Double]

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Extracted labels

OUTPUT

[Vektor: Punkt]

Point vector layer representing the fetched labels. Each feature has attributes identifying its source (layer, feature ID) and the assigned labeling properties (text, font, size, rotation, …). A default style with labeling and null symbol is also applied to the layer.

Warnung

Because some of the generated fields have name with more than 10 characters, using the ESRI shapefile format (.SHP) to store the output may lead to unexpected rendering while loading the layer in QGIS.

Pythoncode

Algorithm ID: native:extractlabels

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.12. Set layer style

Applies a provided style to a layer. The style must be defined in a QML file.

No new output are created: the style is immediately assigned to the layer.

Parameter

Bezeichnung

Name

Typ

Beschreibung

Input Layer

INPUT

[layer]

Input layer you want to apply the style to

Style file

STYLE

[Datei]

Path to the .qml file of the style

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

OUTPUT

[wie Eingabe]

The input layer with the new style assigned. No new layer is created.

Pythoncode

Algorithm ID: native:setlayerstyle

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.13. Topological coloring

Assigns a color index to polygon features in such a way that no adjacent polygons share the same color index, whilst minimizing the number of colors required.

The algorithm allows choice of method to use when assigning colors.

A minimum number of colors can be specified if desired. The color index is saved to a new attribute named color_id.

The following example shows the algorithm with four different colors chosen; as you can see each color class has the same amount of features.

../../../../_images/topological_color.png

Abb. 24.1 Topological colors example

Parameter

Bezeichnung

Name

Typ

Beschreibung

Eingabelayer

INPUT

[Vektor: Polygon]

The input polygon layer

Minimum number of colors

MIN_COLORS

[numerisch: Ganzzahl]

Default: 4

The minimum number of colors to assign. Minimum 1, maximum 1000.

Minimum distance between features

MIN_DISTANCE

[numerisch: Double]

Default: 0.0

Prevent nearby (but non-touching) features from being assigned equal colors. Minimum 0.0.

Balance color assignment

BALANCE

[Aufzählung]

Standard: 0

Options are:

  • 0 — By feature count

    Attempts to assign colors so that the count of features assigned to each individual color index is balanced.

  • 1 — By assigned area

    Assigns colors so that the total area of features assigned to each color is balanced. This mode can be useful to help avoid large features resulting in one of the colors appearing more dominant on a colored map.

  • 2 — By distance between colors

    Assigns colors in order to maximize the distance between features of the same color. This mode helps to create a more uniform distribution of colors across a map.

Colored

OUTPUT

[Vektor: Polygon]

Standard: [Create temporary layer]

Specify the output layer. One of:

  • Temporäre Ebene erstellen (TEMPORARY_OUTPUT)

  • In Datei speichern…

  • In GeoPackage speichern…

  • In Datenbank speichern…

Die Kodierung der Datei kann ebenfalls hier geändert werden.

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

Colored

OUTPUT

[Vektor: Polygon]

Polygon vector layer with an added color_id column

Pythoncode

Algorithm ID: qgis:topologicalcoloring

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.

24.1.2.14. Transfer annotations from main layer

Transfers all annotations from the main annotation layer in a project to a new annotation layer. Items placement can then be adjusted within the layer stack.

Parameter

Bezeichnung

Name

Typ

Beschreibung

New layer name

LAYER_NAME

[Text]

Default: ‚Annotations‘

Name of the annotations layer to create

Ausgaben

Bezeichnung

Name

Typ

Beschreibung

New layer name

OUTPUT

[layer]

A layer with items from the main annotation layer

Pythoncode

Algorithm ID: native:transferannotationsfrommain

import processing
processing.run("algorithm_id", {parameter_dictionary})

Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.