A layer is a dataset with geographical information which might be stored in different formats: vectorial or raster files, remote services, databases... (See “Supported formats”).
There are different options to add a layer to a gvSIG View:
With “Add layer”, clicking on the “Add layer” button or in the menu “View/Add layer”.
Menu |
Button |
|
Copy/Cut a layer from another View. With a right-click on the layer you can access to the contextual menu with options to “Copy” or “Cut” a layer. With a right-click on the View's TOC where we want to paste it, we access to the option “Paste”.
Drag and drop a layer from a file browser to the gvSIG View.
When using the order “Add layer” in one session, gvSIG will automatically return to the same location from where data for the View was selected. |
When the layer is added a window with different tabs is opened.
Each tab belongs to a different datum:
File: data stored in files (shp., dxf., tiff., asc...)
Acces services to remote data according to OGC, WMS, WCS, WFS, WMTS standards.
GeoDB: Vectorial data in spatial databases.
OSM: Access services to OpenStreetMap images (tiles).
PostGIS Raster: Raster data stored in a PostGIS database.
In the “File” tab, if we click on “Add” a new window appears. In here we can search the file we want to add.
Once the file is added it appears a list where the file name is indicated and its CRS. By default gvSIG interprets that the CRS is the same as the View, To modify the CRS the layer must be selected in the list and we click on “Properties”.
A new window is opened where there are two tabs “Basic” y “Advanced”. Between all the properties available the most used is “CRS”.
Once we defined the CRS, clicking on “OK” the layers will be added to the View.
Clicking the “...” button of CRS we will be able to access to a window where we can select the reference system. This window is similar to the one for selecting the reference system in a View (See “Coordinate system” to get more information), except the option to select a transformation.
When selecting a CRS for a layer different to the CRS for the View, gvSIG automatically makes a reprojection of the layer.
Reprojection is on-the-fly (OTF). This means that the layer keeps its original projection without any change. If we want to create a new layer with a different projection we will use the “Reprojection” geoprocess (See “Geoprocessing”). |
Transformation and conversions
According to the 19111 ISO, there are two types of operations to relate two different CRSs: conversion operations and transformation operation.
A coordinates conversion operation is applied when the CRS datum of the layer is the same as the CRS datum of the View, that is, both CRS belong to the same geodesic reference system but they are in different coordinates systems. In this case, when choosing the layer CRS we must select the option “No Transformation”.
A coordinate transformation operation is applied when the CRS datum of the layer is not the same as the CRS datum of the View. In this case there are two types of coordinates operations:
That the operation just involve a transformation, when the CRS coordinate system of the layer is the same as the CRS coordinate system of the View; in both CRSs the position is expressed in the same coordinates system but in a different datum.
That a transformation and a conversion are made because neither the datum, neither the coordinates system of the CRS of the layer and of the View are the same.
If a transformation operation is needed, we must choose the type of transformation in the CRS selection panel of the layer, and click the “Next” button, accessing to a panel where we choose the corresponding transformation.
The transformation dialog depends on the type of transformation we want to apply.
EPSG Transformation |
Official transformation operations with 7 parameters defined in the repository EPSG. In the dialog of this type of transformation there is a table which includes all the applicable transformations of the EPSG taking as source CRS the one which was chosen for the layer and the CRS of the View as destination CRS.
You must take into account that the transformation operations of this type are always between the base CRS, that is, non-projected CRS, and therefore if the CRS of the view or the CRS of the layer is projected, the corresponding base CRS will appear in the fields Source CRS and Destination CRS. Keep also in mind that for this type of transformation, the CRS for the View and the CRS for the layer must come from the same EPSG repository. If they come from different repositories, the table will appear empty. |
Manual Transformation |
It allows users to define a Helmert transformation through the introduction of its 7 parameters. |
Grid NTv2 |
Transformation based on an NTv2 grid file. For this, you must choose the NTv2 file from a list of available files or import it from a location to be specified. Since in the NTv2 file the translations have been calculated in a given base CRS, you must indicate here whether the NTv2 was calculated in the base CRS of the View, or the base CRS of the layer. The grid file has a specific scope, which can be deduced from the file information that is displayed in the processing panel. Transformation is not applied beyond this scope, so the re-projection accuracy will be considerably lower, since only the corresponding coordinate system conversion would be applied. |
Recent Transformations |
With this application you can select a transformation that has been used previously. If a recent transformation is selected, two actions can be taken: to accept the transformation or to click on the “Next” button to review the selected transformation. In the next panels you access to the information of the chosen transformation, where you can modify it or select a different one. |
Composite transformations |
It provides gvSIG users with the possibility to represent two CRS with different datums without the transformation between those two CRS, but with a transformation of those two CRS into a third CRS. In this case, the composite transformation can play an important role when you need to define two transformations, one that refers to the CRS of the layer and the other to the CRS that has been defined for the view. With this mechanism, you can set the CRS for the layer and the CRS of the View through an intermediate CRS that connects the two CRS. To do this, after selecting the CRS of the layer and setting the type of transformation to Compound transformation, you need to:
|
The steps to add a WMS through the “Add layer” window are:
Connecting to the service
Select the “WMS” tab.
Introduce the server URL, which will be stored and it will be shown in the pull-down menu for the future.
Click on “Connect”.
When the connection is made, a welcome message from the server appears (not always).
The WMS version number that the connection has been made to is shown at the bottom of the box.
When the connection is made the “Next” button is enabled. We click on it to begin with the configuration of the layer.
You can select the “Refresh cache” option which will search for the server information in the local host. This will only work if the same server was used on a previous occasion. |
Information. It shows information from the server.
Click on “Next”.
Layers. It allows users to access to the available layers in the WMS server and select the one you wish to load.
The available layers are shown. We select the ones we want for our WMS layer. We can double click on a layer and it will be automatically add...
... or to click on the “Add” button.
List of layers that we are adding. We can change the order in which they appear using the up/down arrows.
You can select to keep the structure of the layers and to display their name.
Name that the layer will have in the TOC.
Click on “Next”
You can select several layers at once by holding down the “Control” key whilst left clicking on the mouse. |
You will obtein a layer description if you move the cursor over a layer and wait for a few seconds. The information the server has about these layers is shown. |
If we add a folder, the WMS will have all the layers in that folder. |
Styles. It allows you to choose between the different types of styles (Symbology) that are available. It can happen that there is only one defined style or that the tab is disabled.
Click on Next.
Dimensions. It helps to configure the value for the WMS layer dimensions. However, the dimensions property (like the styles property) is optional and may be disabled.
Initially, no dimension is configured. It allows users to select one from the “Settings editor” area in the list of dimensions. The controls in the bottom right-hand corner of the tab are enabled.
Use the slider control to move through the list of values the server has defined for the selected dimension. You can move back to the beginning, one step back, one step forward or move to the end of the list using the navigation buttons which are located below the slider control.
If you know the position of the value you require, you can simply write it in the text field and it will move automatically to this value.
Click on “Add” so that you can write the selected value in the text field and request it to the server.
gvSIG allows you to choose between:
Single value: Only one value is selected
Multiple: The values will be added to the list in the order they are selected in.
Interval: An initial value and then an end value are selected.
When the expression for your dimension is complete, click on “Set” and the expression will appear in the information panel.
Although each layer can define its own dimensions, only one choice of value is permitted (single, multiple or interval) for each variable. |
The server may come into conflict with the layer combination and the variable value you have chosen. Some of the layers you have chosen may not support your selected value. If this occurs, a server error message will appear. |
You can personalise the expression in the text field. The dialogue box controls are only designed to make it easier to edit dimension expressions. If you wish you can edit the text field at any time. |
Formats. Selecting the format, coordinate system and text format.
It allows you to choose the image format. The main difference between formats is the capacity they have to support transparencies (for instance, PNG supports transparency, JEPG shows transparency areas in an opaque white.
It allows you to choose the CRS for the layer. It should be similar to the one from the View.
It allows you to choose the text format for information queries.
Click on the “OK” button and the layer will be added to our View.
WMS can have as a feature an associated legend. In this case the legend will be shown in the TOC. |
The steps to add a WMTS through the “Add layer” window are:
Connecting to the service.
Select the “WMTS” tab.
Introduce the URL server. The URL will be stored and it will be shown in the drop-down box for other occasions.
Click on the “Connect” button.
When the connection is made, a welcome message from the server appears (not always).
The information about the type of server with which the connection has been made to is shown at the bottom of the box.
When the connection is made the “Next” button is enabled. Click on it to start with the configuration of the WMTS layer.
You can select the “Refresh cache” option which will search for information from the server in the local host. This will only work if the same server was used on a previous occasion. |
Information. It shows the service information.
We click on the “Next” button.
Layers. It allows you to access to the set of available layers in the WMTS server and to choose the one you want to add to the View.
We select the type of View: view as a layer list or view as a theme.
The list of the available layers is shown. Double-click on a layer and it will automatically be added.
... or click on “Add”.
Name of the added layer.
Click on “Next”.
Styles. It allows you to choose between the different types of styles (Symbology) that are available. It can happen that there is only one defined style or that the tab is disabled.
We choose the style.
We click on “Next”.
Formats. Choosing the format, coordinate system and text format.
It allows you to select the image format.
It allows you to select the CRS of the layer. It should be similar to the one from the View.
It allows you to select the text format for information queries.
Click on “OK” and the layer will be added to the View.
The steps to add a WMTS through the “Add layer” window are:
Connecting to the service.
Select the “WFS” tab.
Introduce the URL server. The URL will be stored and it will be shown in the drop-down box for other occasions.
Click on “Connect”.
When the connection is made, a welcome message from the server appears (not always).
The information about the type of server with which the connection has been made to is shown at the bottom of the box.
When the connection is made the “Next” button is enabled. Click on it to start with the configuration of the WFS layer.
You can select the “Refresh cache” option which will search for information from the server in the local host. This will only work if the same server was used on a previous occasion. |
Information. It shows the server information.
Click on “Next”.
Layers. It allows you to access to the set of available layers in the WFS server and to choose the one you want to add to the View.
Double-click on the layer you want to add to the View.
Name with which the layer will be displayed in the TOC.
Information about the WFS version.
Click on “Next”.
Fields.
It allows you to select the fields which will make the attributes table associated to the selected layer.
Click on “Next”.
Options.
WFS version
Max. Features: It allows users to set a maximum number of entities that can be downloaded. Timeout is the length of time beyond which the connection is rejected as it is considered to be incorrect. If these parameters are very low, a correct request may not obtain a response.
SRS: CRS of the layer. gvSIG reprojects the loaded layer to the spatial system in the view.
Enable cache.
Invert the order of X/Y axis.
Inform about the WFS version.
Once the parameters are selected, Click on “Next”.
Area
It allows you to delimit the area of the View in which the vectorial elements will be downloaded. The validation button allows you to confirm that the coordinates are correct (when you click on it, if the X Ycoordinates tabs have right values they become green)
After this we click on “OK” and the WFS will be added to the View.
The steps to add a WCS through the window “Add layer” are:
Connecting to the service
Select the “WCS” tab.
Introduce the URL server. The URL will be stored and it will be shown in the drop-down box for other occasions.
Click on “Connect”.
When the connection is made, a welcome message from the server appears (not always).
The information about the type of server with which the connection have been made to is shown at the bottom of the box.
When the connection is made the “Next” button is enabled. Click on it to start with the configuration of the WCS layer.
Information.
Click on “Next”.
It allows users to access to the set of available layers in the WCS server and to choose the one you want to add to the View.
Double-click on the coverage you want to add to the View.
Click on “Next”.
Formats. It allows users to choose the image format with which the request will be made and the reference system.
Select the format.
Select the CRS. It must coincide with the CRS of the View.
Click on “Next”.
There are tabs such as “Time” and “Parameters” that can be disabled or enabled depending on the service.
Click on “OK” and the WCS will be added to the View.
The steps to add an OSM service by means of the window "Add layer" are:
Select “OSM” tab.
Select one of the tile services available in OSM (Mapnik, Stamen Watercolor, Open Cycle Map, Stamen Toner, Stamen Terrain)
When we select a service from the list its characteristics are automatically filled in. In this section we can also add a new server’s features or update an existing server.
Click on “Ok” and OSM layer is added to View
This tool adds a map service like Google Maps or Bing Maps to View. It uses the projection system EPSG: 3857; therefore, in order to obtain a correct visualization of the data, it is recommended that View must be in the same projection.
The steps to add a map service from the window Add Layer are the following:
Select the Tab “WebMaps”
Select the Tab of the map service of preference (Google Maps o Bing Maps)
Select the type of map from the drop down menu
Indicate (optional) the API key
Google Maps: This tool uses the library of static maps of Google Maps; hence, it must follow these terms of use: (https://developers.google.com/maps/terms?hl=es#1-your-relationship-with-google). For this, it is necessary to use a credential that identifies the service used. This credential is obtained from Google and must be set up before using it with static maps. The credential must be obtained from: https://console.developers.google.com/
Bing Maps: This tool uses the library of static maps of Bing Maps; hence, it must follow these terms of use: (https://msdn.microsoft.com/es-es/cc300389). For this, it is necessary to use a credential that identifies the service used. This credential is obtained from Bing and must be set up before using it with static maps. The credential must be obtained from: https://www.microsoft.com/maps/create-a-bing-maps-key.aspx
Set (optional) the zoom level. This field indicates the number of zoom the layer allows. Although it is predetermined at 22 in Google Maps, this is a default value and may change depending on the zone and the type of map used, so other values might be necessary. In Bing Maps, it is not necessary to use zoom level because it is provided by Bing Maps according to the type of layer
Click OK and the new layer is added to View
It allows the user to access spatial databases in a simple and unified way to different suppliers.
gvSIG stores the different sessions’ connections. This way is not necessary to enter the parameters of each server to which we connect every time. Similarly, if you open a project file that has some connection to databases we only will be asked for the password.
The steps to add a GeoDB layer to the View are:
Connect:
Select “GeoDB” tab.
Click on the button to create a new connection. If there already created connections we simply select it from the drop-down. When we create a new connection the following window opens:
We indicate the connection parameters:
Connection name: user’s choice
Connector. Select the type of database which we want to connect to from the drop down menu (MySQL, PostgreSQL/PostGIS, JDBC).
Server: Server URL
Port.
Database: database name
User
Password
Click on “OK" and the connection will be established. When connected, the window "Add Layer / GeoDB" shows the tables (layers) available.
Selection of information
Select the table / to load. When we select a table, the "Table Columns" section will be updated showing all selected fields available in our table; we can unselect those we don't want to load.
Table settings. In this section we can change the name of the layer displayed in the TOC which is filled by default with the name of the table. It allows indicating a restriction by means of a SQL expression, design and work area.
Once all the parameters are set click on "OK" and the information will be added to our Vista.
It allow to add raster information stored in PostGIS database. Its behaviour is similar to GeoDB
Connect.
Select “PostGIS Raster” tab.
Click on the button to create a new connection. If there are connections already created we must select from the drop-down. When the connection is established the following window opens:
We indicate the connection parameters:
Connection name: user's choice
Connector. Select the “PostgreSQLExplorer” option from the dropdown:
Server: Server URL
Port.
Database: database name
User
Password
Click on “OK” and set connection. When we connect, the window "Add Layer / PostGIS Raster" displays the avaiable tables.
Select a table from the list and the “Subdataset” paragraph will update.
Click on “OK” and our View information will be added.
It allows to create a point layer from a table which has the points X and Y coordinates as fields. We must have a table in the project to run this tool.
It is available in the "View / Add event theme" menu, in the "Tools / Transforms / Create" menu and from the corresponding button.
Icono |
Herramienta |
Tecla rápida |
Descripción |
Add event theme |
|
It allows to create a point layer from a table which has the points X and Y coordinates as fields |
The interface will guide us through the steps to add a event theme
Select data store. It allows the selection of the table we want to add as a layer of events from the available table lists of our project. Once selected we must click on the "Next" button.
Select the transformation parameters. It allows us to indicate the table fields wich contains the points X and Y coordinates. The default projection is the View, although it can be modified. Once the options are set we must click on the “Next” button.
It allows us to indicate if we want to load the generated layer in one of the Views of the project. Once we click on the "Finish" button the new layer is created and, if appropriate, added to the selected View.
This tool adds OGR vector format files. The complete list of OGR files is available at http://www.gdal.org/ogr_formats.html
The steps to add an OGR file from the window Add Layer are the following:
Go the tab “OGR”
Select the button “...” to load a file
Click the Button OPEN. It will add one or several rows (depending on the file format) to the list of available layers
Select the layer to load
Click ACCEPT and the layer will open on View