Svarbu

Vertimas yra bendruomenės pastangos, prie kurių jūs galite prisijungti. Šis puslapis šiuo metu išverstas 62.53%.

24.1.2. Kartografija

24.1.2.1. Lygiuoti taškus su geoobjektais

Paskaičiuoja pasukimą, kurio reikia, kad taškiniai geoobjektai būtų nukreipti į artimiausią geoobjektą iš kito atskaitos sluoksnio. Į išvesties sluoksnį pridedamas naujas laukas su kampu (laipsniais, pagal laikrodžio rodyklę) iki artimiausio atskaitos geoobjekto.

Pasirinktinai galima keisti išvesties sluoksnio simbologiją, kad ji automatiškai naudotų paskaičiuoto posūkio kampo lauką ir pasuktų žymeklių simbolius. Jei reikia, galima nurodyti maksimalų atstumą, kad būtų išvengta izoliuotų geoobjektų lygiavimo į toli esančius geoobjektus.

Patarimas

Šis algoritmas sukurtas tokiems atvejams kaip pastatų taškų lygiavimas pagal artimiausio kelio kryptį.

checkbox Leidžia taškų geoobjektus keisti vietoje

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: point]

Taškų geoobjektai, kurių pasukimą reikia skaičiuoti

Atskaitos sluoksnis

REFERENCE_LAYER

[vector: geometry]

Sluoksnis, kuriame reikia ieškoti artimiausio geoobjekto pasukimo skaičiavimui

Maksimalus įvertinamas atstumas

Pasirinktinis

MAX_DISTANCE

[numeric: double]

Numatytas: jokio

Jei tokiu atstumu nerandamas atskaitos geoobjektas, taško geoobjektui nepriskiriamas joks pasukimas.

Kampo lauko pavadinimas

FIELD_NAME

[string]

Numatytas: „pasukimas“

Laukas, į kurį reikia įrašyti pasukimo reikšmę.

Automatiškai pritaikyti simbologiją

APPLY_SYMBOLOGY

[boolean]

Numatytas: Taip

Pasuka geoobjektų simbolio žymeklį naudojant kampo lauko reikšmę

Lygiuojamas sluoksnis

OUTPUT

[vector: point]

Numatytas: [Įrašyti į laikiną failą]

Nurodykite pasuktą išvesties vektorinį sluoksnį. Vieną iš:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Lygiuojamas sluoksnis

OUTPUT

[vector: point]

Taškų sluoksnis pridedamas su pasukimo lauku. Įkėlus į QGIS, jis taikomas pagal nutylėjimą įvesties sluoksnio simbologijoje naudojant nuo pasukimo duomenų priklausantį žymeklio simbolį.

Pythono kodas

Algoritmo ID: native:angletonearest

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.2.2. Sujungti stilių duomenų bazes

Sujungia kelias QGIS stilių duomenų bazes į vieną stilių duomenų bazę. Jei skirtingose pradinėse duomenų bazėse yra elementai su tokiu pačiu tipu ir pavadinimu, jei bus pervadinti, kad gautoje sudėtinėje duomenų bazėje turėtų unikalius pavadinimus.

Taip pat žiūrėkite

Create style database from project

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties duomenų bazės

INPUT

[file] [list]

Failai su QGIS stilių elementais

Sujungiami objektai

OBJECTS

[enumeration] [list]

Stilių elementų tipai įvesties duomenų bazės, kuriuos jūs norite sudėti į naują duomenų bazę. Tai gali būti:

Išvesties stilių duomenų bazė

OUTPUT

[file]

Numatytas: [Įrašyti į laikiną failą]

Išvesties .XML failas, su sujungtais parinktais stilių elementais. Vienas iš:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Spalvos rampų skaičius

COLORRAMPS

[numeric: integer]

Užrašų nustatymų skaičius

LABELSETTINGS

[numeric: integer]

Išvesties stilių duomenų bazė

OUTPUT

[file]

Išvesties .XML failas su parinktais stilių elementais

Simbolių skaičius

SYMBOLS

[numeric: integer]

Teksto formatų skaičius

TEXTFORMATS

[numeric: integer]

Pythono kodas

Algoritmo ID: native:combinestyles

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: any]

Vector layer to apply a categorized style to

Categorize using expression

FIELD

[išraiška]

Field or expression to categorize the features

Style database (leave blank to use saved symbols)

STYLE

[file]

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]

Numatytas: ne

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

Ignore non-alphanumeric characters while matching

TOLERANT

[boolean]

Numatytas: ne

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

Non-matching categories

Pasirinktinis

NON_MATCHING_CATEGORIES

[vector: table]

Numatytas: [Praleisti išvestį]

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

  • Praleisti išvestį

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Non-matching symbol names

Pasirinktinis

NON_MATCHING_SYMBOLS

[vector: table]

Numatytas: [Praleisti išvestį]

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

  • Praleisti išvestį

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

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

[toks pat, kaip įvestis]

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

Pythono kodas

Algorithm ID: native:categorizeusingstyle

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Taip pat žiūrėkite

Sujungti stilių duomenų bazes

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Input project (leave blank to use current)

Pasirinktinis

INPUT

[file]

A QGIS project file to extract the style items from

Objects to extract

OBJECTS

[enumeration] [list]

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

Išvesties stilių duomenų bazė

OUTPUT

[file]

Numatytas: [Įrašyti į laikiną failą]

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

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Spalvos rampų skaičius

COLORRAMPS

[numeric: integer]

Number of color ramps

Užrašų nustatymų skaičius

LABELSETTINGS

[numeric: integer]

Number of label settings

Išvesties stilių duomenų bazė

OUTPUT

[file]

Output .XML file for the selected style items

Simbolių skaičius

SYMBOLS

[numeric: integer]

Number of symbols

Teksto formatų skaičius

TEXTFORMATS

[numeric: integer]

Number of text formats

Pythono kodas

Algorithm ID: native:stylefromproject

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Pasirinktinis

COVERAGE_LAYER

[vector: geometry]

Layer to use to generate the atlas

Filter expression

FILTER_EXPRESSION

[išraiška]

Expression to use to filter out atlas features

Rikiavimo išraiška

Pasirinktinis

SORTBY_EXPRESSION

[išraiška]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[boolean]

Numatytas: ne

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

Output filename expression

FILENAME_EXPRESSION

[išraiška]

Default: ‚output_‘||@atlas_featurenumber

Expression for use to generate filenames

Output folder

FOLDER

[folder]

Destination folder where the images will be generated

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map layers to assign to unlocked map item(s)

Pasirinktinis

LAYERS

[enumeration] [layer]

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

Image format

EXTENSION

[sąrašas]

Default: png

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

DPI

Pasirinktinis

DPI

Numatytas: jokio

[numeric: 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]

Numatytas: Taip

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[boolean]

Numatytas: Taip

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

Enable antialiasing

ANTIALIAS

[boolean]

Numatytas: Taip

Determines if antialiasing should be enabled

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Image file

OUTPUT

[file]

Image files generated by the atlas layout

Pythono kodas

Algorithm ID: native:atlaslayouttoimage

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Pasirinktinis

COVERAGE_LAYER

[vector: geometry]

Layer to use to generate the atlas

Filter expression

FILTER_EXPRESSION

[išraiška]

Expression to use to filter out atlas features

Rikiavimo išraiška

Pasirinktinis

SORTBY_EXPRESSION

[išraiška]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[boolean]

Numatytas: ne

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

Output filename

Pasirinktinis

OUTPUT_FILENAME

[išraiška]

Name pattern of the PDF output files.

Output folder

OUTPUT_FOLDER

[folder]

Destination folder for the output PDF files.

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map layers to assign to unlocked map item(s)

Pasirinktinis

LAYERS

[enumeration] [layer]

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

DPI

Pasirinktinis

DPI

Numatytas: jokio

[numeric: 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]

Numatytas: ne

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[boolean]

Numatytas: ne

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

Append georeference information

GEOREFERENCE

[boolean]

Numatytas: Taip

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[boolean]

Numatytas: Taip

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

Disable tiled raster layer exports

DISABLE_TILED

[boolean]

Numatytas: ne

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[boolean]

Numatytas: Taip

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[sąrašas]

Numatytas: 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

[sąrašas]

Numatytas: 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

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

PDF file

OUTPUT

[file]

PDF file corresponding to the exported atlas layout

Pythono kodas

Algorithm ID: native:atlaslayouttomultiplepdf

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Atlas layout

LAYOUT

[layout]

Layout to export

Coverage layer

Pasirinktinis

COVERAGE_LAYER

[vector: geometry]

Layer to use to generate the atlas

Filter expression

FILTER_EXPRESSION

[išraiška]

Expression to use to filter out atlas features

Rikiavimo išraiška

Pasirinktinis

SORTBY_EXPRESSION

[išraiška]

Expression to use to sort the atlas features

Reverse sort order

SORTBY_REVERSE

[boolean]

Numatytas: ne

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

PDF file

OUTPUT

[file]

Default: [Save to temporary file]

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

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map layers to assign to unlocked map item(s)

Pasirinktinis

LAYERS

[enumeration] [layer]

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

DPI

Pasirinktinis

DPI

Numatytas: jokio

[numeric: 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]

Numatytas: ne

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[boolean]

Numatytas: ne

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

Append georeference information

GEOREFERENCE

[boolean]

Numatytas: Taip

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[boolean]

Numatytas: Taip

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

Disable tiled raster layer exports

DISABLE_TILED

[boolean]

Numatytas: ne

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[boolean]

Numatytas: Taip

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[sąrašas]

Numatytas: 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

[sąrašas]

Numatytas: 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

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

PDF file

OUTPUT

[file]

PDF file corresponding to the exported atlas layout

Pythono kodas

Algorithm ID: native:atlaslayouttopdf

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.2.8. Export print layout as image

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

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Print layout

LAYOUT

[layout]

Layout to export

Image file

OUTPUT

[file]

Default: [Save to temporary file]

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

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map layers to assign to unlocked map item(s)

Pasirinktinis

LAYERS

[enumeration] [layer]

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

DPI

Pasirinktinis

DPI

Numatytas: jokio

[numeric: 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]

Numatytas: Taip

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[boolean]

Numatytas: Taip

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

Enable antialiasing

ANTIALIAS

[boolean]

Numatytas: Taip

Determines if antialiasing should be enabled

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Image file

OUTPUT

[file]

Image file corresponding to the exported print layout

Pythono kodas

Algorithm ID: native:printlayouttoimage

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.2.9. Export print layout as PDF

Exports a print layout as a PDF file.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Print Layout

LAYOUT

[layout]

Layout to export

PDF file

OUTPUT

[file]

Default: [Save to temporary file]

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

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map layers to assign to unlocked map item(s)

Pasirinktinis

LAYERS

[enumeration] [layer]

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

DPI

Pasirinktinis

DPI

Numatytas: jokio

[numeric: 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]

Numatytas: ne

Determines if vectorial data should be left as vectors

Always export as raster

FORCE_RASTER

[boolean]

Numatytas: ne

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

Append georeference information

GEOREFERENCE

[boolean]

Numatytas: Taip

Determines if a world file should be generated

Export RDF metadata

INCLUDE_METADATA

[boolean]

Numatytas: Taip

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

Disable tiled raster layer exports

DISABLE_TILED

[boolean]

Numatytas: ne

Determines if raster should be tiled

Simplify geometries to reduce output file size

SIMPLIFY

[boolean]

Numatytas: Taip

Determines if geometries should be simplified to reduce output file size

Text export

TEXT_FORMAT

[sąrašas]

Numatytas: 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

[sąrašas]

Numatytas: 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]

Numatytas: ne

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.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

PDF file

OUTPUT

[file]

PDF file(s) corresponding to the exported print layout

Pythono kodas

Algorithm ID: native:printlayouttopdf

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Įspėjimas

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

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Map extent

EXTENT

[extent]

Extent of the map to extract the labels from

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Map scale

SCALE

[scale]

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

Map theme

Pasirinktinis

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]

Numatytas: Taip

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

Extracted labels

OUTPUT

[vector: point]

Numatytas: [Kurti laikiną sluoksnį]

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

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Map resolution (in DPI)

Pasirinktinis

DPI

Default: 96.0

[numeric: double]

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Extracted labels

OUTPUT

[vector: point]

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.

Įspėjimas

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.

Pythono kodas

Algorithm ID: native:extractlabels

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Input Layer

INPUT

[layer]

Input layer you want to apply the style to

Style file

STYLE

[file]

Path to the .qml file of the style

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

OUTPUT

[toks pat, kaip įvestis]

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

Pythono kodas

Algorithm ID: native:setlayerstyle

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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

Fig. 24.1 Topological colors example

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: poligonas]

The input polygon layer

Minimum number of colors

MIN_COLORS

[numeric: integer]

Default: 4

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

Minimum distance between features

MIN_DISTANCE

[numeric: double]

Default: 0.0

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

Balance color assignment

BALANCE

[sąrašas]

Numatytas: 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

[vektorius: poligonas]

Numatytas: [Kurti laikiną sluoksnį]

Specify the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Colored

OUTPUT

[vektorius: poligonas]

Polygon vector layer with an added color_id column

Pythono kodas

Algorithm ID: qgis:topologicalcoloring

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

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.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

New layer name

LAYER_NAME

[string]

Default: ‚Annotations‘

Name of the annotations layer to create

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

New layer name

OUTPUT

[layer]

A layer with items from the main annotation layer

Pythono kodas

Algorithm ID: native:transferannotationsfrommain

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

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.