Important

Traducerea este un efort al comunității, la care puteți să vă alăturați. În prezent, această pagină este tradusă 66.08%.

4. Panoul Navigatorului

Panoul Navigatorului QGIS este un instrument excelent pentru navigarea, căutarea, inspectarea, copierea și încărcarea resurselor QGIS. Doar resursele pe care QGIS știe să le gestioneze sunt afișate în browser.

Folosind panoul Navigatorului puteți localiza, inspecta și adăuga date, așa cum este descris în Panoul Navigatorului. În plus, panoul Navigatorului acceptă glisarea și plasarea multor resurse QGIS, cum ar fi fișierele de proiect, scrípturile Python, scrípturile de procesare și modelele de procesare.

Scrípturile Python, scrípturile și modelele Processing pot fi, de asemenea, deschise pentru editare într-un editor extern și în modelatorul grafic.

You can drag and drop layers from the Layers panel to the Browser panel, for instance into a GeoPackage or a PostgreSQL database.

../../../_images/browser_panel1.png

Fig. 4.1 Panoul Navigatorului

Panoul navigatorului (Fig. 4.1) are o ierarhie extensibilă, cu câteva intrări fixe de nivel superior care organizează resursele gestionate. Intrările nodurilor sunt extinse făcând clic pe browserExpand din stânga numelui intrării. Orice ramură este restrânsă făcând clic pe browserCollapse. Butonul |colapseTree| Restrânge Tot restrânge toate intrările de nivel superior.

În Setări ► Interfață Personalizabilă este posibilă dezactivarea resurselor. Dacă, de exemplu, nu doriți să afișați scrípturi Python în browser, puteți debifa intrarea Navigator ► py, iar dacă doriți să scăpați de folderul de casă din navigator, puteți debifați intrarea Navigator ► special:Home.

(filterMap Filtrarea Navigării) poate fi folosită pentru căutarea pe baza numelor intrărilor (atât intrările subordonate, cât și intrările nodurilor din ierarhie). Folosind meniul derulant options Oțiuni de lângă câmpul de text al filtrului, puteți

  • efectua Căutare Senzitivă

  • seta Sintaxa modelului de filtrare la

    • Normal

    • Metacaracter(e)

    • Expresii Regulate

Controlul grafic al Proprietăților, care arată informații utile despre unele intrări/resurse, poate fi activat/dezactivat folosind butonul |metadate| Activează/dezactivează controlul grafic al proprietăților. Când este activat, se deschide în partea de jos a panoului navigatorului, așa cum se arată în Fig. 4.2.

../../../_images/browser_p_properties_w.png

Fig. 4.2 Controlul grafic al proprietăților

A second browser panel can be opened by activating the Browser (2) panel in View ► Panels. Having two browser panels can be useful when copying layers between resources that are locationed deep down in different branches of the browser hierarchy.

4.1. Resources that can be opened / run from the Browser

A lot can be accomplished in the Browser panel

  • Add vector, raster and mesh layers to your map by double-clicking, dragging onto the map canvas or clicking the addLayer Add Selected Layers button (after selecting layers)

  • Run Python scripts (including Processing algorithms) by double-clicking or dragging onto the map canvas

  • Run models by double-clicking or dragging onto the map canvas

  • Extract Symbols… from QGIS Project files using the context menu

  • Open files with their default applications (Open <file type> Externally… in the context menu). Examples: HTML files, spreadsheets, images, PDFs, text files, …

  • Copy entries

  • Rename and delete (multiple) layers (context menu: Manage ►)

  • Open a file explorer window and directly select the file Show in Files

Resource specific actions are listed for the different resource groups sorted under the top-level entries listed below.

4.2. Browser panel top-level entries

4.2.1. Favorites

Often used file system locations can be tagged as favorites. The ones you have tagged will appear here.

In addition to the operations described under Home, the context menu allows you to Rename Favorite… and Remove Favorite.

4.2.2. Semne de Carte Spațiale

This is where you will find your spatial bookmarks, divided into Project Bookmarks and User Bookmarks.

Tabelul 4.1 available actions for spatial bookmarks

Nivel

Contextual menu

Spatial Bookmarks

New Spatial Bookmark…

Show the Spatial Bookmark Manager

Import Spatial Bookmarks…

Export Spatial Bookmarks…

Bookmark group

(Project Bookmarks and User Bookmarks)

New Spatial Bookmark…

Import Spatial Bookmarks…

Export Spatial Bookmarks…

Individual bookmark

Zoom to Bookmark

Edit Spatial Bookmark…

Delete Spatial Bookmark

4.2.3. Project Home

Available once the project file has been saved, the Project home entry is a folder containing data and other contents (scripts, models, text, …) that may be used within the current project. Displayed in the Browser panel, it allows you to quickly access data and other files of the project.

It defaults to the project file folder but can be changed through the Project ► Properties… ► General ► Project home option, or by right-clicking on the Project Home item of the Browser panel and selecting Set project home…. Customizing that folder is especially useful in contexts where QGIS projects are not stored in the root folder of an organisational «project», along with datasets.

4.2.4. Drives and file system

The next items of the Browser panel depend on the OS in use and concern the top level entries of its file system.

They are mainly:

  • The Home folder, pointing to the current user home folder

  • on Unix-based machines, the root / folder

  • the connected drives, either local or network. Depending on the OS, they are directly listed (eg, C:\, D:\) or through the /Volumes entry.

From the contextual menu of each of these folders or drives, you can:

  • refresh the contents

  • create a New ► subitem that is a Directory, GeoPackage or ESRI Shapefile format dataset

  • hide the directory (Hide from Browser)

  • Set color: customize the folder icon color, aiding in rapid browser navigation of complex folder structures

  • enable Scanning:

    • checkbox Monitor for changes: allows to manually control whether a particular directory should be monitored and automatically updated. This setting applies to the selected directory and all subdirectories. This means that you can manually opt-in to monitoring of network drives if you know there’s no issue, or manually opt-out of monitoring of large directories which you don’t want monitored for other reasons. By default, remote or network drives are not automatically monitored.

    • unchecked Fast scan this directory

  • open the directory in your file manager (Open Directory…)

  • open the directory in a terminal window (Open in Terminal…)

  • inspect the Properties… or the parent Directory Properties…

4.2.5. Tipul datei

Tabelul 4.2 Available actions for plain layer files

Level and Context menu

Tipuri de straturi

addRasterLayer Raster

(Reference)

addOgrLayer Vector

(Reference)

addPointCloudLayer Point clouds

(Reference)

addMeshLayer Mesh

(Reference)

File

Ștergere Fișier <dataset name>

checkbox

checkbox

Arată în Fișiere

checkbox

checkbox

checkbox

checkbox

Gestiune

checkbox

checkbox

checkbox

checkbox

File Properties…

checkbox

checkbox

checkbox

checkbox

Open <file type> Externally…

checkbox

Strat

Adăugare Strat în Proiect

checkbox

checkbox

checkbox

checkbox

Exportare Strat

checkbox

checkbox

Layer Properties…

checkbox

checkbox

checkbox

checkbox

Open with Data Source Manager…

checkbox

checkbox

Execute SQL…

checkbox

4.2.6. Intrările bazei de date

În funcție de SO și driverele instalate, puteți utiliza QGIS cu diverse tipuri de baze de date. Mai jos sunt enumerate diferite intrări ale meniului contextual, la fiecare nivel al arborelui de date.

Tabelul 4.3 Available actions for database entries

Level and Context menu

Tipuri de baze de date

geoPackage

GeoPackage ([1])

spatialite

SpatiaLite

postgis

PostgreSQL

hana

SAP HANA

mssql

MS SQL Server

oracle

Oracle

Top menu

Creează o Nouă Conexiune… către o bază de date existentă

checkbox

checkbox

checkbox

checkbox

checkbox

checkbox

Creare Bază de Date…

checkbox

checkbox

Creare Bază de Date și Strat…

checkbox

Salvare Conexiuni… detaliate într-un fișier

checkbox

checkbox

checkbox

Încărcare Conexiuni…

checkbox

checkbox

checkbox

Connection / Database

Actualizare conexiune

checkbox

checkbox

checkbox

checkbox

Editare Conexiune setări

checkbox

checkbox

checkbox

checkbox

Duplicare Conexiune

checkbox

checkbox

checkbox

checkbox

Eliminare Conexiune…

checkbox

checkbox

checkbox

checkbox

checkbox

checkbox

Import Vector Layer…

checkbox

checkbox

checkbox

checkbox

checkbox

New Field Domain ► New Range Domain

checkbox

New Field Domain ► New Coded Values Domain

checkbox

New Field Domain ► New Glob Domain

checkbox

Ștergere <database_name>

checkbox

checkbox

Compact Database (VACUUM)

checkbox

Create a New Schema…

checkbox

checkbox

checkbox

Create a New Table…

checkbox

checkbox

checkbox

checkbox

Execute SQL… query

checkbox

checkbox

checkbox

checkbox

Schema

Refresh a schema

checkbox

checkbox

checkbox

Operații specifice Schemelor ► Redenumire Schemă…

checkbox

checkbox

checkbox

Operații specifice Schemelor ► Ștergere Schemă…

checkbox

checkbox

checkbox

Create a New Table…

checkbox

checkbox

Execute SQL… query

checkbox

checkbox

Table / Layer

Operații specifice Tabelelor ► Redenumire Tabelă…

checkbox

checkbox

checkbox

Operații specifice Tabelelor ► Trunchiere Tabelă…

checkbox

checkbox

Execute SQL… query

checkbox

checkbox

checkbox

Exportare Strat ► În fișier…

checkbox

checkbox

checkbox

checkbox

checkbox

Gestiune ► Redenumire Strat <layer_name>…

checkbox

checkbox

checkbox

Gestiune ► Redenumire Strat <layer_name>…

checkbox

checkbox

checkbox

checkbox

checkbox

Gestiune ► Ștergere Straturi Selectate

checkbox

checkbox

checkbox

checkbox

checkbox

Gestiune ► Adăugare Strat în Proiect

checkbox

checkbox

checkbox

checkbox

checkbox

Gestiune ► Adaugă Straturile Selectate în Proiect

checkbox

checkbox

checkbox

checkbox

checkbox

Manage ► Move to Another Schema

checkbox

checkbox

Open Layer Properties… dialog

checkbox

checkbox

checkbox

checkbox

checkbox

Open File Properties… dialog

checkbox

Open with Data Source Manager

checkbox

checkbox

Fields

Add New Field…

checkbox

checkbox

checkbox

checkbox

Câmp

Set Field Domain

checkbox

Rename Field ([2])

checkbox

checkbox

checkbox

Setare Alias…

checkbox

Setare Comentariu…

checkbox

checkbox

Ștergere Fișier…

checkbox

checkbox

checkbox

checkbox

Notă

When loading vector layers into QGIS, fields with sourceFields Field Domains (such as those defined in a GeoPackage or ESRI File Geodatabase) are automatically detected. These domains are database-level constraints, meaning they are enforced by the database itself and apply across different applications, not just QGIS.

4.2.6.1. Importing vector layers into databases using Browser panel

QGIS allows you to import vector layers directly into a database from the Browser panel. This provides a simple way to transfer datasets into supported database formats without using dbManager DB Manager (see DB Manager Plugin).

You can start the import in two ways:

  • Drag and drop a single vector layer from the Browser panel or from the Project into a database connection or schema item.

  • Right-click on a database connection or schema item and choose Import Vector Layer… from the context menu.

Notă

When multiple layers are dragged into a database, they are imported immediately without further options. All imports run in the background, so the QGIS interface remains responsive during the process.

../../../_images/importvector_dialog.png

Fig. 4.3 Import Vector Layer dialog

To add a layer using Import Vector Layer… follow these steps:

  1. Add Source layer: the layer to import, chosen from the current QGIS project. To import only selected features of the source layer use the checkbox Selected features only option.

  2. Set the Table name: the name of the destination table in the database. By default, it is taken from the source layer name but can be modified. You can also use the checkbox Replace destination table (if exists) to overwrite an existing table.

  3. Define the Output CRS: the coordinate reference system of the destination table. By default, it is the CRS of the source layer, but it can be changed using the CRS selector.

  4. Configure the Attributes:

    • Source expression: expression used to populate the field. By default, this corresponds to the original source field.

    • Name: name of the field in the destination table.

    • Type: field data type (integer, text, real, etc.).

    • Length and Precision: length and precision of the field, where applicable.

    • Constraints: rules to enforce on the field values (e.g. NOT NULL, UNIQUE, DEFAULT). Support depends on the destination database.

    • Alias: an alternate display name for the field.

    • Comment: a description or note attached to the field.

    You can use buttons on the right side to:

    • newAttribute Add new field to add a new field to the destination table.

    • deleteAttribute Delete selected field to remove a field from the destination table.

    • arrowUp Move selected field up or arrowDown Move selected field down to reorder fields.

    • clearText Reset all fields to clear all fields and start from scratch.

    • settings Convert All Fields To Lowercase or settings Convert All Fields To Uppercase, to change the case of all field names.

  5. Optionally, apply a spatial filter with Filter by Extent. This restricts the import to features within a defined bounding box.

  6. Optionally, apply an attribute filter with Feature filter. This allows you to use an expression to select which features are imported.

4.2.7. Tiles and Web Services

Tabelul 4.4 Available actions for web services (1)

Level and Context menu

Tipuri de servicii

wms

WMS / WMTS

(Reference)

xyz

XYZ Tiles

(Reference)

wcs

WCS

(Reference)

wfs

WFS / OGC API - Features

(Reference)

afs

ArcGIS REST Servers

(Reference)

Top menu

Create a New Connection…

checkbox

checkbox

checkbox

checkbox

checkbox

Salvare Conexiuni… detaliate într-un fișier

checkbox

checkbox

checkbox

checkbox

checkbox

Încărcare Conexiuni…

checkbox

checkbox

checkbox

checkbox

checkbox

Connection

Actualizare conexiune

checkbox

checkbox

checkbox

checkbox

checkbox

Editare Conexiune setări

checkbox

checkbox

checkbox

checkbox

checkbox

Duplicare Conexiune

checkbox

checkbox

checkbox

checkbox

checkbox

Eliminare Conexiune…

checkbox

checkbox

checkbox

checkbox

checkbox

View Service Info in Web browser

checkbox

Table / Layer

Exportare Strat ► În Fișier…

checkbox

checkbox

checkbox

checkbox

checkbox

Adăugare Strat în Proiect

checkbox

checkbox

checkbox

checkbox

checkbox

Add Filtered Layer to Project…

checkbox

Open Layer properties… dialog

checkbox

checkbox

checkbox

checkbox

checkbox

View Service Info in Web browser

checkbox

Tabelul 4.5 Available actions for web services (2)

Level and Context menu

Tipuri de servicii

vectorTileLayer

Plăcuțe Vectoriale

(Reference)

tiledSceneLayer

Scene

(Reference)

cloud

Cloud

(Reference)

sensor

SensorThings

(Reference)

stac

STAC

(Reference)

Top menu

Create a New Connection…

checkbox

checkbox

checkbox

checkbox

Create a New Generic Connection…

checkbox

Create a New ArcGIS Vector Tile Service Connection…

checkbox

Save Connections… details to a file

checkbox

checkbox

checkbox

checkbox

checkbox

Încărcare Conexiuni…

checkbox

checkbox

checkbox

checkbox

checkbox

Connection

Editare Conexiune setări

checkbox

checkbox

checkbox

checkbox

checkbox

Duplicare Conexiune

checkbox

checkbox

checkbox

checkbox

Delete Connection…

checkbox

checkbox

checkbox

checkbox

checkbox

Refresh

checkbox

Details…

checkbox

Table / Layer

Exportare Strat ► În Fișier…

checkbox

Adăugare Strat în Proiect

checkbox

checkbox

checkbox

Open Layer properties… dialog

checkbox

checkbox

checkbox

Refresh

checkbox

Download assets…

checkbox

Details…

checkbox

4.2.8. Project and supported file types

Tabelul 4.6 Available actions for various supported files :class: longtable

File type

Meniu contextual

QGIS Project file (.qgz, .qgs)

Deschidere Proiect

Extract Symbols… (opens Style Manager to export symbols to XML, add to default style, or export as PNG/SVG)

File Properties…

QGIS Layer Definition (.qlr)

Exportare Strat ► În Fișier…

Add Layer to Project

Layer Properties…

Processing Model (.model3)

Run Model…

Edit Model…

Print Composer Template (.qpt)

New Layout from Template

Python script (.py)

Run Script…

Open in External Editor