7. Interface do QGIS¶
A interface gráfica do usuário do QGIS (GUI) é mostrada na figura abaixo (os números de 1 a 5 em círculos amarelos indicam elementos importantes da GUI do QGIS e são discutidos abaixo).
Suas decorações de janela (barra de título, etc) podem parecer diferentes dependendo do seu sistema operacional e gerenciador de janelas.
The main QGIS GUI (Fig. 7.1) consists of five components / component types:
Role para baixo para informações mais detalhadas destes.
From the ), you can switch QGIS widgets ( ) and toolbars ( ) on and off. To (de)activate any of them, right-click the menu bar or toolbar and choose the item you want. Panels and toolbars can be moved and placed wherever you like within the QGIS interface. The list can also be extended with the activation of Core or external plugins.menu (or
The toolbars provide access to most of the functions in the menus, plus additional tools for interacting with the map. Each toolbar item has pop-up help available. Hover your mouse over the item and a short description of the tool’s purpose will be displayed.
Every toolbar can be moved around according to your needs. Additionally, they can be switched off using the right mouse button context menu, or by holding the mouse over the toolbars.
Restaurar barra de ferramentas
Se você ocultou acidentalmente uma barra de ferramentas, é possível recuperá-la usando: ). Se, por algum motivo, uma barra de ferramentas (ou qualquer outro widget) desaparecer totalmente da interface, você encontrará dicas para recuperá-la em restoring initial GUI.(ou
O QGIS fornece muitos painéis. Painéis são widgets especiais com os quais você pode interagir (selecionar opções, marcar caixas, preencher valores…) para executar tarefas mais complexas.
Abaixo está uma lista dos painéis padrão fornecidos pelo QGIS:
the Result Viewer Panel
The map view (also called Map canvas) is the “business end” of QGIS — maps are displayed in this area. The map displayed in this window will reflect the rendering (symbology, labeling, visibilities…) you applied to the layers you have loaded. It also depends on the layers and the project’s Coordinate Reference System (CRS).
When you add a layer (see e.g. Abrir Dados), QGIS automatically looks for its CRS. If a different CRS is set by default for the project (see Project Coordinate Reference Systems) then the layer extent is “on-the-fly” translated to that CRS, and the map view is zoomed to that extent if you start with a blank QGIS project. If there are already layers in the project, no map canvas resize is performed, so only features falling within the current map canvas extent will be visible.
While the focus is over the map view:
it can be panned, shifting the display to another region of the map: this is performed using the Pan Map tool, the arrow keys, moving the mouse while any of the Space key, the middle mouse button or the mouse wheel is held down.
it can be zoomed in and out, with the dedicated Zoom In and Zoom Out tools. This is also performed by rolling the wheel forward to zoom in and backwards to zoom out. The zoom is centered on the mouse cursor position.
You can customize the Zoom factor under the menu.
By default, QGIS opens a single map view (so called “main map”), which is tightly bound to the Layers panel; the main map automatically reflects the changes you make in the Layers panel area. But it’s possible to have additional map views to preview different renderings of your dataset, side by side; while still relying on the layers properties as set in the Layers panel, each map view can display a different set of layers at different scale and extent.
To add a new map view, go to . A new floating widget displaying the layers rendering is added to QGIS. You can add as many map views as you need. They can be kept floating, placed side by side or stacked on top of each other.
At the top of an additional map canvas, there’s a toolbar with following capabilities:
Set View Theme to select the map theme to display in the map view. If set to
(none), the view will follow the Layers panel changes.
Change map CRS…
Maps you make can be layout and exported to various formats using the advanced capabilities of the print layout or report. It’s also possible to directly export the current rendering, without a layout. This quick “screenshot” of the map view has some convenient features.
To export the map canvas with the current rendering:
The two tools provide you with a common set of options. In the dialog that opens:
Choose the Extent to export: it can be the current view extent (the default), the extent of a layer or a custom extent drawn over the map canvas. Coordinates of the selected area are displayed and manually editable.
Enter the Scale of the map or select it from the predefined scales: changing the scale will resize the extent to export (from the center).
Defina a Resolução da saída
Control the Output width and Output height in pixels of the image: based by default on the current resolution and extent, they can be customized and will resize the map extent (from the center). The size ratio can be locked, which may be particularly convenient when drawing the extent on the canvas.
Draw active decorations: in use decorations (barra de escala, título, malha, Rosa dos ventos…) são exportados com o mapa
Desenhar anotações para exportar qualquer annotation
Append georeference information (embedded or via world file): depending on the output format, a world file of the same name (with extension
JPG, …) is saved in the same folder as your image. The
When exporting to PDF, more options are available in the Save map as PDF… dialog:
Criar PDF Geoespacial (GeoPDF): Gera um arquivo PDF georreferenciado (requer GDAL versão 3 ou mais recente). Você pode:
Choose the GeoPDF Format
Desde QGIS 3.10, com GDAL 3 um arquivo GeoPDF também pode ser usado como fonte de dados. Para saber mais sobre o suporte GeoPDF em QGIS, veja https://north-road.com/2019/09/03/qgis-3-10-loves-geopdf/.
Simplify geometries to reduce output file size: Geometries will be simplified while exporting the map by removing vertices that are not discernably different at the export resolution (e.g. if the export resolution is
300 dpi, vertices that are less than
1/600 inchapart will be removed). This can reduce the size and complexity of the export file (very large files can fail to load in other applications).
Defina :guilabel: Exportar texto`: controla se os rótulos de texto são exportados como objetos de texto adequados (Sempre exportar textos como objetos de texto) ou apenas como caminhos (Sempre exporta textos como caminhos). Se eles forem exportados como objetos de texto, poderão ser editados em aplicativos externos (por exemplo, Inkscape) como texto normal. MAS o efeito colateral é que a qualidade da renderização diminui E há problemas com a renderização quando determinadas configurações de texto, como buffers, estão em vigor. É por isso que a exportação como caminhos é recomendada.
Click Save to select file location, name and format.
When exporting to image, it’s also possible to Copy to clipboard the expected result of the above settings and paste the map in another application such as LibreOffice, GIMP…
To begin with, the 3D map view has the same extent and view as the 2D main map canvas. A set of navigation tools are available to turn the view into 3D.
The following tools are provided at the top of the 3D map view panel:
Identify: returns information on the clicked point of the terrain or the clicked 3D feature(s) – More details at Identifying Features
Animations: shows/hides the animation player widget
Configure the map view settings
An animation is based on a set of keyframes - camera positions at particular times. To create an animation:
Using the navigation tools, move the camera to the position to associate with the current keyframe time.
Repeat the previous steps to add as many keyframes (with time and position) as necessary.
Click the button to preview the animation. QGIS will generate scenes using the camera positions/rotations at set times, and interpolating them in between these keyframes. Various Interpolation modes for animations are available (eg, linear, inQuad, outQuad, inCirc… – more details at https://doc.qt.io/qt-5/qeasingcurve.html#EasingFunction-typedef).
It is possible to browse the different views of the camera, using the Keyframe list. Whenever a time is active, changing the map view will automatically update the associated position. You can also Edit keyframe (time only) or Remove keyframe.
Click Export animation frames to generate a series of images representing the scene. Other than the filename Template and the Output directory, you can set the number of Frames per second, the Output width and Output height.
In the 3D Configuration window there are various options to fine-tune the 3D scene:
Camera’s Field of view: allowing to create panoramic scenes. Default value is 45°.
Terrain: Before diving into the details, it is worth noting that terrain in a 3D view is represented by a hierarchy of terrain tiles and as the camera moves closer to the terrain, existing tiles that do not have sufficient details are replaced by smaller tiles with more details. Each tile has mesh geometry derived from the elevation raster layer and texture from 2D map layers.
The elevation terrain Type can be:
Elevation: Raster layer to be used for generation of the terrain. This layer must contain a band that represents elevation.
Vertical scale: Scale factor for vertical axis. Increasing the scale will exaggerate the height of the landforms.
Tile resolution: How many samples from the terrain raster layer to use for each tile. A value of 16px means that the geometry of each tile will consist of 16x16 elevation samples. Higher numbers create more detailed terrain tiles at the expense of increased rendering complexity.
Skirt height: Sometimes it is possible to see small cracks between tiles of the terrain. Raising this value will add vertical walls (“skirts”) around terrain tiles to hide the cracks.
Tema do mapa: Permite a seleção de um conjunto de camadas a serem mostradas na visualização do mapa de map themes pré-definidos.
Shading disabled - terrain color is determined only from map texture
Shading enabled - terrain color is determined using Phong’s shading model, taking into account map texture, the terrain normal vector, scene light(s) and the terrain material’s Ambient and Specular colors and Shininess
Lights: You can add up to eight point lights, each with a particular position (in X, Y and Z), Color, Intensity and Attenuation.
Map tile resolution: Width and height of the 2D map images used as textures for the terrain tiles. 256px means that each tile will be rendered into an image of 256x256 pixels. Higher numbers create more detailed terrain tiles at the expense of increased rendering complexity.
Max. screen error: Determines the threshold for swapping terrain tiles with more detailed ones (and vice versa) - i.e. how soon the 3D view will use higher quality tiles. Lower numbers mean more details in the scene at the expense of increased rendering complexity.
Max. ground error: The resolution of the terrain tiles at which dividing tiles into more detailed ones will stop (splitting them would not introduce any extra detail anyway). This value limits the depth of the hierarchy of tiles: lower values make the hierarchy deep, increasing rendering complexity.
Zoom labels: Shows the number of zoom levels (depends on the map tile resolution and max. ground error).
The status bar provides you with general information about the map view and processed or available actions, and offers you tools to manage the map view.
On the left side of the status bar, the locator bar, a quick search widget, helps you find and run any feature or options in QGIS. Simply type text associated with the item you are looking for (name, tag, keyword…) and you get a list that updates as you write. You can also limit the search scope using locator filters. Click the button to select any of them and press the Configure entry for global settings.
In the area next to the locator bar, a summary of actions you’ve carried out will be shown when needed (such as selecting features in a layer, removing layer) or a long description of the tool you are hovering over (not available for all tools).
In case of lengthy operations, such as gathering of statistics in raster layers, executing Processing algorithms or rendering several layers in the map view, a progress bar is displayed in the status bar.
A opção Coordenada mostra a posição atual do mouse, seguindo-o enquanto se move pela visualização do mapa. Você pode definir as unidades (e precisão) na guia . Clique no pequeno botão à esquerda da caixa de texto para alternar entre a opção Coordenada e a opção Extensão que mostra as coordenadas dos cantos inferior-esquerdo e superior direito da visualização do mapa em unidades de mapa.
Next to the coordinate display you will find the Scale display. It shows the scale of the map view. There is a scale selector, which allows you to choose between predefined and custom scales.
On the right side of the scale display, press the button to lock the scale to use the magnifier to zoom in or out. The magnifier allows you to zoom in to a map without altering the map scale, making it easier to tweak the positions of labels and symbols accurately. The magnification level is expressed as a percentage. If the Magnifier has a level of 100%, then the current map is not magnified. Additionally, a default magnification value can be defined within , which is very useful for high-resolution screens to enlarge small symbols.
À direita da ferramenta de ampliação, você pode definir uma rotação atual no sentido horário para a visualização do mapa em graus.
On the right side of the status bar, there is a small checkbox which can be used temporarily to prevent layers being rendered to the map view (see section Renderização).
To the right of the render functions, you find the EPSG:code button showing the current project CRS. Clicking on this opens the Project Properties dialog and lets you apply another CRS to the map view.
Depending on the Plugin Manager settings, the status bar can sometimes show icons to the right to inform you about availability of new or upgradeable plugins. Click the icon to open the Plugin Manager dialog.
Calculando a escala correta do seu Mapa da tela/visualização
When you start QGIS, the default CRS is
WGS 84 (EPSG 4326) and
units are degrees. This means that QGIS will interpret any
coordinate in your layer as specified in degrees.
To get correct scale values, you can either manually change this
setting in the General tab under
(e.g. to meters), or you
can use the EPSG:code icon seen above.
In the latter case, the units are set to what the project projection
Observe que a escolha do SRC no começo pode ser definida em.