• Non ci sono risultati.

QGIS User Guide Versión 3.4

N/A
N/A
Protected

Academic year: 2021

Condividi "QGIS User Guide Versión 3.4"

Copied!
633
0
0

Testo completo

(1)

Versión 3.4

QGIS Project

15 de marzo de 2020

(2)
(3)

1 Preámbulo 1

2 Prólogo 3

3 Convenciones 5

3.1 Convenciones de la Interfaz Gráfica o GUI . . . . 5

3.2 Convenciones de Texto o Teclado . . . . 6

3.3 Instrucciones específicas de cada plataforma . . . . 6

4 Características 7 4.1 Ver datos . . . . 7

4.2 Explorar datos y componer mapas . . . . 7

4.3 Crear, editar, gestionar y exportar datos . . . . 8

4.4 Analizar datos . . . . 8

4.5 Publicar mapas en Internet . . . . 8

4.6 Extender funcionalidades QGIS a través de complementos . . . . 9

4.7 Consola de Python . . . . 9

4.8 Problemas Conocidos . . . . 9

5 Novedades de QGIS 3.4 11 6 Comenzar 13 6.1 Installing QGIS. . . . 13

6.2 Starting and stopping QGIS . . . . 14

6.3 Sample Session: Loading raster and vector layers . . . . 15

7 Working with Project Files 21 7.1 Introducing QGIS projects . . . . 21

7.2 Generating output . . . . 23

8 IGU QGIS 25 8.1 Barra de Menú . . . . 26

8.2 Paneles y Barras de Herramientas . . . . 35

8.3 Vista del mapa . . . . 37

8.4 3D Map View. . . . 38

8.5 Barra de Estado. . . . 39

9 Configuración QGIS 41 9.1 Opciones . . . . 41

9.2 Working with User Profiles . . . . 61

9.3 Propiedades del proyecto. . . . 63

9.4 Personalización. . . . 69

(4)

10 Trabajar con Proyecciones 77

10.1 Vista general de la ayuda de proyección . . . . 77

10.2 Layer Coordinate Reference Systems . . . . 77

10.3 Project Coordinate Reference Systems . . . . 78

10.4 CRS Settings . . . . 79

10.5 On The Fly (OTF) CRS Transformation . . . . 80

10.6 Coordinate Reference System Selector . . . . 80

10.7 Sistema de referencia de coordenadas personalizada . . . . 80

10.8 Datum Transformations . . . . 82

11 Herramientas generales 85 11.1 Ayuda de contexto . . . . 85

11.2 Paneles . . . . 85

11.3 Anidar proyectos . . . . 94

11.4 Working with the map canvas . . . . 96

11.5 Interacting with features . . . 107

11.6 Save and Share Layer Properties . . . 112

11.7 Storing values in Variables . . . 115

11.8 Autenticación. . . 115

11.9 Common widgets. . . 117

12 Administrar el origen de datos 123 12.1 Opening Data. . . 123

12.2 Creando capas . . . 141

12.3 Exploring Data Formats and Fields . . . 153

13 Trabajar con Datos Vectoriales 161 13.1 La librería Símbolo. . . 161

13.2 El Dialogo de las Propiedades del Vector . . . 173

13.3 Expresiones. . . 244

13.4 Trabajar con la tabla de atributos. . . 264

13.5 Editar . . . 284

14 Trabajar con Datos Raster 311 14.1 Dialogo de Propiedades Raster. . . 311

14.2 Análisis raster . . . 323

15 Trabajando con Malla de Datos 329 15.1 Trabajando con Malla de Datos . . . 329

16 Laying out the maps 339 16.1 Overview of the Print Layout . . . 339

16.2 Layout Items . . . 353

16.3 Crear salida. . . 386

16.4 Creating a Report. . . 394

17 Trabajar con datos OGC 411 17.1 QGIS como Cliente de Datos OGC . . . 411

17.2 QGIS como Servidor de Datos OGC. . . 421

18 Trabajar con datos GPS 463 18.1 Plugin de GPS . . . 463

18.2 Seguimiento de GPS en Vivo . . . 467

19 Sistema de autenticación 473 19.1 Authentication System Overview . . . 473

19.2 User Authentication Workflows . . . 482

(5)

20 Integracion GRASS SIG 497

20.1 Conjuntos de datos demostración . . . 497

20.2 Cargar capas ráster y vectorial de GRASS . . . 497

20.3 Importar datos dentro de una UBICACIÓN DE GRASS mediante arrastrar y soltar . . . 498

20.4 Managing GRASS data in QGIS Browser . . . 498

20.5 Opciones GRASS . . . 498

20.6 Iniciar el complemento GRASS . . . 498

20.7 Abrir directorio de mapas . . . 499

20.8 LOCALIZACIÓN y DIRECTORIO DE MAPA GRASS . . . 499

20.9 Importar datos dentro de una LOCALIZACIÓN DE GRASS . . . 499

20.10 El modelo de datos vectoriales de GRASS . . . 502

20.11 Crear una nueva capa vectorial GRASS . . . 502

20.12 Digitalizar y editar una capa vectorial GRASS . . . 503

20.13 La herramienta de región GRASS . . . 505

20.14 La caja de herramientas GRASS . . . 505

21 Entorno de trabajo de procesamiento de QGIS 515 21.1 Introducción . . . 515

21.2 Configuring the Processing Framework . . . 515

21.3 The Toolbox . . . 518

21.4 El administrador del historial . . . 527

21.5 Modelador gráfico . . . 528

21.6 La interfaz de procesamiento por lotes. . . 538

21.7 Utilizar algoritmos de procesamiento desde la consola . . . 540

21.8 Writing new Processing algorithms as Python scripts . . . 549

21.9 Configurar aplicaciones externas. . . 555

22 Complementos 565 22.1 Complementos de QGIS . . . 565

22.2 Usar complementos núcleo de QGIS . . . 571

22.3 Consola Python de QGIS. . . 601

23 Ayuda y apoyo 605 23.1 Listas de correos . . . 605

23.2 IRC . . . 606

23.3 Rastreador de Errores . . . 606

23.4 Blog . . . 606

23.5 Plugins . . . 607

23.6 Wiki . . . 607

24 Colaboradores 609 24.1 Autores . . . 609

24.2 Traductores . . . 610

25 Appendices 613 25.1 Appendix A: GNU General Public License . . . 613

25.2 Licencia de Documentación Libre de GNU . . . 616

25.3 Appendix B: QGIS File Formats . . . 622

26 Referencias bibliográficas y web 627

(6)
(7)

Preámbulo

Este documento es la guía del usuario original del software QGIS. El software y el hardware descrito en este documento son, en la mayoría de los casos, marcas registradas y, por lo tanto, están sujetos a requisitos legales.

QGIS está sujeto a la Licencia Pública General de GNU. Encuentre más información en la página de QGIS, https://www.qgis.org.

Los detalles, datos y resultados en este documento han sido escritos y verificados con el mejor de los conocimien- tos y responsabilidad de los autores y editores. Sin embargo, son posibles errores en el contenido.

Por lo tanto, los datos no están sujetos a ningún derecho o garantía. Los autores y editores no aceptan ninguna responsabilidad u obligación por fallos y sus consecuencias. Siempre será bienvenido a informar posibles errores.

Este documento ha sido escrito con reStructuredText. Está disponible su código fuente reST engithuby como HTML y PDF online enhttps://www.qgis.org/en/docs/. Las versiones traducidas de este documento se pueden descargar también en varios formatos en la sección Documentación del proyecto QGIS. Para mayor informa- ción sobre cómo contribuir a este documento y sobre cómo traducirlo, por favor visite https://qgis.org/en/site/

getinvolved/index.html.

Enlaces en este documento

Este documento contiene enlaces internos y externos. Pulsando un enlace interno navega dentro del documento, mientras que pulsando un enlace externo abre una dirección de Internet. En formato PDF, los enlaces internos y externos son mostrados en azul y son manejados por el navegador del sistema. En formato HTML, el navegador muestra y maneja ambos de manera idéntica.

Autores y Editores de las Guías de Usuario, Instalación y Programación:

La lista de personas que contribuye escribiendo, revisando y traduciendo la siguiente Documentación está disponible enColaboradores.

Copyright (c) 2004 - 2017 QGIS Development Team Internet:https://www.qgis.org

Licencia de este documento

Se permite la copia, distribución y/o modificación de este documento bajo los términos de la Licencia de Docu- mentación Libre GNU, Versión 1.3 o cualquier versión posterior publicada por la Fundación de Software Libre;

sin Secciones Invariante, ni Texto de Portada ni de Contracubierta. Se incluye una copia de la licencia en el ApéndiceLicencia de Documentación Libre de GNU.

(8)
(9)

Prólogo

¡Bienvenido al maravilloso mundo de los Sistemas de Información Geográfica (SIG)!

QGIS es un Sistema de Información Geográfica de código abierto. El proyecto nació en mayo de 2002 y se estableció como un proyecto en SourceForge en junio del mismo año. Hemos trabajado duro para hacer que el software SIG (tradicionalmente software propietario caro) esté al alcance de cualquiera con acceso básico a un ordenador personal. QGIS actualmente funciona en la mayoría de plataformas Unix, Windows y Mac. QGIS se desarrolla usando el kit de herramientas Qt (https://www.qt.io) y C++. Esto significa que es ligero y tiene una interfaz gráfica de usuario (GUI) agradable y fácil de usar.

QGIS pretende ser un SIG amigable, proporcionando funciones y características comunes. El objetivo inicial del proyecto era proporcionar un visor de datos SIG. QGIS ha alcanzado un punto en su evolución en el que está siendo usado por muchos para sus necesidades diarias de visualización de datos SIG. QGIS admite diversos formatos de datos ráster y vectoriales, con el nuevo formato de ayuda fácilmente agregado usando la arquitectura del complemento.

QGIS se distribuye bajo la Licencia Pública General GNU (GPL). El desarrollo de QGIS bajo esta licencia sig- nifica que se puede revisar y modificar el código fuente y garantiza que usted, nuestro feliz usuario, siempre tendrá acceso a un programa de SIG que es libre de costo y puede ser libremente modificado. Debería haber recibido una copia completa de la licencia con su copia de QGIS, y también podrá encontrarla en el ApéndiceAppendix A:

GNU General Public License.

Truco: Documentación al día

The latest version of this document can always be found in the documentation area of the QGIS website athttps:

//www.qgis.org/en/docs/.

(10)
(11)

Convenciones

Esta sección describe los estilos homogéneos que se utilizarán a lo largo de este manual.

3.1 Convenciones de la Interfaz Gráfica o GUI

Las convenciones de estilo del GUI están destinadas a imitar la apariencia de la interfaz gráfica de usuario. En general, un estilo reflejará la apariencia simplificada, por lo que un usuario puede escanear visualmente el GUI para encontrar algo que se parece a lo mostrado en el manual.

• Menú Opciones: Capa → Añadir capa ráster o Preferencias → Barra de Herramientas → Digitalizacion

• Herramienta: Añadir capa ráster

• Button : Save as Default

• Título del Cuadro de Diálogo: Propiedades de capa

• Pestaña: General

• Selección: Renderizar

• Botón de selección: Postgis SRID EPSG ID

• Seleccionar un número:

• Seleccionar una cadena:

• Browse for a file: . . .

• Seleccionar un color:

• Barra de desplazamiento:

• Texto de entrada:

El sombreado muestra un componente de la interfaz que el usuario puede pulsar.

(12)

3.2 Convenciones de Texto o Teclado

Entes manual también inclue estilos relacionados a textos, comandos de teclado y codificacion para indicar difer- entes entidades, como las clases o métodos. Estos estilos no corresponden a la apariencia real de cualquier texto o codificacion dentro de QGIS.

• Hyperlinks:https://qgis.org

• Combinaciones de Teclas: Pulsar Ctrl+B, significa mantener pulsada la tecla Ctrl y pulsar la letra B.

• Nombre de un Archivo: lakes.shp

• Nombre de una Clase: NewLayer

• Método: classFactory

• Servidor: myhost.de

• Texto para el Usuario: qgis --help

Las líneas de código se muestran con una fuente de ancho fijo:

PROJCS["NAD_1927_Albers",

GEOGCS["GCS_North_American_1927",

3.3 Instrucciones específicas de cada plataforma

GUI sequences and small amounts of text may be formatted inline: Click File QGIS→ Quit to close QGIS. This indicates that on Linux, Unix and Windows platforms, you should click the File menu first, then Quit, while on macOS platforms, you should click the QGIS menu first, then Quit.

Las cantidades mayores de texto se pueden formatear como listas:

Hacer esto

Hacer aquello

Or do that o como párrafos:

Hacer esto y esto y esto. Entonces hacer esto y esto y esto, y esto y esto y esto, y esto y esto y esto.

Do that. Then do that and that and that, and that and that and that, and that and that and that, and that and that.

Las capturas de pantalls que aparecen a lo largo de la guía de usuario han sido creadas en diferentes plataformas;

éstas se indicarán por el icono específico para cada una al final del pie de imagen.

(13)

Características

QGIS offers many common GIS functions provided by core features and plugins. A short summary of six general categories of features and plugins is presented below, followed by first insights into the integrated Python console.

4.1 Ver datos

You can view combinations of vector and raster data (in 2D or 3D) in different formats and projections without conversion to an internal or common format. Supported formats include:

• Spatially-enabled tables and views using PostGIS, SpatiaLite and MS SQL Spatial, Oracle Spatial, vector formats supported by the installed OGR library, including GeoPackage, ESRI Shapefile, MapInfo, SDTS, GML and many more. See sectionTrabajar con Datos Vectoriales.

• Ráster y formatos de imagenes admitidos por la biblioteda GDAL (Geospatial Data Abstraction Library) instalada, por ejemplo GeoTIFF, ERDAS IMG, ArcInfo ASCII GRID, JPEG, PNG y muchos más. Vea la secciónTrabajar con Datos Raster.

• Ráster GRASS y datos vectoriales de base de datos GRASS (location/mapset). Vea secciónIntegracion GRASS SIG.

• Datos espaciales en línea servidos como servicios web OGC incluyendo WMS, WMTS, WCS, WFS, y WFS-T. Vea la secciónTrabajar con datos OGC.

4.2 Explorar datos y componer mapas

Se puede componer mapas y explorar datos espaciales interactivamente con una GUI amigable. Las muy útiles herramientas disponibles en la GUI incluyen:

• Navegador QGIS

• Reproyección al vuelo

• Gestor de Base de Datos

• Print layout

• Panel de vista general

• Marcadores espaciales

(14)

• Herramientas de anotaciones

• Identificar/seleccionar objetos espaciales

• Editar/ver/buscar atributos

• Data-defined feature labeling

• Vectores definidos por datos y herramientas para simbologia raster.

• Composición del atlas y mapa con capas de cuadricula.

• North arrow, scale bar and copyright label for maps

• Apoyo para guardar y restaurar proyectos

4.3 Crear, editar, gestionar y exportar datos

Puede crear, editar, administrar y exportar capas vectoriales y ráster en varios formatos. QGIS ofrece lo siguiente:

• Herramientas de digitalización para formatos reconocidos OGR y capas vectoriales GRASS

• Ability to create and edit multiple file formats and GRASS vector layers

• Complemento de georeferenciador para geocodificar imágenes

• GPS tools to import and export GPX format, and convert other GPS formats to GPX or down/upload directly to a GPS unit (on Linux, usb: has been added to list of GPS devices)

• Apoyo para visualizar y editar datos de OpenStreetMap

• Ability to create spatial database tables from files with the DB Manager plugin

• Mejor manejo de tablas de bases de datos espaciales

• Herramientas para la gestión de tablas de atributos vectoriales

• Opción para guardar capturas de pantalla como imágenes georeferenciadas

• Herramienta para exportar DXF con capacidades aumentadas de explorar estilos y plugins que realizan funciones parecidas a CAD.

4.4 Analizar datos

You can perform spatial data analysis on spatial databases and other OGR-supported formats. QGIS currently offers vector analysis, sampling, geoprocessing, geometry and database management tools. You can also use the integrated GRASS tools, which include the complete GRASS functionality of more than 400 modules. (See sec- tionIntegracion GRASS SIG.) Or, you can work with the Processing Plugin, which provides a powerful geospatial analysis framework to call native and third-party algorithms from QGIS, such as GDAL, SAGA, GRASS and more. (See sectionIntroducción.)

4.5 Publicar mapas en Internet

QGIS can be used as a WMS, WMTS, WMS-C or WFS and WFS-T client, and as a WMS, WCS or WFS server (see sectionTrabajar con datos OGC). Additionally, you can publish your data on the Internet using a webserver with UMN MapServer or GeoServer installed.

(15)

4.6 Extender funcionalidades QGIS a través de complementos

QGIS se puede adaptar a sus necesidades especiales con la arquitectura de complemento extensible y bibliotecas que se pueden utilizar para crear complementos. Se puede incluso crear nuevas aplicaciones con C++ o Python.

4.6.1 Complementos del Núcleo

Los complementos del núcleo incluyen:

1. Coordinate Capture (capture mouse coordinates in different CRSs)

2. DB Manager (exchange, edit and view layers and tables from/to databases; execute SQL queries) 3. eVIS (visualize events)

4. Geometry Checker (check geometries for errors)

5. Georeferencer GDAL (add projection information to rasters using GDAL) 6. GPS Tools (load and import GPS data)

7. GRASS 7 (integrate GRASS GIS)

8. MetaSearch Catalogue Client (interacting with metadata catalog services supporting the OGC Catalog Ser- vice for the Web (CSW) standard)

9. Offline Editing (allow offline editing and synchronizing with databases) 10. Processing (the spatial data processing framework for QGIS)

11. Topology Checker (find topological errors in vector layers)

4.6.2 Complementos externos de Python

QGIS ofrece un número creciente de complementos Python externos que son proporcionados por la comunidad.

Estos se encuentran en el repositorio oficial de complementos y se pueden instalar fácilmente usando el instalador del complemento Python. Vea la secciónEl diálogo de complementos.

4.7 Consola de Python

For scripting, it is possible to take advantage of an integrated Python console, which can be opened with: Plugins

→ Python Console. The console opens as a non-modal utility window. For interaction with the QGIS environment, there is the qgis.utils.iface variable, which is an instance ofQgisInterface. This interface provides access to the map canvas, menus, toolbars and other parts of the QGIS application. You can create a script, then drag and drop it into the QGIS window and it will be executed automatically.

For further information about working with the Python console and programming QGIS plugins and applications, please refer toConsola Python de QGISand PyQGIS-Developer-Cookbook.

4.8 Problemas Conocidos

4.8.1 Limitación en el número de archivos abiertos

Si va a abrir un proyecto grande de QGIS y está seguro de que todas las capas son válidas, pero algunas capas se marcan como malas, es probable que se enfrentará a este problema. Linux (y otros sistemas operativos, así mismo) tiene un límite de archivos abiertos por proceso. Los límites de recursos son por proceso y heredados. El ulimit, que es una cáscara integrada, cambia los límites solamente para el proceso actual; el nuevo límite será heredado por los procesos hijos.

(16)

Puede consultar toda la información actual de ulimit escribiendo:

$ ulimit -aS

Puede ver el número permitido de ficheros abiertos por proceso con el siguiente comando en una consola:

$ ulimit -Sn

Para cambiar los límites de una sesión existente, debería poder usar algo como:

$ ulimit -Sn #number_of_allowed_open_files

$ ulimit -Sn

$ qgis

Para solucionarlo para siempre

En la mayoría de los sistemas Linux, los límites de recursos se establecen al iniciar sesión por el módulo pam_limits de acuerdo con los ajustes contenidos en:file:/etc/security/limits.conf o /etc/security/

limits.d/*.conf. Debe ser capaz de editar esos archivos si tiene privilegios de root (también a través de sudo), pero tendrá que volver a iniciar sesión para que los cambios surtan efecto.

Más información:

https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ https://linuxaria.com/article/

open-files-in-linux

(17)

Novedades de QGIS 3.4

Esta versión contiene nuevas características y se extiende la interfaz de programación con respecto a versiones anteriores. Le recomendamos que utilice esta versión sobre las versiones anteriores.

This release includes hundreds of bug fixes and many new features and enhancements over QGIS 2.18 that will be described in this manual. You may also review the visual changelogs athttps://qgis.org/en/site/forusers/

visualchangelogs.html.

(18)
(19)

Comenzar

This chapter provides a quick overview of installing QGIS, downloading QGIS sample data, and running a first simple session visualizing raster and vector data.

6.1 Installing QGIS

QGIS project provides different ways to install QGIS depending on your platform.

6.1.1 Installing from binaries

Standard installers are available for MS Windows and macOS. Binary packages (rpm and deb) or software repositories are provided for many flavors of GNU/Linux .

For more information and instructions for your operating system checkhttps://download.qgis.org.

6.1.2 Installing from source

If you need to build QGIS from source, please refer to the installation instructions. They are distributed with the QGIS source code in a file called INSTALL. You can also find them online athttps://htmlpreview.github.io/?https:

//raw.github.com/qgis/QGIS/master/doc/INSTALL.html.

If you want to build a particular release and not the version in development, you should replace master with the release branch (commonly in the release-X_Y form) in the above-mentioned link (installation instructions may differ).

6.1.3 Installing on external media

It is possible to install QGIS (with all plugins and settings) on a flash drive. This is achieved by defining a –profiles-pathoption that overrides the defaultuser profilepath and forces QSettings to use this directory, too.

See sectionSystem Settingsfor additional information.

(20)

6.1.4 Downloading sample data

This user guide contains examples based on the QGIS sample dataset (also called the Alaska dataset).

The Windows installer has an option to download the QGIS sample dataset. If checked, the data will be downloaded to your Documents folder and placed in a folder called GIS Database. You may use Windows Explorer to move this folder to any convenient location. If you did not select the checkbox to install the sample dataset during the initial QGIS installation, you may do one of the following:

• Usar datos SIG que ya tenga

• Download sample data fromhttps://qgis.org/downloads/data/qgis_sample_data.zip

• Desinstalar QGIS y volver a instalarlo con la opción de descarga de datos marcada (sólo recomendado si las soluciones anteriores no funcionaron).

For GNU/Linux and macOS, there are no dataset installation packages available as rpm, deb or dmg. To use the sample dataset, download it fromhttps://qgis.org/downloads/data/qgis_sample_data.zipand unzip the archive on any convenient location on your system.

The Alaska dataset includes all GIS data that are used for the examples and screenshots in this user guide; it also includes a small GRASS database. The projection for the QGIS sample datasets is Alaska Albers Equal Area with units feet. The EPSG code is 2964.

PROJCS["Albers Equal Area", GEOGCS["NAD27",

DATUM["North_American_Datum_1927",

SPHEROID["Clarke 1866",6378206.4,294.978698213898, AUTHORITY["EPSG","7008"]],

TOWGS84[-3,142,183,0,0,0,0], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]],

UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]],

AUTHORITY["EPSG","4267"]],

PROJECTION["Albers_Conic_Equal_Area"], PARAMETER["standard_parallel_1",55], PARAMETER["standard_parallel_2",65], PARAMETER["latitude_of_center",50], PARAMETER["longitude_of_center",-154], PARAMETER["false_easting",0],

PARAMETER["false_northing",0],

UNIT["us_survey_feet",0.3048006096012192]]

If you intend to use QGIS as a graphical front end for GRASS, you can find a selection of sample locations (e.g., Spearfish or South Dakota) at the official GRASS GIS website,https://grass.osgeo.org/download/sample-data/.

6.2 Starting and stopping QGIS

QGIS can be started like any other application on your computer. This means that you can launch QGIS by:

• using the Applications menu, the Start menu, or the Dock

• doble clic el ícono en su carpeta de Aplicaciones o atajo de escritorio

• double clicking an existing QGIS project file (with .qgz or .qgs extension). Note that this will also open the project.

• typing qgis in a command prompt (assuming that QGIS is added to your PATH or you are in its installation folder)

To stop QGIS, use:

(21)

the menu option Project → Exit QGIS or use the shortcut Ctrl+Q

QGIS→ Quit QGIS, or use the shortcut Cmd+Q

• or use the red cross at the top-right corner of the main interface of the application.

6.3 Sample Session: Loading raster and vector layers

Now that you haveQGIS installedand asample datasetavailable, we will demonstrate a first sample session. In this example, we will visualize a raster and a vector layer. We will use:

• the landcover raster layer (qgis_sample_data/raster/landcover.img)

• and the lakes vector layer (qgis_sample_data/gml/lakes.gml) Where qgis_sample_data represents the path to the unzipped dataset.

1. Start QGIS as seen inStarting and stopping QGIS.

2. To load the files in QGIS:

(a) Click on the Open Data Source Managericon. The Data Source Manager should open in Browser mode.

(b) Browse to the folder qgis_sample_data/raster/

(c) Select the ERDAS IMG file landcover.img and double-click it. The landcover layer is added in the background while the Data Source Manager window remains open.

Figure 6.1: Adding data to a new project in QGIS

(22)

(d) To load the lakes data, browse to the folder qgis_sample_data/gml/, and double-click the lakes.gmlfile to open it.

(e) A Coordinate Reference System Selector dialog opens. In the Filter menu, type 2964, filtering the list of Coordinate Reference Systems below.

Figure 6.2: Select the Coordinate Reference System of data (f) Select the NAD27 / Alaska Alberts entry

(g) Click OK

(h) Close the Data Source Manager window

You now have the two layers available in your project in some random colours. Let’s do some customization on the lakes layer.

1. Select the Zoom Intool on the Navigation toolbar 2. Zoom to an area with some lakes

3. Double-click the lakes layer in the map legend to open the Properties dialog 4. To change the lakes color:

(a) Click on the Symbologytab (b) Select blue as fill color.

(c) Press OK. Lakes are now displayed in blue in the map canvas.

5. To display the name of the lakes:

(a) Reopen the lakes layer Properties dialog

(23)

Figure 6.3: Selecting Lakes color

(24)

(b) Click on the Labelstab

(c) Select Single labels in the drop-down menu to enable labeling.

(d) From the Label with list, choose the NAMES field.

Figure 6.4: Showing Lakes names (e) Press Apply. Names will now load over the boundaries.

6. You can improve readability of the labels by adding a white buffer around them:

(a) Click the Buffer tab in the list on the left (b) Check Draw text buffer

(c) Choose 3 as buffer size (d) Click Apply

(e) Check if the result looks good, and update the value if needed.

(f) Finally click OK to close the Layer Properties dialog and apply the changes.

Let’s now add some decorations in order to shape the map and export it out of QGIS:

1. Select View → Decorations → Scale Bar menu

2. In the dialog that opens, check Enable Scale Baroption 3. Customize the options of the dialog as you want

4. Press Apply

5. Likewise, from the decorations menu, add more items (north arrow, copyright. . . ) to the map canvas with custom properties.

(25)

6. Click Project → Import/Export → Export Map to Image. . . 7. Press Save in the opened dialog

8. Select a file location, a format and confirm by pressing Save again.

9. Press Project → Save. . . to store your changes as a .qgz project file.

That’s it! You can see how easy it is to visualize raster and vector layers in QGIS, configure them and generate your map in an image format you can use in other softwares. Let’s move on to learn more about the available functionality, features and settings, and how to use them.

Nota: To continue learning QGIS through step-by-step exercises, follow the Training manual.

(26)
(27)

Working with Project Files

7.1 Introducing QGIS projects

The state of your QGIS session is called a project. QGIS works on one project at a time. Any settings can be project-specific or an application-wide default for new projects (see sectionOpciones). QGIS can save the state of your workspace into a project file using the menu options Project → Saveor Project → Save As. . ..

Nota: If the project you loaded has been modified in the meantime, by default, QGIS will ask you if you want to overwrite the changes. This behavior is controlled by the Prompt to save project and data source changes when requiredsetting under Settings → Options → General menu.

You can load existing projects into QGIS using Project → Open. . ., Project → New from template or Project

→ Open Recent →.

At startup, a list of recently opened projects is displayed, including screenshots, names and file paths (for up to ten projects). This is a handy quick way to access recently used projects. Double-click an entry in this list to open the corresponding project. If you instead want to create a new project, just add any layer and the list disappears, giving way to the map canvas.

If you want to clear your session and start fresh, go to Project → New. This will prompt you to save the existing project if changes have been made since it was opened or last saved.

The information saved in a project file includes:

• Layers added

• Which layers can be queried

• Layer properties, including symbolization and styles

• Projection for the map view

• Last viewed extent

• Print layouts

• Print layout elements with settings

• Print layout atlas settings

(28)

Figure 7.1: Starting a new project in QGIS

• Digitizing settings

• Table Relations

• Project Macros

• Project default styles

• Plugins settings

• QGIS Server settings from the OWS settings tab in the Project properties

• Queries stored in the DB Manager

The project file is saved in XML format. This means that it is possible to edit the file outside of QGIS if you know what you are doing. The file format has been updated several times compared with earlier QGIS versions. Project files from older QGIS versions may not work properly any more.

Nota: By default, QGIS will warn you of version differences. This behavior is controlled in Settings → Options.

On the General tab, you should tick Warn when opening a project file saved with an older version of QGIS.

Whenever you save a .qgs project in QGIS, a backup of the project file is created with the extension .qgs~ and stored in the same directory as the project file.

The extension for QGIS projects is .qgs but when saving from QGIS, the default is to save using a compressed format with the .qgz extension. The .qgs file is embedded in the .qgz file (a zip archive), together with its associated sqlite database (.qgd) forauxiliary data. You can get to these files by unzipping.

Nota: A zipped project may be particularly useful with theAuxiliary Storage Propertiesmechanism in order to embed the underlying database.

Projects can also be saved/loaded to/from a PostgreSQL database using the following Project menu items:

• Project → Open from

• Project → Save to

(29)

Both menu items have a sub-menu with a list of extra project storage implementations (currently just PostgreSQL).

Clicking the action will open a dialog to pick a PostgreSQL connection name, schema name and project.

Projects stored in PostgreSQL can be also loaded from the QGIS browser panel (the entries are located within the schema they are stored in), either by double-clicking them or by dragging them to the map canvas.

7.2 Generating output

There are several ways to generate output from your QGIS session. We have already discussed saving as a project file inIntroducing QGIS projects. Other ways to produce output files are:

• Creating images: Project → Import/Export → Export Map to Image. . . opens a file dialog where you select the name, path and type of image (PNG, JPG and many other formats). This will also create a world file (with extension PNGW or JPGW) that is saved in the same folder as your image. This world file is used to georeference the image.

• Exporting to DXF files: Project → Import/Export → Export Project to DXF. . . opens a dialog where you can define the “Symbology mode”, the “Symbology scale” and vector layers you want to export to DXF.

Through the “Symbology mode” symbols from the original QGIS Symbology can be exported with high fidelity (see sectionCreating new DXF files).

• Exporting to PDF files: Project → Import/Export → Export Map to PDF. . . opens a dialog where you can define the part (Extent) of the map to be exported, the Scale, Resolution, Output width (pixels) and Output height(pixels). You can also choose to Draw active decorations and Draw annotations, as well as Rasterize map.

• Designing print maps: Project → New Print Layout. . . opens a dialog where you can layout and print the current map canvas (see sectionLaying out the maps).

(30)
(31)

IGU QGIS

When QGIS starts, a GUI displays as shown in the figure below (the numbers 1 through 5 in yellow circles are discussed below).

Figure 8.1: Interfaz Gráfica de Usuario de QGIS con datos de muestra de Alaska

Nota: Las decoraciones de las ventanas (barra de título, etc.) pueden ser distintas dependiendo de su sistema operativo y su gestor de ventanas.

La Interfaz Gráfica de Usuario de QGIS está dividida en cinco componentes:

1. Barra de Menú

(32)

2. Barras de herramientas 3. Paneles

4. Vista del mapa 5. Barra de Estado

Scroll down for detailed explanations of these features.

8.1 Barra de Menú

The Menu bar provides access to various QGIS functions using a standard hierarchical menu. The Menus, their options, associated icons and keyboard shortcuts are outlined below. These keyboard shortcuts are the default settings, but they can be reconfigured using the Keyboard Shortcuts via the Settings → menu.

Most Menu options have a corresponding tool and vice-versa. However, the Menus are not organized exactly like the toolbars. The locations of menu options in the toolbars are indicated below in the table. Plugins may add new options to Menus. For more information about tools and toolbars, seeBarras de herramientas.

Nota: QGIS is a cross-platform application - while the same tools are available on all platforms, they may be placed in different menus on different operating systems. The lists below show the most common locations including known variations.

8.1.1 Proyecto

The Project menu provides access and exit points of theproject file. It provides you with tools to:

• Create a New file from scratch or using another project file as a template (see Project files optionsfor template configuration)

• Open. . . a project file from either a file browser or PostgreSQL database

• Close a project or revert it to its last saved state

• Save a project in .qgs or .qgz file format, either as a file or within a PostgreSQL database

• Export the map canvas to different formats or use aprint layoutfor more complex output

• Set the project properties and the snapping options when editing layers.

(33)

Menú Opción Atajos Barra de her- ramietas

Referencia

Nuevo Ctrl+N Proyecto Introducing QGIS projects

Nuevo a partir de plan- tilla

Introducing QGIS projects

Open. . . Ctrl+O Proyecto Introducing QGIS projects

Open from → Post- greSQL

Introducing QGIS projects

Abrir recientes Introducing QGIS projects

Close Introducing QGIS projects

Guardar Ctrl+S Proyecto Introducing QGIS projects

Guardar como. . . Ctrl+Shift+SProyecto Introducing QGIS projects

Save to→ PostgreSQL Introducing QGIS projects

Revert. . .

Propiedades. . . Ctrl+Shift+P Propiedades del proyecto

Snapping Options. . . Configurar la tolerancia del autoensamblado y

radio de búsqueda Import/Export

Export Map to Im- age. . .

Generating output

Export Map to PDF. . .

Generating output Export Project to

DXF. . .

Generating output Import Layers from

DWG/DXF. . .

Importing a DXF or DWG file

New Print Lay- out. . .

Ctrl+P Proyecto Laying out the maps

New Report. . . Laying out the maps

Layout Manager. . . Proyecto Laying out the maps

Layouts Laying out the maps

Salir de QGIS Ctrl+Q

Under macOS, the Exit QGIS command corresponds to QGIS → Quit QGIS (Cmd+Q).

8.1.2 Editar

The Edit menu provides most of the native tools needed to edit layer attributes or geometry (seeEditarfor details).

Menú Opción Atajos Barra de herramietas Referencia

Deshacer Ctrl+Z Digitalización Deshacer y rehacer

Rehacer Ctrl+Shift+Z Digitalización Deshacer y rehacer

Cortar objetos espaciales Ctrl+X Digitalización Cortar, copiar, y pegar objetos espaciales Continued on next page

(34)

Table 8.1 – continued from previous page

Menú Opción Atajos Barra de herramietas Referencia

Copiar objetos espaciales Ctrl+C Digitalización Cortar, copiar, y pegar objetos espaciales

Pegar objetos espaciales Ctrl+V Digitalización Cortar, copiar, y pegar objetos espaciales

Paste Features as Trabajar con la tabla de atributos

Seleccionar Atributos Selecting features

Add Record Ctrl+. Digitalización

Add Point Feature Ctrl+. Digitalización Añadir objetos espaciales

Add Line Feature Ctrl+. Digitalización Añadir objetos espaciales

Add Polygon Feature Ctrl+. Digitalización Añadir objetos espaciales

Añadir cadena circular Shape Digitizing Add Circular string

Añadir cadena circular por radio Shape Digitizing Add Circular string

Add Circle Shape Digitizing

Add Rectangle Shape Digitizing

Add Regular Polygon Shape Digitizing

Add Ellipse Shape Digitizing

Mover objeto(s) espacial(es) Digitalización Avanzada Move Feature(s)

Copy and Move Feature(s) Digitalización Avanzada Move Feature(s)

Borrar lo seleccionado Digitalización Borrar objetos espaciales seleccionados

Modificar atributos de los objetos seleccionados Digitalización Editar valores de atributo

Rotar objeto(s) espacial(es) Digitalización Avanzada Rotar objeto(s) espacial(es)

Simplificar objeto espacial Digitalización Avanzada Simplificar objeto espacial

Añadir anillo Digitalización Avanzada Añadir anillo

Añadir parte Digitalización Avanzada Añadir parte

Rellenar anillo Digitalización Avanzada Rellenar anillo

Borrar anillo Digitalización Avanzada Borrar anillo

Borrar parte Digitalización Avanzada Borrar parte

Remodelar objetos espaciales Digitalización Avanzada Remodelar objetos espaciales

Desplazar curva Digitalización Avanzada Desplazar curva

Dividir objetos espaciales Digitalización Avanzada Dividir objetos espaciales

Dividir partes Digitalización Avanzada Dividir partes

Convinar objetos espaciales seleccionados Digitalización Avanzada Combinar objetos espaciales seleccionados Merge Attributes of Selected Features Digitalización Avanzada Combinar atributos de objetos espaciales

Vertex Tool (All Layers) Digitalización Vertex tool

Vertex Tool (Current Layer) Digitalización Vertex tool

Rotar símbolos de puntos Digitalización Avanzada Rotar símbolos de puntos

Offset Point Symbols Digitalización Avanzada Símbolos de punto de desplazamiento

Reverse Line Digitalización Avanzada

(35)

Tools dependent on the selected layer geometry type i.e. point, polyline or polygon, are activated accordingly:

Menú Opción Point Polilinea Polygon

Move Feature(s)

Copy and Move Feature(s)

8.1.3 Ver

The map is rendered in map views. You can interact with these views using the View tools (seeWorking with the map canvasfor more information). For example, you can:

• Create new 2D or 3D map views next to the main map canvas

Zoom or panto any place

• Query displayed features” attributes or geometry

• Enhance the map view with preview modes, annotations or decorations

• Access any panel or toolbar

The menu also allows you to reorganize the QGIS interface itself using actions like:

• Toggle Full Screen Mode: covers the whole screen while hiding the title bar

• Toggle Panel Visibility: shows or hides enabledpanels - useful when digitizing features (for maximum canvas visibility) as well as for (projected/recorded) presentations using QGIS” main canvas

• Toggle Map Only: hides panels, toolbars, menus and status bar and only shows the map canvas. Combined with the full screen option, it makes your screen display only the map

Menú Opción Atajos Barra de herramietas Referencia

New Map View Ctrl+M Navegación de mapas

New 3D Map View Ctrl+Shift+M 3D Map View

Pan Map Navegación de mapas Zum y paneo

Pan Map to Selection Navegación de mapas

Acercar zum Ctrl+Alt++ Navegación de mapas Zum y paneo

Alejar zum Ctrl+Alt+- Navegación de mapas Zum y paneo

Identify Features Ctrl+Shift+I Atributos Identifying Features

Medir Atributos Mediciones

Statistical Summary Atributos Panel de resumen estadístico

Zum General Ctrl+Shift+F Navegación de mapas

Zum a la capa Navegación de mapas

Zum a la selección Ctrl+J Navegación de mapas

Zum anterior Navegación de mapas

Zum siguiente Navegación de mapas

Zoom To Native Resolution (100%) Navegación de mapas

Continued on next page

(36)

Table 8.2 – continued from previous page

Menú Opción Atajos Barra de herramietas Referencia

Ilustraciones Elementos decorativos

Modo Vista previa

Show Map Tips Atributos Propiedades a mostrar

Nuevo marcador. . . Ctrl+B Navegación de mapas Marcadores espaciales

Mostrar marcadores Ctrl+Shift+B Navegación de mapas Marcadores espaciales

Actualizar F5 Navegación de mapas

Mostrar todas las capas Ctrl+Shift+U Panel de capas

Ocultar todas las capas Ctrl+Shift+H Panel de capas

Show Selected Layers Panel de capas

Hide Selected Layers Panel de capas

Hide Deselected Layers Panel de capas

Paneles Paneles y Barras de Herramientas

Barras de herramientas→ Paneles y Barras de Herramientas

Alternar el modo de pantalla completa F11

Toggle Panel Visibility Ctrl+Tab

Toggle Map Only Ctrl+Shift+Tab

Under Linux KDE, Panels →, Toolbars → and Toggle Full Screen Mode are in the Settings menu.

8.1.4 Capa

The Layer menu provides a large set of tools tocreatenew data sources,addthem to a project orsave modifications to them. Using the same data sources, you can also:

• Duplicate a layer, generating a copy you can modify within the same project

• Copy and Paste layers or groups from one project to another as a new instance whose features and properties you can modify independently of the original

• or Embed Layers and Groups. . . from another project, as read-only copies which you cannot modify (see Anidar proyectos)

The Layer menu also contains tools to configure, copy or paste layer properties (style, scale, CRS. . . ).

(37)

Menú Opción Atajos Barra de her- ramietas

Referencia

Data Source Manager Ctrl+L Data Source

Manager

Opening Data

Crear capa Data Source

Manager

Creating new vector layers

Añadir capa Data Source

Manager

Opening Data

Empotrar capas y grupos. . . Anidar proyectos

Añadir desde archivo de definición de capa. . .

Layer definition file

Copy Style Save and Share Layer Properties

Pegar estilo Save and Share Layer Properties

Copy Layer Paste Layer/Group

Abrir tabla de atributos F6 Atributos Trabajar con la tabla de atribu- tos

Conmutar edición Digitalización Digitalizando una capa existente

Guardar cambios de la capa Digitalización Guardar capas editadas

Ediciones actuales Digitalización Guardar capas editadas

Save As. . . Creating new layers from an ex-

isting layer

Save As Layer Definition File. . . Layer definition file

Eliminar capa/grupo Ctrl+D

Duplicar capa(s)

Establecer visibilidad de escala de capa(s)

Establecer SRC de la capa(s) Ctrl+Shift+C Establecer SRC del proyecto a par-

tir de capa

Layer Properties. . . El Dialogo de las Propiedades

del Vector

Filter. . . Ctrl+F Constructor de Consulta

Etiquetado Propiedades de etiquetas

Show in Overview Overview Panel

Show All in Overview Overview Panel

Hide All from Overview Overview Panel

(38)

8.1.5 Configuración

Menú Opción Referencia

User Profiles Working with User Profiles Style Manager. . . El Administrador de estilos

Custom Projections. . . Sistema de referencia de coordenadas personalizada Keyboard Shortcuts. . . Atajos de teclado

Interface Customization. . . Personalización

Options. . . Opciones

Under Linux KDE, you’ll find more tools in the Settings menu such as Panels →, Toolbars → and Toggle Full Screen Mode.

8.1.6 Complementos

Menú Opción Atajos Barra de herrami-

etas

Referencia

Administrar e Instalar complemen- tos . . .

El diálogo de comple- mentos

Python Console Ctrl+Alt+P Plugins Consola Python de QGIS

Cuando inicie QGIS por primera vez no se cargan todos los complementos principales.

8.1.7 Vectorial

This is what the Vector menu looks like if all core plugins are enabled.

(39)

Menú Opción Atajos Barra de herrami- etas

Referencia

Coordinate Capture Vector Coordinate Capture Plugin

Check Geometries. . . Vector Geometry Checker Plugin

GPS Tools Vector Plugin de GPS

Topology Checker Vector Topology Checker Plugin

Geoprocessing Tools Alt+O+ G Configuring the Processing Frame-

work

Geometry Tools Alt+O+ E Configuring the Processing Frame-

work

Analysis Tools Alt+O+ A Configuring the Processing Frame-

work

Data Management Tools Alt+O+ D Configuring the Processing Frame-

work

Research Tools Alt+O+ R Configuring the Processing Frame-

work

By default, QGIS addsProcessingalgorithms to the Vector menu, grouped by sub-menus. This provides shortcuts for many common vector-based GIS tasks from different providers. If not all these sub-menus are available, enable the Processing plugin in Plugins → Manage and Install Plugins. . . .

Note that the list of the Vector menu tools can be extended with any Processing algorithms or some external plugins.

8.1.8 Ráster

This is what the Raster menu looks like if all core plugins are enabled.

Menú Opción Barra de herramietas Referencia

Raster calculator. . . Calculadora Ráster

Align Raster. . . Raster Alignment

Analysis Configuring the Processing Framework

Projection Configuring the Processing Framework

Miscellaneous Configuring the Processing Framework

Extraction Configuring the Processing Framework

Conversion Configuring the Processing Framework

Georeferencer Raster Georeferencer Plugin

By default, QGIS addsProcessingalgorithms to the Raster menu, grouped by sub-menus. This provides a shortcut for many common raster-based GIS tasks from different providers. If not all these sub-menus are available, enable the Processing plugin in Plugins → Manage and Install Plugins. . . .

Note that the list of the Raster menu tools can be extended with any Processing algorithms or some external plugins.

(40)

8.1.9 Base de datos

This is what the Database menu looks like if all the core plugins are enabled. If no database plugins are enabled, there will be no Database menu.

Menú Opción Barra de herramietas Referencia DB Manager Base de datos DB Manager Plugin

eVis Base de datos eVis Plugin

Offline Editing Base de datos Offline Editing Plugin

Cuando inicie QGIS por primera vez no se cargan todos los complementos principales.

8.1.10 Web

This is what the Web menu looks like if all the core plugins are enabled. If no web plugins are enabled, there will be no Web menu.

Menú Opción Barra de herramietas Referencia

MetaSearch Web MetaSearch Catalog Client

Cuando inicie QGIS por primera vez no se cargan todos los complementos principales.

8.1.11 Procesado

Menú Opción Atajos Referencia

Toolbox Ctrl+Alt+T The Toolbox

Graphical Modeler. . . Ctrl+Alt+M Modelador gráfico

History. . . Ctrl+Alt+H El administrador del historial Results Viewer Ctrl+Alt+R Configurar aplicaciones externas Edit Features In-Place The Processing in-place layer modifier

Cuando inicie QGIS por primera vez no se cargan todos los complementos principales.

Riferimenti

Documenti correlati

Elastomeric thermoplastic block copolymers, especially poly(styrene-b-butadiene-b-styrene) (SBS) are the most commonly used polymers. The rigid styrenic domains,

More than ten years ago, Ross Balzaretti published a highly interpretive article that discussed in partic- ular northern Italy’s economy between the eighth and the ninth centuries; 7

Además de las etiquetas comunes que puede añadir a su petición de incorporación de cambios para clasificarla, existen otras etiquetas especiales que puede usar para generar de

Like the proportional symbol, the scaled symbology can be added to the layer tree, on top of the categorized or graduated classes symbols using the data defined size legend feature.

Like the proportional symbol, the scaled symbology can be added to the layer tree, on top of the categorized or graduated classes symbols using the data defined size legend feature.

Like the proportional symbol, the scaled symbology can be added to the layer tree, on top of the categorized or graduated classes symbols using the data defined size legend feature.

Go to the configuration dialog (you can open it from the SEXTANTE menu), and in the General group you will find a parameter named Output folder.. This output folder is used as

Linear Algebra