` `
QGIS allows users to define a global and project-wide CRS (coordinate reference system) for layers without a pre-defined CRS. It also allows the user to define custom coordinate reference systems and supports on-the-fly (OTF) projection of vector and raster layers. All of these features allow the user to display layers with different CRSs and have them overlay properly.
QGIS tiene ayuda para aproximadamente 2 700 SRC conocidos. Las definiciones para cada SRC esta almacenada en una base de datos SQLite que esta instalada con QGIS. Normalmente, no se necesita manipular la base de datos directamente. De hecho, si lo hace podría provocar que la ayuda de la proyección falle. Los SRC personalizados estan almacenados en una base de datos de usuario. Consulte la sección Sistema de referencia de coordenadas personalizada para obtener información sobre la gestión de su sistema de referencia de coordenadas personalizada.
Los SRC disponibles en QGIS se basan en los definidos por el European Petroleum Search Group (EPSG) y el Instituto Geográfico Nacional de Francia (IGNF) y se abstraen en gran parte de las tablas de referencia espaciales utilizados en GDAL. Los identificadores EPSG están presentes en la base de datos y se pueden utilizar para especificar un SRC en QGIS.
Para utilizar la proyección OTF, o bien sus datos deben contener información sobre su sistema de referencia de coordenadas o tendrá que definir un SRC mundial, capa o para todo el proyecto. Para las capas de PostGIS, QGIS utiliza el identificador de referencia espacial que se especificó cuando se creó la capa. Para los datos reconocidos por OGR, QGIS se basa en la presencia de un medio reconocido de la especificación del SRC. En el caso de archivos shape, esto significa un archivo que contiene el texto well-known (WKT) especificación del SRC. Este archivo de proyección tiene el mismo nombre base que el archivo shape y una extensión .prj Por ejemplo, un archivo shape denominado alaska.shp tendría un archivo de proyección correspondiente llamado alaska.prj.
Whenever you select a new CRS, the layer units will automatically be
changed in the General tab of the
Project Properties dialog under the Project
(or
Settings) menu.
QGIS starts each new project using the global default projection. The global
default CRS is EPSG:4326 - WGS 84 (proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs),
and it comes predefined in QGIS. This default can be changed via the
Select CRS button in the first section, which is used to define the default
coordinate reference system for new projects, as shown in
figure_projection_options. This choice will be saved for use in subsequent QGIS
sessions.
CRS tab in the QGIS Options Dialog
When you use layers that do not have a CRS, you need to define how QGIS
responds to these layers. This can be done globally or project-wide in the
CRS tab under Settings ‣
Options.
The options shown in figure_projection_options are:
Usar SRC por omisión mostrado abajo
If you want to define the coordinate reference system for a certain layer without CRS information, you can also do that in the General tab of the raster and vector properties dialog (see Propiedades Generales for rasters and Propiedades Generales for vectors). If your layer already has a CRS defined, it will be displayed as shown in Pestaña General en cuadro de diálogo de propiedades de las capas vectoriales.
Truco
CRS in the Layers Panel
Right-clicking on a layer in the Layers Panel (section Panel de capas) provides two CRS shortcuts. Set layer CRS takes you directly to the Coordinate Reference System Selector dialog (see figure_projection_project). Set project CRS from Layer redefines the project CRS using the layer’s CRS.
QGIS supports on the fly CRS transformation for both raster and vector data. However, OTF is not activated by default. When OTF is off, each layer is drawn using the coordinates as read from the data source. When OTF is on, each layer’s coordinates are transformed to the CRS of the project.
There are three ways to enable On The Fly CRS Transformation:
If you have already loaded a layer and you want to enable OTF reprojection, the
best practice is to open the CRS tab of the Project
Properties dialog, activate the
Enable ‘on the fly’
CRS transformation checkbox, and select a CRS.
The
CRS status icon will no longer be greyed out, and all
layers will be OTF projected to the CRS shown next to the icon.
Diálogo de Propiedades del proyecto
This dialog helps you assign a Coordinate Reference System to a project or a layer, provided a set of projection databases. Items in the dialog are:
Truco
Looking for a layer CRS? Use the CRS selector.
Sometimes, you receive a layer and you don’t know its projection. Assuming that you have another layer with a valid crs that should overlaps with it, enable the OTF reprojection and, in the General tab of the Layer properties dialog, use the Coordinate Reference System selector to assign a projection. Your layer position is then moved accordingly. You may have to do some trial and error in order to find the right position, hence its original CRS.
Nota
When operating across layers, for example, computing intersections between two layers, it is important that both layers have the same CRS. To change the projection of an existing layer, it is insufficient to simply change the CRS in that layer’s properties. Instead you must save the layer as a new layer, and choose the desired CRS for the new layer.
Si QGIS no provee el sistema de referencia por coordenadas que necesita, puede definir un CRS predeterminado. Para definir un CRS, elegir Custom CRS... del menú Ajustes. CRSs personalizados se almacenan en su base de datos de usuario lqgl. A más del CRS personalizado, esta base de datos también contiene sus separadores espaciales y otros datos personalizados.
Diálogo SRC Personalizado
Definir un CRS personalizado en QGIS requiere un buen entendimiento de la librería de proyección PROJ.4. Para comenzar, referir a “Procedimientos de Proyección Cartográfica para el Entorno UNIX - Un Manual de Usuario” por Gerald I Evenden, Reporte de Encuesta Geológica de Archivo Abierto U.S. 90-284, 1990 (disponible en ftp://ftp.remotesensing.org/proj/OF90-284.pdf).
This manual describes the use of the proj.4 and related command line utilities. The cartographic parameters used with proj.4 are described in the user manual and are the same as those used by QGIS.
El diálogo Definición del Sistema de Referencia de Coordenadas personalizada sólo necesita dos parámetros para definir un usuario de SRC:
Un nombre descriptivo
Los parámetros cartográficos en el formato PROJ.4
To create a new CRS, click the Add new CRS button and
enter a descriptive name and the CRS parameters.
Note que :guilaber:`Parámetros` debe empezar con un bloque “+proj=”, para repersentar el nuevo sistema de referencia por coordenadas.
Usted puede evaluar sus parámetros CRS para ver si dan resultados sensatos. Para hacer esto, ingresar valores de longitud y latitud conocidos WGS 84 en campos Norte :guilable:`Este`, respectivamente. Clic en [Calcular], y comparar los resultados con valores conocidos en su sistema de referencia por coordenadas.
OTF depends on being able to transform data into a ‘default CRS’, and QGIS uses WGS84. For some CRS there are a number of transforms available. QGIS allows you to define the transformation used otherwise QGIS uses a default transformation.
En la pestaña CRS bajo Settings ‣ Options se puede:
Hacer qu QGIS le pida cuando necesite definir una transformación usando Pedir transformación de datos cuando no se defina una predeterminación
editar una lista de predeterminaciones de usuarios para transformaciones.
QGIS asks which transformation to use by opening a dialogue box
displaying PROJ.4 text describing the source and destination
transforms. Further information may be found by hovering over a
transform. User defaults can be saved by selecting
Remember selection.