The gvSIG project was born in 2004 within a project that consisted in a full migration of the information technology systems of the Regional Ministry of Infrastructure and Transport of Valencia (Spain), henceforth CIT, to free software. Initially, It was born with some objectives according to CIT needs. These objectives were expanded rapidly because of two reasons principally: on the one hand, the nature of free software, which greatly enables the expansion of technology, knowledge, and lays down the bases on which to establish a community, and, on the other hand, a project vision embodied in some guidelines and a plan appropriate to implement it.
The “Association for the promotion of FOSS4G and the development of gvSIG", gvSIG Association, aims currently the sustainability of gvSIG project. The gvSIG Association is a non-profit organization that includes the main entities who promote the gvSIG project. Around democratic values and values of solidarity of the open source software the gvSIG Association promotes the development of a new business model based on cooperation and shared knowledge, where part of the benefits from these bussines activities will back into the gvSIG project.
gvSIG is a programme which manages geographic information. It has a user-friendly interface and fast access to most standard raster and vector formats. gvSIG can also integrate local and remote data in the same view through WMS, WFS, WCS and JDBC sources.
It is aimed at end users of geographic information in business and public administration (city councils, regional councils and regional and national ministries).
It is also highly suited to the university environment thanks to its R&D&I element.
It is a free, open code application with a GPL licence. From the outset, special emphasis has been given to the expansion of the gvSIG project so that developers can add functions to the application easily and develop completely new applications from the libraries used in gvSIG (as long as they comply with the GPL licence).
gvSIG is a sophisticated Geographic Information System for managing spatial data and performing complex analyses on it.
The gvSIG interface has the necessary features required to communicate with the programme. The graphical interface is intuitive and user-friendly and is suitable for any user who is familiar with Geographic Information Systems.
The gvSIG interface is made up of a main window with different tools and secondary windows for the documents created using the programme, as described in the following sections.
Before describing the different documents and tools, we must take a look at the gvSIG interface. The more familiar you become with the interface the easier it will be to go through the following chapters.
Title bar: Located at the top of the gvSIG window. It contains the programme name, i.e. “gvSIG” in this case.
Buttons to maximize or minimize the programme’s active window or to completely close it.
Main window: Work area in which the different “Project Manager” windows and the different gvSIG documents are located.
Menu bar: Some of the gvSIG functions are grouped into menus and sub-menus in the menu bar.
Toolbar: The toolbar contains the icons for the standard commands and is the easiest way to access them. By clicking and dragging the toolbars we can move them to different positions.
It is not necessary to memorize the meaning of every single icon. When you place the mouse pointer over them a message with a description of their function immediately appears.
Status bar: The status bar provides information about coordinates, distances, etc.
In gvSIG all the activities are located in one project. This project is made up of different documents. There are three types of documents in gvSIG: views, tables and maps.
Views: Views are the documents in which we work with graphic data.
Tables: Tables are the documents in which we work with alphanumeric data.
Maps: A map generator which allows the different cartographic elements included in a map (view, legend, scale…) to be inserted.
Projects are files with a “.gvp” extension. These files do not include spatial data and associated attributes in the shape of tables. Instead they save references to the places the data sources are stored (the path to be followed in the disk in order to find the files). If the data changes the updates will be shown in all the projects they are used in. The menu which allows you to access the project management options is located in the “File” menu
And in the following toolbar buttons (“New project”, “Open project” and “Save project”).
If you press “Yes”, a window will open so you can save your current gvSIG project. When the previous project has been saved a new blank project will appear on the screen.
Once a new project has been created in gvSIG, the layers that we are going to work with are added to the project.
Take the following project as an example, which contains layers for the provinces of South Africa.
As you can see, three layers have been added to the View, namely Provinces, Roads and Cities. Close the project, remembering to save any changes. Now change the path to one or more of the layers in the project either by renaming the directory or by moving the layer(s) to another directory.
Reopen the gvSIG project and you will see the following window displayed:
When the project is opened, gvSIG will prompt the user to locate layers for which the path has changed and to provide a new path. Once the new path has been provided gvSIG can load the layer and you can resume working on the project.
When you decide to finish a session in gvSIG, a window such as the one shown below appears:
The text box shows both the name of the project currently in use as well as the layers and tables which were being edited before the decision to close the project was made. The “Select all” and “Clear selection” buttons allow you to enable or disable the check boxes in the text box which correspond to the project or to the layers being edited.
If you click on “Ok”, the changes made to the enabled elements in the text box will be saved.
If you click on “Discard changes”, none of the changes made in the project will be saved irrespective of whether they have been enabled or not.
The “Cancel” button allows you to exit the window.
If you copy and paste a document, you should remember that if this document has any other documents associated with it these will also be copied (example: if a map is copied the views it includes will also be copied).
N.B. You can select several documents to be copied at the same time.
N.B. Remember that if you press “No” or “Cancel” in any of the dialogue boxes which appear during the process, none of the changes you have made in the process will be saved.
Select the view you wish to copy from the “gvSIG Project manager”, right click and select “Copy” from the contextual menu.
If you wish to copy the view to another gvSIG project, select “Paste” from the contextual menu. If a project already has a view with this name a message will appear to indicate that you must change the name of the view you are trying to paste.
N.B. The message “No table will be pasted” means that the tables which are active in the source view will not appear in the target view unless they are activated in this view. If you wish to cancel the operation, press “No”. If you press “Yes” a new dialogue box will appear so the view can be given a new name.
Write the new view name and press “OK”. This view will be added to the project. If you press “Cancel” the process will be terminated.
The procedure for copying/pasting tables is similar to the procedure described above. However, in this case tables with the same name can exist in a project.
The procedure for copying and pasting maps is similar to the previous two cases. Select the map you wish to copy from the “Project Manager”, right click and select “Copy” from the contextual menu. If you wish to paste the map to a project which already has a map with the same name, the following message will appear.
If you press “No”, the operation will be cancelled. If you press “Yes”, a new dialogue box will appear. Write the new name for the map in the box and press “OK”.
If you press “Cancel” the process will be terminated. If any of the views associated with the map already exist in the current project the following message will appear.
If you press “Yes”, a new map document will be created. If you press “No” the operation will be cancelled. N.B. The message “The conflicting views will not be pasted” indicates that the views the maps are associated with will not be added. Instead, the views which already exist in the current project with these names will be used (example: You have copied a map with an “A” view and a “B” view. When you try to paste the map into the project, you find that an “A” view already exists. The operation will add the “B” view and will leave the “A” view intact so that the map will use the pre-existing “A” view).
Use the “Project manager” to select the document you wish to cut. Right click and select the “Cut” option from the contextual menu. The following window will appear.
If you press “Yes” the selected document will be “cut” from your project.
Views are the gvSIG documents used as the working area of cartographic information.
A view can contain different layers of geographic information (hydrography, transport infrastructures, administrative regions, contour lines, etc.).
When one of the views that make up a project is opened, a new window appears divided into the following parts:
Table of contents (ToC): The ToC is located on the left-hand side of the window. The Table of Contents lists all the layers it contains and the symbols used to represent the elements which make up the layer.
Display window: The display window is located on the right-hand side of the screen. The project’s cartographic data are shown in this display window.
Locator: The locator is situated in the bottom left-hand corner. The locator allows the current frame to be situated in the work area as a whole.
When a view is opened, the main window increases the number of menus and buttons, thus adding the tools required to work with the elements which make up the view.
The size of the ToC can be enlarged to show a full description of all the themes by simply dragging its edge to the right or downwards.
You can access the active layer's properties from its contextual menu (right click on the layer).
Right click on the selected layer in the ToC to access the properties window.
When you click on the “Properties” option, a new dialogue box opens. This can be used to edit some properties.
The layer name can be changed by writing the new name in the text field in the “General” tab.
If you wish to rename the selected layer, right click on the layer and go to the "Rename" option.
A new window appears:
Write the new name in the text field and click on “Ok”.
N.B.: When you do this, the layer name changes in the ToC, but the file name is not changed.
If you mark the “Use spatial index” check box, a spatial index will be created which makes the layer loaded in the view appear more quickly. This is because the view is loaded using this index.
If there are write permissions, a .qix file is created with the same name as the layer it is associated with in the layer’s original directory. If there are no write permissions, the file will be created in the user’s temporary file directory.
A viewing scale range (maximum and minimum) can be set in the properties window.
En el apartado propio de Propiedades de la capa puede encontrar la extensión de la capa y la ruta del archivo. Además, se ha añadido información sobre el tipo de capa (punto, línea, polígono, multigeometría, 2D o 3D).
En el caso de capas con origen en la base de datos, se mostrará el tipo de driver empleado, los parámetros de conexión, el nombre de la tabla y del esquema y la restricción sql si es que se está empleando una.
You can access the active layer's properties from its contextual menu (right click on the layer).
You can find information about the current raster layer through the option "Raster Properties", which shows a dialog with multiple tabs containing information about the raster layer. To get information about the layer, click the tab "Information".
The "Raster Properties" dialog can be accessed in two ways: by right-clicking on the raster layer in the Table of Contents or through the raster properties icon in the toolbar:
Here, set the left button to Raster Layer and select the option Raster Properties from the pull-down button on the right. Make sure that the name of the raster layer for which you want to see information is displayed as current layer in the text box.
The Information tab of the Raster Properties window shows general information about the raster layer. Since a layer can consist of multiple files with the same geographic extension, you can choose the file for which you want to see information from the pull-down tool on the bottom of the "Information" tab window. The information is divided in thematic blocs with a header in bold letters indicating the bloc theme.
The bloc Dataset information shows the name of the file, disk size, width and height in pixels, data format (file extension), whether it is georeferenced, the number of bands and the data type.
The bloc Geographic coordinates shows the georeferencing information of the layer as well as the pixel size.
The bloc Origin will show an entry for each band in the file. For every band you can see the data type, the colour interpretation and the value that is assigned to NoData pixels. The colour interpretation of a band is important for the display on screen. If a band has an interpretation such as Red, this means that gvSIG will interpret this band to be displayed as the red band in RGB visualization. This colour interpretation will be used as default for the displaying of the image. A band may have the following types of representations: Red, Green, Blue, Gray, Undefined or Alpha. The NoData information associated with the band will not be taken into account when processing the image, and the NoData values can be shown as transparent if needed (see the section "NoData values").
The bloc Projection will show the projection information of the layer, if available. The representation format is WKT.
The bloc Metadata will show metadata information from the image header if available.
Right click on a raster layer and select the "Raster properties" option. This opens a menu in which we can carry out various operations on the raster layer.
This menu is divided into five tabs:
Information: Provides general information about the raster layer, the file path, the number of bands, the pixel dimensions, the file format, the data type and the geographic coordinates of the corners.
Bands: Provides tools to change the mode in which each image band is viewed. Transparency: Provides tools to change the transparency levels that can be applied to a raster layer.
Enhance: Provides a tool to enhance the raster layer. Pansharpening: Provides a tool to increase the satellite image resolution if the panchromatic band for these images is available.
In the “Bands” tab you can make compositions using the different bands in a raster image. You can also add more bands from other files. This is useful when working with Landsat-type images, in which each band is delivered in a different file.
In addition to the “Transparency” option in gvSIg version 0.3, which is now called “opacity”, and which indicates the "occlusion” percentage of this layer over the previous ones, there is now a transparency option which allows the indicated colour groups (RGB) to be completely transparent. This is very useful to eliminate visual artefacts as a result of missing data in orthophotos or satellite images and to remove borders in an image mosaic.
To access the options, click on the corresponding “Activate” check boxes.
The “Enhance” tab can be used to modify the image brightness, contrast and enhancement. This last option is essential to be able to view 16-bits per band images correctly.
The “Pansharpening” tab can be used to increase the resolution of satellite images if the panchromatic band for these images is available. N.B.: If the image bands are in different files, they must be added to the layer using the “Bands” tab.
Use the “Bands” tab to find the best band combination for the view. In this section, you can load the image which corresponds to the panchromatic band but you must not select it to be visualised.
When the bands have been loaded, you can carry out the pansharpening. Go to the “Pansharpening” tab and activate it by clicking on the “Activate Pansharpening” check box. Select the panchromatic band with which the pansharpening is to be carried out from the band list. Finally, select an algorithm to be applied. There are two methods available, “Brovey” and “HSL”. Both of them have a slide bar control to carry out adjustments.
In “Brovey” the general brightness of the resulting image is increased or decreased.
In “HSL” the coefficient which is added to the brightness taken from the pansharpening band varies before it is replaced in the output image. This coefficient can vary between 0.15 and 0.5. When modified, the obtained result also influences the output image’s general brightness. If you click on the "Apply" or “Ok" buttons, the pansharpening will be applied on the image in the view, thus increasing the image resolution.
To set the layer visibility according to scale range, you can specify the scale ranges in the "General" tab of the Raster Properties window.
The "Raster Properties" dialog can be accessed in two ways: by right-clicking on the raster layer in the Table of Contents, or through the Raster Properties icon in the toolbar:
In the "General" tab, the scale ranges can be set as shown in the picture below:
There are two ways to hide the image according to its scale:
The Raster Properties dialog contains options for the enhancement of raster layers. The "Raster Properties" dialog can be accessed in two ways: by right-clicking on the raster layer in the Table of Contents or through the raster properties icon in the toolbar:
Here, set the left button to Raster Layer and select the option Raster Properties from the pull-down button on the right. Make sure that the name of the raster layer for which you want to see information is displayed as current layer in the text box.
In the Raster Properties dialog, select the "Enhancement" tab.
Every modification in this Enhancement dialog will be applied to the current view for visual interpretation purposes and can not be saved as a new layer. If you want to save the enhancements, you will need to use the Filter dialog or the Radiometric Enhancement dialog, depending on whether you want to modify the brightness and contrast or apply a linear enhancement.
On the left side of the dialog, the controls for modifying brightness and contrast are shown. By default, these controls are disabled but if you want to change the values, you can activate them by ticking the "Activate" check box. Then, use the slide bar to alter the slide bar or type the value directly in the corresponding text box.
The right side of the dialog is used for linear enhancement. This is a simplification of linear radiometric enhancement to control the display of images of data types other than Byte. For Byte images, this control is disabled by default. For other data types, these values are automatically set when the raster layer is loaded. It is recommended to use this control only to modify automatically assigned values. For more enhancement options it is more appropriate to use the Radiometric Enhancement function.
The enhancement stretches the data over a range from 0 to 255 to improve visual interpretation. The option "Remove edges" will ignore the minimum and maximum values that appear in the image. The option "Clipping tail (%)" will sort the values from low to high, and cut off the values that are lower or higher than a specified percentage of the total number of values. The effect is a shift in the maximum and minimum values.
gvSIG can generate basic statistics over raster layers, which you can access through the option "Raster properties" that opens a dialog window with multiple tabs containing information about the selected raster layer. Select the "General" tab to see the layer statistics.
The dialog window "Raster properties" can be accessed in two ways: by right-clicking the raster layer in the table of contents, or from the raster properties icon in the toolbar:
In this tab, you can see the layer statistics grouped by band. For each band the following information is shown:
In case that the statistics are incomplete or erroneous, you can use the option "recalculate statistics" to regenerate the statistics.
You can find information about the current raster layer through the option "raster properties", which opens a dialog with several tabs. To access the list of image bands and corresponding files, go to the tab "Bands".
The "Raster Properties" dialog can be accessed in two ways: by right-clicking on the raster layer in the TOC, or through the raster toolbar by selecting "Raster layer" on the left drop-down button and "Raster properties" on the drop-down button on the right. Make sure that the name of the raster layer for which you want to see information is displayed as current layer in the text box.
The "Bands" tab of the "Raster properties" dialog provides options to select band combinations for image display. The upper part of the dialog shows a list of files of which the image consists. You can add more files, but they must correspond to the same geographic area. This is useful when you need to load several files of the same sensor, each file representing a band.
In the lower part of the dialog you can select the display order of the bands. By default, the display order is assigned by the colour interpretation of the bands, if that information is available. With the option buttons, you can change the display order by marking the bands that should be displayed in red (R), green (G), blue (B) or alpha (A). When clicking on the "Save" button, the colour interpretation information will be saved and set as default for the image. This means that the next time that the image is loaded in gvSIG, the display order of the bands will according to the settings that you have saved.
You can find information about the current raster layer through the option "Raster properties", which opens a dialog with several tabs. To access the pixel transparency and opacity options, go to the tab "Transparency".
The "Raster Properties" dialog can be accessed in two ways: by right-clicking on the raster layer in the TOC, or through the raster toolbar by selecting "Raster layer" on the left drop-down button and "Raster properties" on the drop-down button on the right. Make sure that the name of the raster layer for which you want to see information is displayed as current layer in the text box.
The transparency options that are set here will only be applied to the current view (i.e. they will not be applied permanently to the image). The transparency will be calculated and applied each time when you zoom on the view. The transparency settings can be saved in the current project, and when the project is opened again, the transparency will be applied on the layer. However, if the same image is opened in another project, it will be displayed normally without the transparency settings.
The upper part of the "Transparency" tab of the "Raster properties" dialog shows a sliding bar labelled "Opacity". After activating the sliding bar by ticking the check box, you can modify the opacity of the whole layer by moving the slider. (Opacity is the opposite of transparency: if you set the opacity to 0%, the layer will be 100% transparent.)
The pixel transparency controls are located in the lower part of the "Transparency" tab. With these controls, you can apply transparency to pixels or a range of pixels depending on their RGB value. After activating the controls (by ticking the "Activate" check box) you can add specific RGB values to the list of elements through the "Add" button. Three values separated by the "&" or "|" symbol will be added as one item in the list; the three values correspond to the RGB value that will be set transparent. The values that are added are those that appear in the text boxes, the alpha value is optional. The information in these text boxes can be modified in three ways: typing the value directly by using the keyboard, moving the colour sliders on the left of the text boxes, or by clicking on the image in the view to select a specific colour value. This last option is activated with the button with the tooltip "Select RGB clicking on view". This will activate a crosshair cursor in the gvSIG view so that you can click on the image pixels and select the values for which you want to set the transparency.
If the line "255 & 0 & 0" is added to the list, this means that all pixels with the RGB values of 255 for red, 0 for green and 0 for blue (i.e. all pixels that are pure red) will be set transparent. The "&" symbol can be changed by the "And" and "Or" options. If "Or" is activated, the entries in the list will appear with the pipe symbol "|". The line "255 | 0 | 0" means that all pixels that have RGB values of 255 for red, or 0 for green, or 0 for blue will be set transparent. In this case many more pixels will be set transparent.
With the increase of image processing functions in the menu of gvSIG, the toolbar had to incorporate these Raster functions by grouping them as pull-down buttons.
As can be seen in the image below, when a view is selected, a control will appear at the right side of the toolbar.
The control has two drop-down buttons and a search combobox with the name of the current layer.
The buttons work as follows (see image below):
With the first drop down button you can access a set of grouped functions. For each group of functions, the individual functions within that group will be shown in the second button. Therefore, the functions that are available in the second button depend on the group of functions that is chosen with the first button.
In the image above, the individual functions from the second drop-down are shown while in the first drop-down button the function group "Raster layer" is selected.
The search combobox is used to select one of the layers in the TOC. When clicking on the arrow on the right, all the possible layers are shown.
You can write text in the combobox to filter the list of images (i.e. write "1x5" to show only layers that have these characters in their name).
When processes that display a progress bar have ended, a statistics window with details of the process is usually shown.
Examples of such processes that launch statistics windows are Filters, Crop, Save As, etc.
The statistics window shows the following information:
If you have generated more than one layer in the same process (as is the case when cropping images with multiple bands) the statistics window will display the information of each layer in a different tab.
The window can be closed by pressing the OK button.
When running processes that may take a considerable amount of time, a progress bar is shown.
The progress bar indicates that a process is running in the background and informs the user on the status of the process at any given moment and on how much time has elapsed since the process started.
In the image below, you can see a screenshot of the progress bar during a running process.
The progress bar consists of several parts. The title indicates which process is running. Below the title, the current task that is being processed is indicated as well as the percentage of the process that has been completed.
The progress bar contains two buttons. To see more details, you can click the left button, after which the dialog is enlarged to display additional information as in the screenshot below.
The additional information includes a list of tasks that have been performed and an indication of how much time has elapsed since the process was started.
If you want to cancel a process, you can click on the "Cancel" button on the right. A message will appear to prompt for confirmation. Clicking on the "Cancel" button does not always guarantee that the process is stopped immediately. Depending on the process, certain tasks might be needed to reverse the process and return to the previous state.
The table control component is used to represent data in tabular form and allows you to edit the data.
The possibilities are:
Choose a unique property for every row. In the example above, a band is allocated for each layer.
Typical table controls, as shown in the example at the bottom of the table. From left to right:
- Select the first row.
- Select the previous row.
- Drop down to select a particular row.
- Select the next row.
- Select the last row.
- Create a new row.
- Delete the selected row.
- Delete all rows from the table.
The output selection control is used to create new layers.
In this example the output selection control is shown in the lower right corner of the dialog (1):
The selector consists of two components:
Both options have advantages and disadvantages, and it is up to the user to decide which option to choose.
The new layer will be added to the view, and the TOC will show the layer name as specified in the text box.
** Note: The temporary working space of gvSIG is cleaned automatically, so any temporary layers will be deleted when exiting the application.
A preview is usually shown for functions that require extensive processing. It is usually located in the upper right corner of the dialog as shown in the following example:
The preview gives only an indication of how the final output will look like. Since only a minimum amount of data is used to generate the preview, the final result may be different.
The following options are available for preview windows:
The access to these preview functions through the shortcut keys only works when the focus is on the preview window, after clicking on it with the mouse.
For different types of functionality, the preview may appear with a different default zoom level. For example, the preview of colour tables is shown as completely zoomed out so that the effects on the whole image can be previewed.
The “Table of Contents” is the area used to list the different layers which make up the cartographic information.
A check box next to each layer indicates whether it is "visible” or not.
Remember that an active layer is not the same as a "visible" layer. When a layer is “active” it is highlighted compared to the other layers included in the “Table of contents”. When a layer is activated, gvSIG is notified that the elements of this layer can be worked with.
The order of appearance of the layers in the “View” is important because it ties in with the display order. Layers made up of text elements, points and lines are placed at the top whilst the polygonal layers and images which make up the background of the view are placed at the bottom.
To move the layers in the ToC, place the cursor over them, left click on the mouse and drag the layer to the required position.
The layers in the ToC can also be selected by using the Control and CAPS keys.
From version 0.4 onwards, gvSIG allows several layers to be grouped together. This is useful because it means a large number of layers can be kept in the ToC without taking up a lot of space. This option also allows operations to be carried out on all the layers that make up a group at the same time. To group a set of layers together, select the layers, click and hold down the CAPS key and right click on the mouse on any of the layers and select the “Group layers” option.
The following dialogue window appears and a name for the new grouping can be input.
When the name of the new grouping has been input, it appears in the ToC as shown below.
To undo a grouping, right click on the grouping so that the contextual menu appears. Select the "Ungroup layers" option.
Raster layers can be selected through the raster toolbar by selecting the option "Raster layer" on the left drop-down button and "Select raster layers" on the drop-down button on the right.
When multiple raster layers have been loaded into the view, you can select one of those as current layer. By clicking on one of the layers in the TOC, the layer will be selected and its name will appear as current layer in the drop-down text box of the toolbar.
To access the properties window of a view, go to the “View” menu and select “Properties”.
The properties you wish your view to have can be configured via the following window.
If you click on the “Current projection” button, a new window will appear in which the view’s datum, projection and time zone can be selected.
If you click on the pull-down menus, the different options available for each element in the reference system are shown. If you make any changes, click on “Apply” and then “Ok”.
When you have configured the view’s properties, click on “Ok”.
“Map” type documents allow you to design and combine all the elements you wish to have on a printed map.
You can access “Map” type documents via gvSIG's "Project manager".
Click on “New” to create a new map. When you have created the document (it will appear by default as “Untitled– 0”), you will be able to insert elements, rename the map, delete it or access its properties and modify them. When the map is open, it will appear in gvSIG as shown below:
You can access the map properties window from the “Project manager” by clicking on the “Properties” button or from the view by going to the “Map” menu and then to “Properties”.
You can use the properties window to rename the map, change its creation date, add an owner and comments. You can select some default characteristics by activating the corresponding check boxes:
You can also use gvSIG to copy documents and create copies of the layers you are working with in your view. Firstly, select the layer in the ToC and right click on it. A new menu appears. Select the “Copy” option.
You can paste the layer you wish to copy in the same view as the one you are working with or in a different view, either in the same project or in a different one.
N.B.: Remember that currently if you modify the layer, these changes will be reflected in all the copies.
If you wish to “Paste” the layer, right click on the point you wish to paste the new copy and select the “Paste” option.
N.B.: You can use this method when working with layer groups.
If you create a layer group, place the mouse pointer over the group name and go to the “Copy” option, you can “Paste” the whole layer group in the same way as you would with an individual layer.
To permanently remove the active layers from the view, right click on the layer in the ToC and select the “Delete layer” option.
A confirmation dialogue appears.
This option allows you to convert the active view into an image or raster file.
Select the “View” menu then go to “Export/Image”.
When you have selected the tool, a new window appears which you can use to edit the name of the image to be saved and the type of file (jpg, png...) you wish to save it in.
When you have saved the image, you can recover it from gvSIG by going to the “Add layer” tool and searching for a “gvSIG Image Driver” file type.
Use the ToC to check that the exported image is a raster layer by accessing its properties (right click on the layer in the ToC and then go to “Raster properties”).
Different types of cartographic information can be added to a view. Vector and raster files can be loaded. Each of these groups can contain a wide range of formats.
GIS data: The standard GIS format is the shape, which stores both spatial data and their attributes. A shape (also called “Shape file”) is actually three or more files with the same name and different extensions (even though in gvSIG it is handled as one file):
dbf: Table of attributes.
shp: Spatial data.
shx: Spatial data index.
From version 0.5 onwards, gvSIG also has the capacity to access the MySQL Spatial and PostGIS spatial data bases via a new driver which uses JDBC.
CAD data: These are vector drawing files which support the dxf and dgn formats. The CAD files may contain information on points, lines, polygons and texts. From version 0.4 onwards, gvSIG also allows access to the information contained in Autodesk’s 2000 dwg files.
WMS data (Web Mapping Service): gvSIG can be used to consult WMS data, i.e. data available on the web. WFS data (Web Feature Service): From version 0.5 onwards, gvSIG can be used to download WFS vector layers from servers that comply with the Open Geospatial Consortium (OGC) Standard.
WCS data (Web Coverage Service): From version 0.4 onwards, gvSIG allows access to remote information based on the OGC’s WCS protocol.
GML (Geography Markup Language): From version 1.0 onwards, gvSIG allows GML documents to be displayed and exported. Geography Markup Language (GML) is an XML format to transport and store geographic information whose design is based on specifications produced by the OGC group.
Images: gvSIG can display different raster images (tiff, jpg, ecw, mrsid, etc.). From version 0.4 onwards, gvSIG can save images which have been modified in these formats.
From version 0.5 onwards, “colour palette” (GIFs, 8-bit PNGs, etc.) raster files can be opened and raster files without georeferencing can also be opened. Moreover, this new version supports GIF, BMP y JPEG2000 formats.
You can access the information tool via the following button in the tool bar
or by going to the “View” menu bar, to “Query” and then to “Information”.
The “Information Tool” is used to obtain information about the map elements.
When you click on an element using this tool, gvSIG shows the selected element’s attributes in a dialogue window. However, the layer of the element you wish to identify must previously be activated.
In gvSIG, this tool is used to quickly display available information when working with a view containing visible vector layers (including WFS layers, which are vector layers).
Quick Info is enabled if vector layers are visible in the current view.
Quick Info is disabled if no vector layers are visible in the current view.
With this tool you can select fields from vector layers visible in the current view. Information from these fields is displayed as you move the mouse cursor over the view. The tool works in combination with any other tools selected for the view.
You can access the Quick Info tool in two ways:
When the tool is selected a progress bar is displayed which shows the layers being loaded:
If there were no problems loading the information the Quick info field selection dialog is shown:
Level of the Layer in the TOC: displays icons and grouping nodes containing the layer. The last icon always represents the vector layer.
Name of the layer.
Type of geometry of the layer: five types of geometry layer are supported: point, line, polygon, multipoint, and multi (the latter may contain any of the above).
The units of length and area are displayed using the measurement units of the View.
After selecting the fields, click Ok to enable the tool in the current view. The Quick info tool works in combination with Quick info tools for other Views. Thus, when enabled, it combines with each active View to display information. The tool settings can be changed for each View and are linked to that View.
As the cursor is moved over the geometry of a layer, the information box showing the information is displayed and/or updated. This box disappears when the cursor no longer "points" to any geometry of the layer.
If there is more than one geometry adjacent to the point indicated by the cursor then information is displayed about all of them, as distinguished by the unique internal identifier of the geometry.
Thus, the information is provided in the following order:
ID: unique identifier of the geometry in the data source layer (optional, only visible if you have information on more than one geometry).
Selected fields: those fields selected to display layer information.
Optional fields: those calculated fields selected from the geometries of the layer.
It should be noted that currently gvSIG adds the area and perimeter of islands to the geometry containing them.
You can access this tool via the following button
or by going to the “View” menu and then to “Query” and “Measure area”.
This tool works in much the same way as “Measure distances”. Click on the point that represents the first polygon vertex that defines the area to be measured. Move the mouse and click on each new vertex until you reach the last one, then double click so that the application knows there are no more.
The calculation for the measured area appears at the bottom right of the view window.
This tool provides information about the distance between two points. You can also access the tool by going to the “View” menu, to “Query” and then to “Measure distances”.
Firstly, make sure you have correctly defined the units of measurement (metres by default).
Remember that the units can be defined in the “Project manager” in the view properties or from the “View” menu and the “Properties” when working in a view.
You can use the measure distance tool by clicking on the mouse at the source point and dragging it to the destination point.
You can take as many measurements as you like. Double click on the last one to finish.
The calculation for the measured distance appears at the bottom of the view window. Both the distance of the last measured segment and the total distance are shown.
The catalogue service allows you to search for geographic information on the Internet. gvSIG offers a user-friendly interface which allows you to find geodata and load it in the view, as long as the nature of the data allows this.
Before you can carry out a search, you will need to connect to a catalogue server. To access the wizard, you will first need to open a view and then click on the following button:
The first window of the catalogue opens. Input the required parameters to connect to a server. These include:
Then click on the “Connect” button. If the connection is made and the server supports the specified protocol, a new window will appear to start the search.
To carry out a search, you need to fill in the fields that appear in the following form.
Click on the button and the window will drop down to show more fields which will allow you to carry out an advanced search. The fields you can search in are set by the server. This means that some of the search fields in this form may have no effect in some servers.
If you change the view zoom, the new coordinates will be reflected in this form. If you wish to restrict the search area enable the corresponding check box. Then click on “Search” and wait for the search to be carried out.
If the search has been successful, a new window containing the search results will open.
Use the “Previous” and “Next” buttons to see each of the results obtained.
The left-hand side of the window shows information about the metadata obtained. If you wish to see all the information, click on the "Description" button.
You will also be able to see a miniature image at all times, metadata permitting.
If the metadata has any geodata associated to it, the “Add layer” button will be enabled.
gvSIG can currently recognise different types of associated resources, such as WMS, WCS, Postgis tables and web pages.
If you click on this button, a new window will be opened and will show all the resources the application has been able to find.
If you click on a WMS, WCS or Postgis type resource, the new layer will automatically be loaded in gvSIG. If the resource is a web page, for example, the operating system’s default browser.
A gazetteer is a data set in which a link is established between a toponym and its geographic coordinates.
gvSIG has a catalogue client which allows you to search by toponyms and centre the view on a specific point.
Create a view first and open it. The following button will appear automatically in the gvSIG tool bar.
Click on the button. A wizard opens to help you to carry out a search. The parameters to be input are:
When you have input all the parameters, click on the "Connect" button and wait until the server is found and accepts the specified protocol. If it is accepted, a new window will appear to start the search. If not, an error message will appear.
To carry out a search, you will need to fill in the criteria that appear in the following form. You can see the simplified form or carry out an advanced search by clicking on the button in the top right hand corner. This drops down the window.
If you change the view zoom, the new coordinates will be reflected in this form. If you wish to restrict the search area activate the corresponding check box. There are also three options in the “Aspect set up” box which you can use to set up the search view:
Zoom to search: This puts the toponym found in the centre of the gvSIG view.
Delete old searches: This deletes all the texts found in the previous searches from the view.
Draw result: This draws a point and a text label in the place the resulting toponym has been found.
When you have filled in all the fields in the form, click on “Search” and wait for the search to be carried out.
A new window containing the search results will open. Use the “Previous” and “Next” buttons to move through the different pages of results.
Finally, select the toponym required and click on “Localise”. The gvSIG view will centre on the point the toponym is located in.
The Advanced Hyperlink tool in this version of gvSIG significantly extends the functionality of the hyperlink tool found in version 1.1.
The tool is accessible either from the Layer menu (Layer > Advanced Hyperlink) or by clicking the icon on the toolbar.
Hyperlinks are configured at the layer level, which means that they can be enabled or disabled per layer. To set the hyperlink for a layer, double-click on the layer name in the TOC to open the Layer Properties and select the Hyperlink tab.
The hyperlink configuration screen looks like this:
Remember that the layer's attribute table must be correctly prepared for the hyperlinks to work. To do this, edit the relevant record and insert the path to the hyperlinked file, leaving out the extension.
After the hyperlinks have been setup and enabled, select the Advanced Hyperlink tool and find the item in the View that corresponds to the record associated with the link. Click on the item and a window will open displaying the linked file.
Actions
The Advanced Hyperlink tool provides the following actions:
NOTE 1: When editing the hyperlink fields in the attribute table, if a path longer than the maximum field length is entered, the path will be truncated (without warning) to the maximum field length. By default, fields are created with a maximum length of 50 characters. Fields should be defined to handle long paths when necessary, otherwise only very short paths can be stored.
For example: if we enter
C:/Documents and Settings/My documents/images/villafafila.jpg
and the maximum field length is 50 characters, the path will be truncated to:
C:/Documents and Settings/My documents/images/vill
which is not what is wanted.
NOTE 2: Please note that if the path you enter contains an image or file extension that is registered in the registry, you should not also enter it when configuring the hyperlink properties as this would be duplicating the information.
There are several tools you can use to navigate around the map. These are basically zooms and panning.
Estas herramientas las puede ejecutar desde el menú “Vista/Navegación“.
o de forma más rápida, desde la barra de botones.
Nombre | Imagen | Descripción |
---|---|---|
Zoom más | Amplía una determinada área de la vista. | |
Zoom menos | Disminuye un área determinada de la vista. | |
Zoom previo | Permite volver al zoom anterior. | |
Zoom completo | Hace un zoom a la extensión total que definen todas las capas de la vista. | |
Desplazamiento | Permite cambiar el encuadre de la vista arrastrando el campo de visualización en todas las direcciones mediante el ratón. Debe mantener el botón primario pulsado y mover el ratón hacia la dirección deseada. | |
Zoom a la selección | Hace un zoom a la extensión total que definen todos los elementos seleccionados. | |
Zoom a la capa | Para hacer un zoom a la capa, pulse con el botón secundario del ratón sobre la capa seleccionada en el ToC, en el menú contextual pulse la opción “Zoom a la capa”. |
También es posible hacer Zoom más o Zoom menos mediante la rueda del ratón. En este caso, la ampliación se realizará empleando como foco, el centro de la vista.
You can access the “Zoom manager” from the tool bar by clicking on the following button:
or from the “View” menu, then “Navigation” and “Zoom manager”.
By clicking on the “Zoom manager” you can save a zoom so that you can go back to it at a later stage.
This tool can be used to name the current zoom of the view with the text bar which appears in the window.
Click on “Save” and the zoom currently in the view will automatically be added to the “Zoom manager” text box.
You can create and save as many zooms as you wish. Use the "Select” and “Delete” buttons to manage your working areas.
The locator is a general map which is displayed in the bottom left hand corner of the view's window. It is used to show the working area (main window zoom). Click on “View” in the menu bar and select “Configure locator map”.
A window appears in which we can add layers (we can add the same types of layers as in the view) which will make up part of the locator map. This window can also be used to remove layers or edit the layers’ legends.
When you click on the “Add layer” button, the following window appears
This new function allows the layer loaded in the locator map to be reprojected. To do this, click on the button next to “Current projection when you have selected the layer you wish to load in the locator map.
In the following window, select the reference system you wish the layer to have in the locator map and click on “Finish” for the changes to take effect.
This tool allows you to locate a point in the view by its coordinates and to centre the view on this point.
You can also access the tool by going to the “View” menu then to “Centre view on a point”.
When you have accessed the tool, a dialogue box will appear in which you can input the required coordinates and select the point colour.
When you click on the "Ok" button, the view centres on this point and the information window that corresponds to this point appears.
This tool allows you to zoom in on areas of a layer by specifying the value of a particular attribute. You can access this tool by clicking on the button
or by going to the “View” menu then to “Locate by attribute”.
When the tool is selected, the following window appears
You will find all the layers loaded in the ToC in the “Layer” pull down menu. The fields associated with the chosen layer are included in the “Field” pull down menu.
The data included in the selected field appears in the "Value" pull down menu.
If you mark the “Open with the view” check box and decide to close the view, the “Locate by attribute” window will appear the next time you open the view.
When you have made the selection, click on the "Zoom" button and the chosen area will be shown in the view.
Firstly, open a “View” document in gvSIG.
You can access this option by going to the "View" menu and then to "Add layer" or by using the “Control + O” key combination
or by clicking on the "Add layer" button in the tool bar.
A window appears in which you can select and configure the layer's data source by its type:
Click on the "Add" button
The "Add” dialogue window allows you to move around the file system to select the layer to be loaded. Remember that only the files of the type selected will be shown. To indicate the type of file to be loaded, select a file from the “Files of type” pull down menu.
If several layers are loaded at the same time, the order in which the themes will be added to the view can be specified with the "Up" and "Down" buttons in the “Add layer" dialogue.
The Web Feature Service (WFS) is one of the OGC standards (http://www.opengeospatial.org) which is included in the list of standards (of this type) that gvSIG supports.
WFS is a communication protocol via which gvSIG retrieves a vector layer in GML format from a supporting server. gvSIG retrieves the geometries and attributes associated to each "Feature” and interprets the contents of the file.
Go to the “Add layer” and then select the WFS tab.
1. The pull-down menu shows a list of WFS servers (you can add a different server if you don’t find the one you want).
2. Click on “Connect”. gvSIG connects to the server.
3. and 4. When the connection is made, a welcome message from the server appears, if this has been configured. If no welcome message appears, you can check whether you have successfully connected to the server if the “Next” button is enabled.
5. The WFS version number that the server you have connected to is using is shown at the bottom of the box.
N.B. 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.
Click on “Next” to start configuring the new WFS layer.
When you have accessed the service, a new group of tabs appears. The first tab (“Information”) shows all the information about the server and about the request that is to be sent. This information is updated as more layers are selected.
The “Layers” tab can be used to select the layer you wish to load. A two-column table appears in which the layer name and the geometry type are shown. As the geometry type is obtained by clicking on the layer (it needs to be obtained from the server), this column is completely blank at the start.
The “Show layer names” option shows the name of the layer as it is recognised by the server and not by its description, which is what appears in the table by default.
The “Attributes” tab allows the fields (or attributes) of the selected layer to be selected. When the layer is loaded, only the fields that have been selected are retrieved.
To select the attributes, enable the check box which appears to their left.
The "Options” tab shows information about user authentication and the connection. The “User” and “Password” fields are used in the WFS-T to be able to identify a user in the server so that writing operations can be carried out (not yet implemented).
The connection parameters are:
Number of features in the buffer, i.e. the maximum number of elements that can be downloaded.
Timeout. This 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.
The Spatial Reference System (SRS) is another important parameter. Although this cannot currently be changed, it is hoped that this will be possible in the future. In any case, gvSIG reprojects the loaded layer to the spatial system in the view.
You can use this tab to apply filters to your WFS layers. Click on the “Filters” tab in the window.
The “Fields” text box shows the layer’s attributes which can be used as a filter. Click on the selected field to see its values.
When the layer is loaded for the first time, the values in the column cannot be selected. However, if you have a filter sentence for the layer you can apply it in the filter text area and the filtered layer will be loaded directly.
If you do not have a filter sentence, load the WFS layer into the ToC, then right click on the mouse and select the “WFS properties” option from the contextual menu.
To create the filter for the WFS layer, double click on the field you wish to use as a filter and it will appear in the bottom text area. Then click on the operator you wish to apply and finally select the value in the “Values” text area by double clicking on it.
When you have created the required filter, click on “Ok” and it will be applied to the WFS layer.
When all the parameters have been configured, click on “Ok”. The layer will be loaded into a gvSIG view.
By right clicking on the layer, its contextual menu appears. If the “WFS Properties” option is selected, an option display opens (similar to the “Add layer” display). This can be used to select new attributes and other layers and change the layer’s properties.
In gvSIG 1.9 a new 'Area' tab was added which allows the user to filter the requested WFS layer geometries according to a bounding box. The user enters the coordinates of the required display area so as to optimize access to the data layers and to save time when viewing them.
In the proprietary software environment, ArcIMS (developed by Environmental Sciences Research Systems, ESRI) is probably the most widespread/popular widely used (Internet) cartographic server on the Internet thanks to the number of clients it supports (HTML, Java, ActiveX controls, ColdFusion...) and to its integration with other ESRI products. ArcIMS is currently one of the most important remote cartographic information providers. Although the protocol it uses does not comply with the Open Geospatial Consortium (because it was created long beforehand), the gvSIG team believes that offering support for ArcIMS is important.
The extension can access image services offered by an ArcIMS server. This means that, just like a WMS server, gvSIG can request a series of layers from a remote server and receive a view rendered by the server containing the requested layers in a specific coordinate system (reprojecting if necessary) and in specific dimensions. In addition to displaying geographic information, the extension allows you to request information about the layers for a particular point via the gvSIG standard information button.
ArcIMS is slightly different in its philosophy from WMS. In WMS, the request is normally made by independent layers whilst in ArcIMS the request is global.
The steps required to request a layer from an ArcIMS server and to request information for a particular point are listed below.
Our example uses the ESRI ArcIMS server. Its URL is http://www.geographynetwork.com. This is the address a web browser requires to access the HTML visual display unit.
Before loading a layer from this server, the datum WGS84 in geodesic coordinates (code 4326) has to be set up previously as the view’s spatial system.
If the extension is loaded correctly, a new ArcIMS data source will appear in the “Add layer” dialogue box.
If the server has a standard configuration, simply indicate its address. gvSIG will try to find the servlet’s full address.1 If the servlet has a different path, you will have to write it into the dialogue box.
When the connection has successfully been made, the server version, its compilation number and a list of image and geometry services available are shown.
The service can be selected from the list or can be written in directly.
Finally, if the “Override service list” check box is enabled, gvSIG will delete any catalogue that has already been downloaded and will request them again from the server.
The next step is to select the ImageServer type service required by double clicking or selecting it and clicking on "Next". The dialogue box changes and an interface with two tabs appears (fig. 3). The first tab shows the metainformation given by the server about the service’s geographic limits, the acronym of the language it has been written in, units of measurement, etc. It is a good idea to find out if a coordinate system has been defined in the service (using EPSG codes) as this can directly influence the requests made to the server, as Figure 3 shows.
N.B. If no coordinate system has been defined in the service, the extension will assume that it is the same coordinate system as the one we have defined for the view.
We can continue by clicking on "Next" or return to the previous dialogue by clicking on "Change service”.
The last dialogue box is the layer selection. We can define a name for the gvSIG layer or leave the default value (the service name) in this window. A box appears below with a list of the service layers in tree form. When the mouse is moved over the layers, information about these layers appears: extension, scale ranges, type of layer (raster or vector image) and if it is visible by default in the service (fig. 4).
We can view each layer’s ID via the “Show layer ID” check box. This check box is useful when there are layers whose descriptor is repeated. Therefore, the only way to distinguish between them is via an ID, which will always be unique. A combo box is also available to select the image format we wish to use to download the images. We can choose JPG format if our service works with raster images or one of the other remaining formats if we want the service to have a transparent background.
N.B. The transparency in 24-bit PNG images is not correctly displayed in gvSIG 0.6. This type of files will be supported in gvSIG 1.0.
The box with the layers selected for the service appears below. If you wish, you can add just some of the service layers and also reorganise them. This makes the service view totally personalised.
N.B. The configuration cannot be accepted until a layer has been added.
N.B. Multiple selections of service layers can be made by using the Control and CAPS keys.
When the “Ok” button in the dialogue box is pressed, a new layer appears in the view (fig. 5). If no layer has been added previously, the extension of the ArcIMS layer is shown, as per the standard gvSIG procedure.
It must be remembered that when the layer extension is shown, the layers that make up the chosen configuration may not appear and a blank or transparent image appears instead. If this occurs, use the scale control dialogue box (V. Information about scale limits section).
An ArcIMS server does not define the spatial reference systems it supports as opposed to the WMS specification. This means that a priori we do not have a list of EPSG codes that the map server can reproject. In short, ArcIMS can reproject to any coordinate system and leaves the responsibility of how the projections are used to the client.
Therefore, if our gvSIG view is defined in ED50 UTM zone 30 (EPSG:23030) and we request a global coverage service (stored for example in the geographic coordinates WGS84, which correspond to code 4326) the server will not be able to reproject the data correctly because we are using global coverage for a projection of a specific area of the Earth.
However, the procedure can be carried out in reverse. If we have a view in geographic coordinates (and thus global coverage), services defined in any coordinate system can be requested because the server will be able to transform the coordinates correctly.
In short, requests to the ArcIMS server must be made in the view's coordinate system and they cannot be requested in another coordinated system.
Moreover, as we mentioned above, if an ArcIMS server does not offer information about the coordinate system its data is in, the user will be responsible for setting up the correct coordinate system in the gvSIG view. Thus, if a user with a view in UTM adds a layer which is in geographic coordinates (even though the server does not show it), the service will be added correctly but will take the view to the geographic coordinates domain (in sexagesimal degrees).
An additional effect is that if the view uses different units of measurement from the server, the scale will not be shown correctly.
The layers requested from the server can be modified via a dialogue box, which can be accessed from the layer’s contextual menu (fig. 6) just like the WMS layers. This dialogue box is similar to the box used to load the layer, apart from the fact that the service cannot be changed.
The extension allows us to consult the layers' scale limits which make up the requested service via a dialogue box which can be maintained in the view during the session (fig. 7). This window shows the layers on the vertical axis and the different scale denominators on the horizontal axis via a logarithmic scale. This box is small on screen but can be enlarged to improve the difference between the scales.
The vector layers, raster layers and the layers that can be seen on the current scale (marked with a vertical line) in a darker colour and the layers we cannot see above or below the current scale are differentiated by different coloured bars (described in the window legend).
Attribute information requests about the elements for a particular point is one of gvSIG’s standard tools. Its functionality is also supported by the extension.
The WMS specification allows information about several layers to be requested from the server in one single query. This is different in ArcIMS. We need to make one server request per layer required.
This means that no requests for unloaded layers or unseen layers that are not visible on the current scale or layers whose extension is outside the view will be made. Even if all these layers are filtered, the information request usually takes longer than is desirable because of this intrinsic feature of ArcIMS.
When all the request responses have been recovered, the standard gvSIG attribute information dialogue appears with each of the layers (LAYER) which return information as a tree. If we click on a layer, its name and ID appear on the right (fig. 8).
Under this node, if we are talking about a vector layer, all the records or geometric elements the server has responded to appear, and give each one their corresponding attributes (FIELDS).
If it is a raster layer, such as an orthoimage or a digital terrain model, it returns the values for each of the bands (BAND) in the requested pixel colour, instead of records.
The extension allows access to both ArcIMS image services and geometry services (Feature Services). This means that a server can be connected to and geometric entities (points, lines and polygons) and their attributes obtained. This is not dissimilar to WFS service access.
However, the variety of existing geometry services is much lower than the variety in the image server. There are two main reasons for this. On one hand, providing the public with vector cartography implies security problems because many bodies only want to offer the general public views and images. The vector data becomes either an internal product or must be paid for. On the other hand, this type of services generate much more traffic on the network and in the case of basic information servers could become a problem.
Loading a geometry layer is practically the same procedure as loading the image server as mentioned above (Accessing the service section and the following sections). In this case, the number of layers to be selected must be taken into account. If we wish to download all the layers offered by the service the response time will be very high.
The only difference between loading an image layer is that in this case we can choose whether we wish the layers to be downloaded as a group via a check box. This is useful for processing the vector layers as one layer when it needs to be moved and activated in the table of contents.
Unlike the image service, in which all the service’s layers appear as one unique layer in the gvSIG view, in this case each layer is downloaded separately and appears in the view grouped under the name defined in the connection dialogue.
Cartography symbols are configured in the server in one AXL extension file for both geometry and image services. We can divide symbol definition into two parts. On one hand, we can talk about the definition of the symbols themselves, i.e. how a geometric element, such as a line or polygon, should be presented. On the other hand, we can talk about the distribution of these symbols according to the cartographic display scale or to a specific theme attribute.
In ArcIMS terminology symbols are different from legends (SYMBOLS and RENDERERS).
There are various types of symbols: raster fill symbols, gradient fill symbols, simple line symbol, etc. The extension adapts the majority of the symbols generated by ArcIMS. Table 1 shows the ArcIMS symbols and indicates whether they are supported by gvSIG.
Label | Description | Supported |
---|---|---|
CALLOUTMARKERSYMBOL | Balloon-type label | NO |
CHARTSYMBOL | Pie chart symbol | NO |
GRADIENTFILLSYMBOL | Fill in with gradient | NO |
RASTERFILLSYMBOL | Fill with raster pattern | YES |
RASTERMARKERSYMBOL | Point symbol using pictogram | YES |
RASTERSHIELDSYMBOL | Customised point symbol for US roads | NO |
SIMPLELINESYMBOL | Simple line | YES |
SIMPLEMARKERSYMBOL | Point | YES |
SIMPLEPOLYGONSYMBOL | Polygon | YES |
SHIELDSYMBOL | Point symbol for US roads | NO |
TEXTMARKERSYMBOL | Static text symbol | NO |
TEXTSYMBOL | Static text symbol | YES |
TRUETYPEMARKERSYMBOL | Symbol using TrueType font character | NO |
Table 1: ArcXML symbol definition labels
In general, the most common symbols have been successfully “transferred”. Some of the symbols cannot be obtained directly from gvSIG (at least in the current version), such as the raster fill symbol or they need to be “adjusted” such as the different types of lines. This means that a raster fill symbol is not a symbol that can be defined by the gvSIG user interface, but it can be defined by programming.
gvSIG supports the most common types of legends: unique value and range and value themes as well as the scale-range control over the whole layer. ArcIMS goes much further in its configuration. It can generate much more complicated legends in which symbols can be grouped together, scale-range controls can be established for labels and symbols and different labelling based on an attribute can be shown (as though it were a value theme for labelling).
This group of legends can generate very complex symbols for a layer in the end. The current implementation status of the gvSIG symbols needs to be simplified to reach a compromise to recover the symbols that best represent the layer as a whole.
Label | Description |
---|---|
GROUPRENDERER | Legend which groups others together |
SCALEDEPENDENTRENDERER | Scale dependent legend |
SIMPLELABELRENDERER | Labelling layer legend |
SIMPLERENDERER | Unique value layer legend |
VALUEMAPRENDERER | Value and range themes |
VALUEMAPLABELRENDERER | Labelling themes |
Table 2: ArcXML legend definition labels
When a GROUPRENDERER is found, the symbol ArcIMS draws first is always chosen. Thus, in the case of the typical motorway symbol for which a thick red line is drawn and a thinner yellow line is drawn over it, gvSIG will only show the red line with its specific thickness.
If a scale dependent legend is discovered during a symbol analysis, this is always chosen. If more than one is discovered, the one with the greatest detail is chosen. For example, in ArcIMS we can have a layer with simple road symbols (only main roads are drawn) on a 1:250000 scale and based on this a different theme is shown with all types of roads (paths, tracks, roads, etc.). In this case, gvSIG will show this last theme as it is the most detailed.
If a labelling legend is discovered during a symbol analysis, it will be saved in a different place and will be assigned to the selected definitive legend. In the case of the VALUEMAPLABELRENDERER label, only the legend of the first processed value will be obtained as a label symbol. The rest will be rejected.
In short, it is obvious that the failure to adapt the legends for gvSIG is a simplification process in which different legend and symbol definitions must be rejected to obtain a legend which is similar to the original as far as possible. It is to be expected that the gvSIG symbol definition will improve considerably so that it can support a larger group of cases in the future.
Working with the layer is similar to any other vector layer, as long as we remember that access times may be relatively high. The layer attribute table can be consulted, in which case the records will be downloaded successively as we display them.
If we wish to change the table symbols to show a unique value or range theme we must wait as gvSIG requests the complete table for these operations. On the other hand, the downloading of attributes is only carried out once per layer and session and therefore, this wait only occurs in the first operation.
In general, if our ArcIMS server is in an Intranet, it will be relatively fast to handle, but if we wish to access remote services we may be faced with considerable response times.
The main feature to bear in mind when working with an ArcIMS vector layer is that the geometries available at any given time are only the ones displayed. This is because we can connect to huge layers but only the visible geometries are downloaded. As far as gvSIG is concerned, the geometries shown on the screen are the only ones available and thus, if we export the view to a shapefile for example, are only a part of the layer.
Finally, we need to remember that to speed up the geometry downloads they are simplified to the viewing scale in use at any given time. This drastically reduces the amount of information downloaded as only the geometries that can actually be "drawn" are displayed in the view.
Loading a geometry layer is practically the same procedure as loading the image server as mentioned above (Accessing the service section and the following sections). In this case, the number of layers to be selected must be taken into account. If we wish to download all the layers offered by the service the response time will be very high.
Unlike the image service, in which all the service’s layers appear as one unique layer in the gvSIG view, in this case each layer is downloaded separately and appear in the view grouped under the name defined in the connection dialogue.
After a few seconds the layers appear individually but are grouped under a layer with the name we have defined for it.
The layer symbols are established at random. A pending feature is to recover the service symbols and configure them by default so that gvSIG can display the cartography as similarly as possible to how it was established by the service administrator.
This extension allows users easy, standardised access to geographic databases from different providers. At present, gvSIG supports the following database management systems:
Data bases | Read | Write |
---|---|---|
PostgreSQL/PostGIS | Yes | Yes |
MySQL | Yes | No |
HSQLDB | Yes | No |
Oracle (SDO Geometry) | Yes | Yes |
gvSIG stores the different connections made during the various sessions. Thus, users do not need to input the parameters of every server they connect to. Likewise, if a project file is opened which has a database connection, the user will only be required to enter the password.
The extension has two user interfaces, one to manage the data sources and another to add the layers to the view.
Select the menu See – Spatial database connection manager (figure 1) to open the dialogue box which allows you to add, remove, connect and disconnect the connections to the different types of databases containing geographic information. If you have already used this manager in an earlier gvSIG session, the previous connections will appear (figure 2). If not, the dialogue box will be empty.
Click on Add to introduce the parameters of a new connection (figure 3). NB: From gvSIG version 1.1 onwards, it should be noted that the name of the database must be written correctly and that it is case sensitive. If you wish to open a project saved in a version prior to gvSIG 1.1 which includes layers belonging to a database whose connections have not taken this factor into consideration, the data must be recovered by reconnecting to the original data base. You can either connect there and then or remain offline. Open connections appear with a link and with “[C]” before their name (figure 4). If you wish to open a connection, select it and click on Connect. You will be asked to enter the password (figure 5) and the connection will then be made.
In the Project Manager, create a new view and open it using the New and Open buttons. Use the Add layer icon to add a layer to the view. Go to the GeoDB tab in the dialogue box to add a new layer of this type (figure 6). You must choose a connection (if you select one which is disconnected, you will then be asked to enter the password), select one or more tables and the attributes you wish to download from each layer and, optionally, set an alphanumeric restriction and an area of interest. You can give each layer a different name to that of the table. Click on Ok to view the table’s geometries in the view. This window also allows you to specify a new connection if the database is not registered in the data source catalogue. Any alphanumeric restriction must be introduced by means of a valid SQL expression which is attached as a WHERE clause to each call to the database. Given that the table may take several seconds to load, a small icon appears next to the name of the table indicating that this process is underway. When the table has been loaded, the small blue icon disappears and the gvSIG view is automatically refreshed to allow the geometries to be viewed.
This function allows new tables to be created in the spatial database from any vectorial source in gvSIG. These tables can be created as follows:
If all goes well, the new vectorial geoDB layer will appear in the view and you will be able to work with it in the usual way.
These notes supplement the documentation for the geoDB extension with regard to the driver for Oracle Spatial.
This driver allows access to any table from an installation of both Oracle Spatial and Oracle Locator (in both cases from version 9i onwards) which has a column that stores SDO-type geometries.
The driver only lists tables which have their geographic metadata in the USER_SDO_GEOM_METADATA view.
Given that each table’s metadata is available, the interface makes use of that data and automatically presents the column (or columns) of geometries. Likewise, ROWID, which is a unique descriptor for each row used internally by Oracle, is used and this ensures that identification is correct.
Two and three-dimensional data of the following types are supported:
At present, layers in LRS format (Linear Referencing System) are not supported.
Oracle has its own system for cataloguing coordinate and reference systems. Miguel Ángel Manso, on behalf of the Polytechnic University of Madrid, has provided a list of equivalent values for the Oracle system and the EPSG system and this is included in the driver as a DBF file.
Conversions from one coordinate system to another are carried out by gvSIG since its performance has proved to be superior.
The driver constantly performs geometric requests (in other words constantly calculates which geometries intersect with the current gvSIG view) and it is therefore essential that the database has a spatial index linked to the column in question.
If this index does not exist, an error window appears (figure 1) and the table or view cannot be added to the gvSIG view.
In addition, the driver needs to set a unique identifier for the records of the table or view, and this is not possible for certain types of views. If such a problem occurs, it will be detected by the driver and an error message will also appear (figure 2).
As a result, the view cannot be loaded to gvSIG from the database.
If you wish to export a layer to an Oracle database, you will also be asked if you wish to include the view’s current coordinate system in the table at the end of the process described in the manual. This may be useful in cases where we do not wish to include such information in the table for reasons of compatibility with other applications or information systems.
To work with two Oracle geometries (the most common case is an intersection), the two geometries must have the same coordinate system. Each geometry has an SRID field which can have the value NULL.
For instance, if we have a table with geometries in EPSG:4326 (Oracle code 8307) and another with geometries in EPSG:4230 (Oracle code 8223), it will not be possible to carry out SQL instructions to perform calculations directly between the geometries of one table and another. However, if these tables’ geometries do not have a coordinate system (i.e. SRID is NULL), then operations can be performed between the geometries of these tables, bearing in mind the errors involved in carrying out intersections between different coordinate systems.
When reading a table whose geometries have a coordinate system set at NULL, it is understood that the user will make sure that the geometries are appropriate for the current view, since no reprojection is possible (this may change with the new gvSIG extension for the advanced use of coordinate systems).
In short, not storing the coordinate system allows for a more flexible use of geometries.
If you have previously used the connection manager in a previous gvSIG session, the connections will have been preserved. Otherwise, it will be empty:
Click "add" and a window that allows you to enter new connection parameters will show up. Fill the data fields and click "OK". Note: In the drop-down selections of “Driver” select the one that corresponds to "gvSIG SDE driver", as shown in the image.
Once the connection is validated, it brings back the "connection manager" with the new database in the list. If in the connection settings window the "connected" box is left checked, the connection will remain open. Open connections are marked "[C]" before its name.
If you want to disconnect the connection click on "disconnect" at the bottom of the manager. The connection will stop at the time, but the parameters will remain recorded for future connections. If you want to open a connection that is already included in the list for having been previously used, you must select it and click "Connect". It will ask for the password again in a window like in the following figure represents and the connection will be open.
Choose the menu "View / Spatial BD connection manager" to open the dialogue that lets you add, remove, connect and disconnect connections to different types of databases with geographic information:
Once we have established the connection to the server, we can begin to query information from it.
For this we will open a view and press the button "Add layer".
Then select the GeoBD tab.
. In the dropdown list you can select your connection. The button to the right side of the box can take you directly to the connection settings window, in case you want to add a connection in some other time without having to go through the connection manager.
. Once the connection is established you will see a list of the available information that can be added to gvSIG.
. From this window you can query or create filters (SQL restrictions) before adding the information.
. Once you select the information you want, click "OK" and it will upload into the view.
A new layer can be created from a table in gvSIG by using “Add event layer”.
There are two ways to do this: you can add a table to the project or you can work with a table associated with one of the layers in the view in which you are working at a particular time.
Firstly, the table needs to be loaded. To do so, go to the gvSIG “Project manager” and select "Tables" in document types. Then click on "New".
A search dialogue opens to add the table you require. Click on "Add".
A dialogue box appears in which you can choose two types of data sources: dbf and csv.
When you have found the table you require, select it and click on “Open”.
gvSIG automatically returns to the "New table" window and adds the table you require to create the event layer in the text box.
Click on “Ok” to finish the process.
When the table has been added, a view must be active to create its corresponding event layer and load it. If no view is active, you can return to the “Project manager” and add one or create a new blank one. When you have activated this view, go to the “Add event layer” by using the corresponding button in the tool bar:
A window with three pull-down menu bars appears.
We can select the table we need to add the new layer from the first pull-down menu bar.
Then, we can select the table fields which will become the X and Y values.
If you click on “Ok”, a new points layer will appear based on the coordinates contained in the initial table.
If you wish to work with a table associated to the layers in the view, you will firstly have to activate the attribute table of this layer. To do so, click on the following button in the tool bar:
If you click on “Add event layer”
you will see that the table has been added.
The jCRS extension intends to bring rigorous CRS handling capacity to gvSIG, as well as the incorporation of the standard CRS operations and repositories like, in this version: EPSG, ESRI, IAU2000 and user-defined CRS.
These added functions provide a solution to the ED50-ETRS89 transition problem, and in accordance with the implementation of the Royal Decree 1071/2007, two solutions are integrated that were achieved by the National Geographic Institute (IGN):
Further in this document, the user interface for this extension will be described, using the most common cases.
In the description of these cases, there might be an overlap in CRS selection methods and dialogs. To avoid repetitions, it was considered convenient to explain a dialog in detail the first time that it appears in the manual, and therefore users are advised to read the sections in the correct order.
In this latest version of the jCRS extension, users can define a custom CRS. This functionality is available through the CRS selection dialog, see figure 14.
When selecting User CRS as the type of CRS, you can choose from the following options:
- Choose a custom CRS that was previously defined, by selecting it from the table and click on OK. To facilitate the selection when there are many user-defined CRS, there are two search options to find common CRS: by code and by name.
- To find information on the selected CRS, you can click on the CRS info button, after which a window with the available information will appear.
- To edit the selected CRS, click on the Edit button. A dialog with different tabs will appear which is similar to the dialog in which you can define a new custom CRS. These dialogs will be described later on in this document.
- To delete the selected CRS, click on the Remove button.
- Create a new custom CRS, as described here below.
To create a new custom CRS, click on the New button in the dialog shown in Figure 14, after which the dialog User defined CRS will open (see figure 15) to guide you through the process of creating a custom CRS.
This dialog includes three tabs:
By clicking the button Next you can move from one tab to the next.
In figure 16, the panel of the Datum tab is shown. In this tab, the following information must be filled:
The default ellipsoid and meridian for user defined CRS are the GRS80 ellipsoid and Greenwich meridian.
When the datum parameters are defined, the Coordinate system information associated with the CRS must be filled in the next tab as shown in figure 17.
The following Coordinate system information must be filled:
To edit a custom CRS that was previously defined (see figure 14), select this CRS from the table and click on Edit.
Below in figure 18 the dialog Definition of a new custom CRS is displayed, where the tab User CRS is disabled as well as the CRS code in the Datum tab. The reason why you can not modify the CRS code is that this code is used for the indexation of the user database. The other values for the datum are editable, as well as the values for the Coordinate system tab (see figure 19).
The selection of the CRS for a layer can be done by adding the layer to a view, and clicking on the button labelled Current projection in the Add layer dialog (see figure 12).
Then the dialog CRS and transformation will open where you can select the CRS for the layer, and, if needed, a transformation to load the layer into the view (see figure 13).
Compared to the New CRS dialog that was described before, what is new here is that the table of used CRS includes a Transformation column. This column facilitates the simultaneous selection of the CRS and the transformation for a layer, but only if these have been used before.
The selection of a transformation will be described hereafter.
The CRS for the View must be defined through the dialog View properties which can be accessed by clicking on the Properties button in the Project manager of gvSIG (see figure 9).
After clicking on the Current projection button of the View properties dialog (see figure 10), the New CRS dialog will open (see figure 11) which has been described in the previous section.
IMPORTANT: Currently it is not possible to re-project an open view, so if you change the CRS while the view is open, the results may be erroneous.
This section describes how to set the default CRS for every new View that is created in gvSIG.
The default CRS is defined in the Preferences window of gvSIG which can be accessed through the menu (Window->Preferences) or with the corresponding button in the toolbar , see figure 1.
When clicking on the Change button, the New CRS dialog is displayed which lets you select the default CRS, see figure 2.
In this dialog you can select CRS from five different repositories:
Below, a brief description of each option is presented.
The selection of CRS from the EPSG database can be done through three search criteria: through the EPSG code (for example 4230), through the name of the CRS (for example ETRS89), or by the area where the CRS is used (for example Spain). The two last cases are character string searches, resulting in those CRS where the name or area description includes the introduced string.
By clicking on the Info CRS button, you can access detailed information about the CRS that is selected in the table at the moment when you click the button, see figure 4 and 5:
In the information that is shown for the selected CRS, it is important to note the Proj4 string (at the bottom). The jCRS library includes CRS operations through the Proj4 library (link), where the results will be correct if this string has been correctly constructed. This information could be useful for advanced users.
This information sheet for selected CRS is available for all repositories included in the extension.
The selection of CRS from the IAU2000 and ESRI databases, (see figure 6 and 7, respectively) can be done by searching on the CRS code or name of the CRS.
The User CRS dialog allows for the management of the user database including select, edit or delete existing CRS, or create new CRS.
The selection of existing user-defined CRS (see figure 8) can be done by searching on the CRS code or the name of the CRS. Since there are normally only a few user-defined CRS, all user-defined CRS will appear in the table by default when the New CRS dialog is opened or when a search is performed without any code or search string.
The process of creating, editing and deleting of user-defined CRS will be explained in a later section of this manual.
In accordance with ISO 19111, there are two types of operations to relate two different CRS: conversion operations and transformation operations:
If a transformation is needed, you must choose the type of transformation for the layer in the CRS selection dialog (see Figure 20) and click the Next button to continue to the corresponding transformation dialog.
The transformation dialog depends on the type of transformation to be performed:
Keep in mind that the transformation operations of this type are always between the base CRS (i.e. 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.
IMPORTANT: 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 (see Figure 24). With this option, you can select a transformation that has been used before. The list of recent transformations will be available in the current and future executions of gvSIG and is not linked to any specific project.
There are two ways to select a recent transformation. The first way is through the CRS selection panel for the layer. There is now an additional field in the table to indicate if the selected CRS has been used together with a transformation in any recent execution of the program. If you select the CRS and recent transformation, you can do two things:
- Accept the CRS and transformation.
- Continue the process of selecting the transformation. This will be helpful to review the selected transformation, because in the next panels the information of the selected transformation will be loaded, so that you can still change it or select another transformation, in which case in the next CRS selection for the layer, a new recent transformation will be added with the chosen settings. To access the information of the CRS and the transformation, just click on the Info CRS button (see Figure 25).
The second way to select a recent transformation is through the selection of CRS without transformation and then select Recent transformations as the type of transformation, after which a panel is displayed where you can choose from transformations that were previously defined (see Figure 26).
Composite transformation. This type of transformation is new for this version. The objective of composite transformations is to provide 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.
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:
Click on the "Add" button
La ventana de dialogo “Abrir” le permite navegar por el sistema de ficheros para seleccionar la capa a cargar. Por defecto se mostrarán todos los formatos de archivos soportados por gvSIG. Mediante la lista desplegable "Archivos de tipo" podrá filtrar los archivos en función de su extensión.
Si se cargan varias capas a la vez, usando los botones de “Arriba” y “Abajo” del diálogo “Añadir capa”, se puede establecer el orden en el que serán añadidos las capas a la vista.
En el caso de que se esté cargando una capa vectorial y esté acompañada en el mismo directorio por un fichero con el mismo nombre que la capa y formato .gvl, gvSIG aplicará automáticamente las leyendas definidas en el fichero gvl a la capa al cargarla.
Go to the "Add layer" window and then select the WMS tab.
Click on “Next” to start configuring the new WMS layer.
When you have accessed the service, a new group of tabs appears.
The first tab in the adding a WMS layer wizard is the information tab. It summarises the current configuration of the WMS request (service information, formats, spatial systems, layers which make up the request, etc.). This tab is updated as the properties of its request are changed, added or deleted.
The wizard’s “Layers” tab shows the WMS server’s table of contents.
Select the layers you wish to add to your gvSIG view and click on “Add”. If you wish, you can choose a name for the layer in the “Layer name” field.
N.B. Several layers can be selected at the same time by holding down the “Control” key and left clicking on the mouse.
N.B. To obtain a layer description move the cursor over a layer and wait a few seconds. The information the server has about these layers is shown.
The “Styles” tab allows you to choose a display view for the selected layers. However, this is an optional property and the tab may be disabled because the server does not define styles for the selected layers.
The “Dimensions” tab helps to configure the value for the WMS layer dimensions. However, the dimensions property (like the styles property) is optional and may be disabled if the server does not specify dimensions for the selected layers.
No dimension is configured by default. To add a dimension, 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 (for example “TIME” refers to the dates the different images were taken). 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 from the server.
gvSIG allows you to choose between:
Single value: Only one value is selected
Multiple value: 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.
N.B. Although each layer can define its own dimensions, only one choice of value is permitted (single, multiple or interval) for each variable (e.g. for the TIME variable a different image date value cannot be chosen in each layer).
N.B. 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.
N.B. 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.
The “Formats” tab allows you to choose the image format the request will be made with, specify if you wish the server to hand in the image with a transparency (to superimpose the layer onto other layers the gvSIG view already contains) and also the spatial reference system (SRS) you require.
As soon as the configuration is sufficient to place the request, the “Ok” button is enabled. If you click on this button, the new WMS layer will be added to the gvSIG view.
Once the layer has been added its properties can be modified. To do so, go to the Table of contents in your gvSIG view and right click on the WMS layer you wish to modify. The contextual menu of layer operations appears. Select “WMS Properties”. The “Config WMS layer” dialogue window appears. This is similar to the wizard for creating the WMS layer and can be used to modify its configurations.
Click on “Next” to start configuring the new WCS layer.
When you have accessed the service, a new group of tabs appears.
The first tab in the adding a WCS layer wizard is the information tab. It summarises the current configuration of the WCS request (service information, formats, spatial systems, layers which make up the request, etc.). This tab is updated as the properties of its request are changed, added or deleted.
Select the coverage you wish to add to your gvSIG view. If you wish, you can choose a name for your layer in the “Coverage name” field.
You can choose the image format you wish to use to make the request and reference system (SRS) in the “Format” tab.
N.B. Tabs such as “Time” and “Parameters” are disabled in this case. Configuring these variables depends on the server chosen and the type of data it has access to.
As soon as the configuration is sufficient to place the request, the “Ok” button is enabled. If you click on this button, the new WCS layer will be added to the gvSIG view.
Once the layer has been added its properties can be modified. To do so, go to the Table of contents in your gvSIG view and right click on the WCS layer you wish to modify. The contextual menu of layer operations appears. Select “WCS Properties”.
The “Config WCS layer” dialogue window appears. This is similar to the wizard for creating the WMS layer and can be used to modify your configurations.
If you wish to add an orthophoto to gvSIG using the ECWP protocol, first open a view and click on the “Add layer” button.
Click on the “Add” button in the dialogue box. A file browser window appears.
Choose the “gvSIG Image Driver” option from the “Files of type” pull-down menu.
Write the URL of the file you wish to load as follows in “File name”:
ecwp://server address/path of the file you wish to add.
For example:
ecwp://raster.alava.net/datos/ecw/Ortofoto_5000.ecw
ecwp://earthetc.com/images/geodetic/world/MOD09A1.interpol.cyl.retouched.topo.bathymetry.ecw
When you have input the data, click on “Open”.
The orthophoto will be added to the layer list.
Select the new added layer and click on “Ok”.
The image will be added to the view.
In the proprietary software environment, ArcIMS (developed by Environmental Sciences Research Systems, ESRI) is probably the most widespread/popular widely used (Internet) cartographic server on the Internet thanks to the number of clients it supports (HTML, Java, ActiveX controls, ColdFusion...) and to its integration with other ESRI products. ArcIMS is currently one of the most important remote cartographic information providers. Although the protocol it uses does not comply with the Open Geospatial Consortium (because it was created long beforehand), the gvSIG team believes that offering support for ArcIMS is important.
The extension can access image services offered by an ArcIMS server. This means that, just like a WMS server, gvSIG can request a series of layers from a remote server and receive a view rendered by the server containing the requested layers in a specific coordinate system (reprojecting if necessary) and in specific dimensions. In addition to displaying geographic information, the extension allows you to request information about the layers for a particular point via the gvSIG standard information button.
ArcIMS is slightly different in its philosophy from WMS. In WMS, the request is normally made by independent layers whilst in ArcIMS the request is global.
The steps required to request a layer from an ArcIMS server and to request information for a particular point are listed below.
Our example uses the ESRI ArcIMS server. Its URL is http://www.geographynetwork.com. This is the address a web browser requires to access the HTML visual display unit.
Before loading a layer from this server, the datum WGS84 in geodesic coordinates (code 4326) has to be set up previously as the view’s spatial system.
If the extension is loaded correctly, a new ArcIMS data source will appear in the “Add layer” dialogue box.
If the server has a standard configuration, simply indicate its address. gvSIG will try to find the servlet’s full address.1 If the servlet has a different path, you will have to write it into the dialogue box.
When the connection has successfully been made, the server version, its compilation number and a list of image and geometry services available are shown.
The service can be selected from the list or can be written in directly.
Finally, if the “Override service list” check box is enabled, gvSIG will delete any catalogue that has already been downloaded and will request them again from the server.
The next step is to select the ImageServer type service required by double clicking or selecting it and clicking on "Next". The dialogue box changes and an interface with two tabs appears (fig. 3). The first tab shows the metainformation given by the server about the service’s geographic limits, the acronym of the language it has been written in, units of measurement, etc. It is a good idea to find out if a coordinate system has been defined in the service (using EPSG codes) as this can directly influence the requests made to the server, as Figure 3 shows.
N.B. If no coordinate system has been defined in the service, the extension will assume that it is the same coordinate system as the one we have defined for the view.
We can continue by clicking on "Next" or return to the previous dialogue by clicking on "Change service”.
The last dialogue box is the layer selection. We can define a name for the gvSIG layer or leave the default value (the service name) in this window. A box appears below with a list of the service layers in tree form. When the mouse is moved over the layers, information about these layers appears: extension, scale ranges, type of layer (raster or vector image) and if it is visible by default in the service (fig. 4).
We can view each layer’s ID via the “Show layer ID” check box. This check box is useful when there are layers whose descriptor is repeated. Therefore, the only way to distinguish between them is via an ID, which will always be unique. A combo box is also available to select the image format we wish to use to download the images. We can choose JPG format if our service works with raster images or one of the other remaining formats if we want the service to have a transparent background.
N.B. The transparency in 24-bit PNG images is not correctly displayed in gvSIG 0.6. This type of files will be supported in gvSIG 1.0.
The box with the layers selected for the service appears below. If you wish, you can add just some of the service layers and also reorganise them. This makes the service view totally personalised.
N.B. The configuration cannot be accepted until a layer has been added.
N.B. Multiple selections of service layers can be made by using the Control and CAPS keys.
When the “Ok” button in the dialogue box is pressed, a new layer appears in the view (fig. 5). If no layer has been added previously, the extension of the ArcIMS layer is shown, as per the standard gvSIG procedure.
It must be remembered that when the layer extension is shown, the layers that make up the chosen configuration may not appear and a blank or transparent image appears instead. If this occurs, use the scale control dialogue box (V. Information about scale limits section).
An ArcIMS server does not define the spatial reference systems it supports as opposed to the WMS specification. This means that a priori we do not have a list of EPSG codes that the map server can reproject. In short, ArcIMS can reproject to any coordinate system and leaves the responsibility of how the projections are used to the client.
Therefore, if our gvSIG view is defined in ED50 UTM zone 30 (EPSG:23030) and we request a global coverage service (stored for example in the geographic coordinates WGS84, which correspond to code 4326) the server will not be able to reproject the data correctly because we are using global coverage for a projection of a specific area of the Earth.
However, the procedure can be carried out in reverse. If we have a view in geographic coordinates (and thus global coverage), services defined in any coordinate system can be requested because the server will be able to transform the coordinates correctly.
In short, requests to the ArcIMS server must be made in the view's coordinate system and they cannot be requested in another coordinated system.
Moreover, as we mentioned above, if an ArcIMS server does not offer information about the coordinate system its data is in, the user will be responsible for setting up the correct coordinate system in the gvSIG view. Thus, if a user with a view in UTM adds a layer which is in geographic coordinates (even though the server does not show it), the service will be added correctly but will take the view to the geographic coordinates domain (in sexagesimal degrees).
An additional effect is that if the view uses different units of measurement from the server, the scale will not be shown correctly.
The layers requested from the server can be modified via a dialogue box, which can be accessed from the layer’s contextual menu (fig. 6) just like the WMS layers. This dialogue box is similar to the box used to load the layer, apart from the fact that the service cannot be changed.
The extension allows us to consult the layers' scale limits which make up the requested service via a dialogue box which can be maintained in the view during the session (fig. 7). This window shows the layers on the vertical axis and the different scale denominators on the horizontal axis via a logarithmic scale. This box is small on screen but can be enlarged to improve the difference between the scales.
The vector layers, raster layers and the layers that can be seen on the current scale (marked with a vertical line) in a darker colour and the layers we cannot see above or below the current scale are differentiated by different coloured bars (described in the window legend).
Attribute information requests about the elements for a particular point is one of gvSIG’s standard tools. Its functionality is also supported by the extension.
The WMS specification allows information about several layers to be requested from the server in one single query. This is different in ArcIMS. We need to make one server request per layer required.
This means that no requests for unloaded layers or unseen layers that are not visible on the current scale or layers whose extension is outside the view will be made. Even if all these layers are filtered, the information request usually takes longer than is desirable because of this intrinsic feature of ArcIMS.
When all the request responses have been recovered, the standard gvSIG attribute information dialogue appears with each of the layers (LAYER) which return information as a tree. If we click on a layer, its name and ID appear on the right (fig. 8).
Under this node, if we are talking about a vector layer, all the records or geometric elements the server has responded to appear, and give each one their corresponding attributes (FIELDS).
If it is a raster layer, such as an orthoimage or a digital terrain model, it returns the values for each of the bands (BAND) in the requested pixel colour, instead of records.
The extension allows access to both ArcIMS image services and geometry services (Feature Services). This means that a server can be connected to and geometric entities (points, lines and polygons) and their attributes obtained. This is not dissimilar to WFS service access.
However, the variety of existing geometry services is much lower than the variety in the image server. There are two main reasons for this. On one hand, providing the public with vector cartography implies security problems because many bodies only want to offer the general public views and images. The vector data becomes either an internal product or must be paid for. On the other hand, this type of services generate much more traffic on the network and in the case of basic information servers could become a problem.
Loading a geometry layer is practically the same procedure as loading the image server as mentioned above (Accessing the service section and the following sections). In this case, the number of layers to be selected must be taken into account. If we wish to download all the layers offered by the service the response time will be very high.
The only difference between loading an image layer is that in this case we can choose whether we wish the layers to be downloaded as a group via a check box. This is useful for processing the vector layers as one layer when it needs to be moved and activated in the table of contents.
Unlike the image service, in which all the service’s layers appear as one unique layer in the gvSIG view, in this case each layer is downloaded separately and appears in the view grouped under the name defined in the connection dialogue.
Cartography symbols are configured in the server in one AXL extension file for both geometry and image services. We can divide symbol definition into two parts. On one hand, we can talk about the definition of the symbols themselves, i.e. how a geometric element, such as a line or polygon, should be presented. On the other hand, we can talk about the distribution of these symbols according to the cartographic display scale or to a specific theme attribute.
In ArcIMS terminology symbols are different from legends (SYMBOLS and RENDERERS).
There are various types of symbols: raster fill symbols, gradient fill symbols, simple line symbol, etc. The extension adapts the majority of the symbols generated by ArcIMS. Table 1 shows the ArcIMS symbols and indicates whether they are supported by gvSIG.
Label | Description | Supported |
---|---|---|
CALLOUTMARKERSYMBOL | Balloon-type label | NO |
CHARTSYMBOL | Pie chart symbol | NO |
GRADIENTFILLSYMBOL | Fill in with gradient | NO |
RASTERFILLSYMBOL | Fill with raster pattern | YES |
RASTERMARKERSYMBOL | Point symbol using pictogram | YES |
RASTERSHIELDSYMBOL | Customised point symbol for US roads | NO |
SIMPLELINESYMBOL | Simple line | YES |
SIMPLEMARKERSYMBOL | Point | YES |
SIMPLEPOLYGONSYMBOL | Polygon | YES |
SHIELDSYMBOL | Point symbol for US roads | NO |
TEXTMARKERSYMBOL | Static text symbol | NO |
TEXTSYMBOL | Static text symbol | YES |
TRUETYPEMARKERSYMBOL | Symbol using TrueType font character | NO |
Table 1: ArcXML symbol definition labels
In general, the most common symbols have been successfully “transferred”. Some of the symbols cannot be obtained directly from gvSIG (at least in the current version), such as the raster fill symbol or they need to be “adjusted” such as the different types of lines. This means that a raster fill symbol is not a symbol that can be defined by the gvSIG user interface, but it can be defined by programming.
gvSIG supports the most common types of legends: unique value and range and value themes as well as the scale-range control over the whole layer. ArcIMS goes much further in its configuration. It can generate much more complicated legends in which symbols can be grouped together, scale-range controls can be established for labels and symbols and different labelling based on an attribute can be shown (as though it were a value theme for labelling).
This group of legends can generate very complex symbols for a layer in the end. The current implementation status of the gvSIG symbols needs to be simplified to reach a compromise to recover the symbols that best represent the layer as a whole.
Label | Description |
---|---|
GROUPRENDERER | Legend which groups others together |
SCALEDEPENDENTRENDERER | Scale dependent legend |
SIMPLELABELRENDERER | Labelling layer legend |
SIMPLERENDERER | Unique value layer legend |
VALUEMAPRENDERER | Value and range themes |
VALUEMAPLABELRENDERER | Labelling themes |
Table 2: ArcXML legend definition labels
When a GROUPRENDERER is found, the symbol ArcIMS draws first is always chosen. Thus, in the case of the typical motorway symbol for which a thick red line is drawn and a thinner yellow line is drawn over it, gvSIG will only show the red line with its specific thickness.
If a scale dependent legend is discovered during a symbol analysis, this is always chosen. If more than one is discovered, the one with the greatest detail is chosen. For example, in ArcIMS we can have a layer with simple road symbols (only main roads are drawn) on a 1:250000 scale and based on this a different theme is shown with all types of roads (paths, tracks, roads, etc.). In this case, gvSIG will show this last theme as it is the most detailed.
If a labelling legend is discovered during a symbol analysis, it will be saved in a different place and will be assigned to the selected definitive legend. In the case of the VALUEMAPLABELRENDERER label, only the legend of the first processed value will be obtained as a label symbol. The rest will be rejected.
In short, it is obvious that the failure to adapt the legends for gvSIG is a simplification process in which different legend and symbol definitions must be rejected to obtain a legend which is similar to the original as far as possible. It is to be expected that the gvSIG symbol definition will improve considerably so that it can support a larger group of cases in the future.
Working with the layer is similar to any other vector layer, as long as we remember that access times may be relatively high. The layer attribute table can be consulted, in which case the records will be downloaded successively as we display them.
If we wish to change the table symbols to show a unique value or range theme we must wait as gvSIG requests the complete table for these operations. On the other hand, the downloading of attributes is only carried out once per layer and session and therefore, this wait only occurs in the first operation.
In general, if our ArcIMS server is in an Intranet, it will be relatively fast to handle, but if we wish to access remote services we may be faced with considerable response times.
The main feature to bear in mind when working with an ArcIMS vector layer is that the geometries available at any given time are only the ones displayed. This is because we can connect to huge layers but only the visible geometries are downloaded. As far as gvSIG is concerned, the geometries shown on the screen are the only ones available and thus, if we export the view to a shapefile for example, are only a part of the layer.
Finally, we need to remember that to speed up the geometry downloads they are simplified to the viewing scale in use at any given time. This drastically reduces the amount of information downloaded as only the geometries that can actually be "drawn" are displayed in the view.
Loading a geometry layer is practically the same procedure as loading the image server as mentioned above (Accessing the service section and the following sections). In this case, the number of layers to be selected must be taken into account. If we wish to download all the layers offered by the service the response time will be very high.
Unlike the image service, in which all the service’s layers appear as one unique layer in the gvSIG view, in this case each layer is downloaded separately and appear in the view grouped under the name defined in the connection dialogue.
After a few seconds the layers appear individually but are grouped under a layer with the name we have defined for it.
The layer symbols are established at random. A pending feature is to recover the service symbols and configure them by default so that gvSIG can display the cartography as similarly as possible to how it was established by the service administrator.
Web Map Context (WMC) is another OGC standard (http://www.opengeospatial.org) which can be added to the list of standards of this type supported by gvSIG.
It can reproduce a view made up of Web Map Services (WMS) layers on any GIS platform which supports WMC. If your project has a view which contains WMS layers, you can export these layers. The result is an XML file with a specific format and .cml extension which can be imported by another platform on which the view it describes can be reproduced.
Web Map Context (WMC) is another OGC standard (http://www.opengeospatial.org) which can be added to the list of standards of this type supported by gvSIG.
It can reproduce a view made up of Web Map Services (WMS) layers on any GIS platform which supports WMC.
If your project has a view which contains WMS layers, you can export these layers. The result is an XML file with a specific format and .cml extension which can be imported by another platform on which the view it describes can be reproduced.
Exporting a view to WMC
Exports to WMC are currently limited to WMS type layers, although it is hoped that its functions will extend to all layers that comply with OGC standards in the future.
To obtain a WMC file, open a view in gvSIG and add the WMS layers you require.
Then go to the “View” menu and select “Export” and then “Web Map Context”.
The following dialogue will be shown.
N.B.: If you cannot find the "Web Map Context" option in the "Export" option, your project does not contain any WMS layers.
Basic mode only shows the compulsory properties which cannot be taken for granted by the application.
View: This defines which view is going to be exported to the WMC. The view which is currently active is selected by default.
Title: This is the title of the view which will be shown when your .cml file is loaded at a later date. The current title of the view is used by default but this can be changed.
ID: This field is also compulsory and represents a file ID which must be unique.
File: You can search for the place you wish to save the .cml file in from the "Browse" button.
Version: Use this tool to specify the WMC version you wish to use.
The version 1.1.0 is selected by default as it is the most highly developed and the most recommended. However, several applications and geoportals are often limited to a specific version.
gvSIG currently supports Web Map Context in its versions 0.1.4, 1.0.0 and 1.1.0.
Extent: This defines the extension of the map to be exported.
Defined by the view’s extent. This option only exports what we can currently see in the view.
Use full extent. This extension is better to use the full WMS layers depending on how their respective servers define them.
If you click on the “Advanced” button, the advanced configuration dialogue will drop down. This allows you to define more properties to obtain a complete WMC.
Abstract: This contains a summary of the view defined by WMC.
Keywords: This list of words allows you to classify and “metadata” the WMC.
URL description: If you have a web site which refers to this WMC, write its link here.
URL logo: If you have an image associated with this WMC, write its link here.
Map size (pixels): This defines the pixel size that the WMC-defined view will have. The current gvSIG view size is used by default but you can customise the size if you wish.
Contact info: Information that allows third parties to contact the WMC author.
Importing Web Map Context allows you to use gvSIG to open views with WMS layers which have been created with other platforms or with another gvSIG.
Use the "View” menu and select “Import” and then “Web Map Context”.
The WMC file selection dialogue opens.
Choose the WMC file you wish to import. On the right, you can specify how you wish to view the layers.
New view: This adds a new view to the current project and loads the WMC as specified in the file.
Layers in the active (current) view: This option only appears if the active gvSIG window is a view. It allows you to quickly add the layers to the current view.
Layers in other view: This adds the layers defined by the WMC in the chosen view. In this option, a list of views appears to select the view that will contain the new layers.
Click on the “Open” button to import the file based on your preferences.
Tables are documents which contain alphanumeric information. Tables are made up of rows or records (which represent each of the elements in the data base) and columns or fields (which define the different attributes of each element).
Row or record: Used to represent the different elements in the table.
Column or field: The types of attributes which define each element.
Cell: A cell is the intersection of a record and a field. A cell is the minimum working element and may contain information.
Record information: This provides information about the total number of elements (records) contained in the table.
All the vector information layers have their own “Table of attributes”. Each graphic element in a particular layer has its corresponding record in the “Table of attributes”.
To select elements in the table, left click on them. Use the “Control” and “Shift” (CAPS) keys to select more than one record.
You can load a table in gvSIG in two ways:
Select “Tables” as the document type from the “Project manager” and click on “New”. A dialogue box will open in which you can add the table.
When you click on the “Add” button, a browser window will open.
Specify the type of file you wish to load in gvSIG in “Files of Type”. When you have located the file that contains the table, select it so that it is added to the “File name” text box and click on “Open”. You will automatically be returned to the "Add table" dialogue. If you wish to add more than one table, click on "Add" again and repeat the process. When you have finished, click on “Ok”. The table will then be displayed. It will also appear in the “Project manager” text box.
Click on the "See table of attributes" button from the display window of a view with at least one active layer, i.e. a layer that is selected in the ToC,
or go to the "Layer" menu and then select the "See table of attributes" option.
The table will automatically be added to the project.
If you minimise the view, go back to the "Project manager" and select "Tables" as the document type, you will see that the table displayed in the view appears in the text box.
You can access “Table properties” from the “Project manager” window.
You can use this window to:
When you have input the changes, click on “Ok” and they will be saved.
When a table has been loaded, either from the “Project manager” or from the view, the tools associated with the table will appear in the tool bar.
A new menu, called “Table”, will also be activated in the tool bar. This can also be used to access the different tools.
You can access this option by clicking on the following button
or by going to the “Table” menu and then to “Statistics”.
The “Statistics” tool allows you to obtain the most common statistical values.
N.B.: Remember that the tool will not be activated until you select a numerical field.
If you wish to obtain field statistics, select the field (left click on the field heading), then click on the “Statistics” tool.
You can only obtain statistics from a series of records, firstly, select the field the values are located in, then select the desired records, and click on the “Statistics” tool.
You can access this tool by clicking on the “Filter” button in the tool bar
or by going to the “Table” menu and then to “Filter”. The “Filter” tool works in much the same way as in the “Views” section.
gvSIG allows selections to be made using filters. Selection using filters allows you to define exactly what you want to select, including several attributes, operators and calculations.
Requests can be made using logical operators, such as “equals” “more than” “different from”, etc.
If you press the “Filter” button in the tool bar, a dialogue window will appear to define your request.
Fields: Double click on the field you wish to add to your request from the “Fields” list in the layer.
Logical operators: These allow you to insert a logical expression into your query by clicking on them.
Values: This shows a list with the different values the selected field has. If you wish to add a value to the request, double click on it.
Request: This is the window which represents the request to be made. You can write here directly.
Selection buttons: These buttons make the request using:
N.B.: In a gvSIG view, when you activate a layer by selecting it in the ToC, the filter tool will also be activated in the tool bar, even though no table has been loaded. This allows you to work with the table associated with the selected layer. The "Table" menu will also be added in the menu bar. This provides another way to access the filter tool when it drops down.
With the select duplicates tool you can quickly locate duplicate geometries through the attribute table.
The Locate Duplicates tool can be used to quickly locate duplicate geometries in a layer's attribute table.
To locate duplicate geometries in a layer, open the layer's attribute table and select the field (by clicking on its header) for which you want to select duplicates.
Then click on the "Select Duplicates" button.
Notice that the selected geometries have duplicate attribute values for the specified field:
You can access this tool by clicking on the following tool bar button
or by going to the “Table” menu and then to “Ascending order”.
The “Ascending order” tool allows you to order the table records.
You can access this tool by clicking on the following tool bar button
or by going to the “Table” menu and then to “Descending order”. The “Descending order” tool allows you to order the table records. It orders the values from the highest to the lowest in a numerical field. It orders the records in alphabetical order, starting from “Z” in a text field.
The “Join” tool allows two tables to be joined via a common field. You can also access this tool by clicking on the following button
or by going to the “Table” menu and then to “Join”. To join the two tables, carry out the following steps: Firstly, specify the source table the join is to be made from.
Then specify the field to be used for the join.
Then indicate the table you wish to join to the first one.
Finally, indicate the field in the second table which is common to the first one.
If you open the data source table, you will see that the fields of the destination table have been joined. The name of the field added to the table is identified by the word “Join_(Field name)”
This tool allows the records selected in the table to be moved to the top of the table. You can access this tool by clicking on the following button in the tool bar
or by going to the “Table” menu and then to “Move selection to top”. The following table shows an example in which two records have been selected to move to the top of the table.
If you click on the button, the table will change the position of the selected records.
Although .dbf files should contain a byte to indicate character encoding, this information is usually not present. gvSIG provides the Shalom tool that sets the encoding and then reads the information in the table using that encoding. If the encoding is not set in this way then gvSIG will read the table data using the default encoding.
It is possible to set the character encoding of a table by selecting Table > Set encoding to .dbf files from the menu bar. Choose the table for which the encoding needs to be set and then select the encoding type (charset). This encoding setting is recorded permanently in the table.
Now the table can be added to the gvSIG project. When gvSIG opens the table the character encoding is read and the characters in the table are correctly displayed.
Note: The correct display of characters depends not only on the encoding setting, but also on the virtual machine that is installed (specifically Java 1.6, which supports more encodings than Java 1.5).
This option can be accessed by opening the Window > Preferences menu and then selecting DBF default encoding.
gvSIG will use the selected encoding as the default when adding a .dbf file to a project, and will also use it when exporting a table that uses a specific encoding.
The export of a table might not be correct if the character encoding is incorrectly configured in the gvSIG preferences.
From version 0.5 onwards, gvSIG can read information contained in a plain text file, whose fields are separated by a semi-colon.
To carry out this operation, go firstly to the “Project manager”. Select “Tables” and then click on “New”. A search dialogue box will open. Click on “Add” and the file browser will appear in a new window (select “csv string” in “Type of file” to show the csv files).
When the .csv file has been selected, click on “Open”.
If you click on “Ok”, the data of the table you have added will be shown.
The contents of a data base table can be imported to gvSIG using data base managers (PostgreSQL, MySQL, GBMS-HSQLDB, ODBC). gvSIG processes the information obtained just like any other table.
Note: Oracle drivers installation is required for access to Oracle Spatial databases of the geoBD extension. Please follow the steps bellow: Go to Oracle Database 10g Release 2 (10.2.0.3) drivers.
Accept the license terms. In the next page, download the file ojdbc14.jar (1,545,954 bytes) - classes for use with JDK 1.4 and 1.5. (Registration required)
Move this file to the next folder:
Move the file to the:
bin\gvSIG\extensiones\com.iver.cit.gvsig\lib
folder, that is in the directory where gvSIG is installed.
Move the file to the:
bin/gvSIG/extensiones/com.iver.cit.gvsig/lib folder
, that is in the directory where gvSIG is installed.
To load a table with the information obtained from a JDBC data origin you must:
Firstly, go to the "Project manager" and select "Tables". Then click on "New". Select the “Data base” tab in the window that opens (“New table”) and configure the data base server connection parameters:
If the information entered is correct, a new table will be created in gvSIG with the information contained in the original JDBC table.
It is a tool which allows thematic cartography to be carried out with relative ease.
You can choose the colour, mesh etc. which most appropriately symbolises or represents the data or variables of the elements to a layer.
To access the edit option of properties related to the symbology you must go to the “Properties” menu (click on the smaller button on the layer).
Another window will open, place the cursor on the “'tables of symbols' tab".
In this tab you can define, in an advanced manner, the type of legend with which you want to represent the data of layer, from its fields [1].
[1]: It must be noted that you can not use the fields resulting from a join to make legend classifications, meaning that, to use these fields in a legend you will have to export the shp resulting from the join.
You can choose the following forms of representation:
Four types of legends can be found:
Defines a legend of a point density based on the value of a certain field.
Labelling field A drop-down menu opens where you can choose fields from the table (Double or Integer types) from which you can make a legend which represents the quantity of each value in the table. The properties of the points which represent the density of the values in the table can be changed.
Point value: This is the numeric value which will be given to each point that is drawn.
This type of legend represents the elements of a layer using a range of colours. The gaps or graduated colours are mainly used to represent numeric data which have progression or range of values, such as population, temperature, etc.
Classification field: A drop-down menu where you can chose the attributes of the layer for which you want to make the classification for. The field must be numerical as it is a gradual classification (by the rank of the value)
Cuantil intervals: The number of intervals are specified and the sample is divided into this number but gathering into groups values according to their order. Number of intervals: Should indicate the rank or interval number which defines their classification.
Represents quantities through the size of a symbol showing relative values.
Represents quantities through the size of the symbol which shows exact values.
Normalisation fields: Possibility of choosing a numerical field which normalises the results, maintaining the proportion of quantities.
Shows layer elements according to a certain filtered expression.
Each register can be represented with an exclusive symbol according to the value it adopts in a certain field in the attributes table. It is the most efficient method for spreading categorical data, such as municipalities, floor types, etc.
You will find the following symbology configuration options:
Category quantities
Represents quantities for each category.
For this, it combines two fields (which must be of a numeric type), applying a combined legend made up of colour ramp (for field_1) and specific gradual symbols (for field_2).
Meaning that this type of legend combines a a representation of intervals based on the values of Field_1 with anothier representation of gradual symbols based on the values of field_2.
Chart or diagram legends are intended to provide a visual representation of data in a table, thereby communicating a lot of information very easily.
In particular this extension allows two types of legends to be constructed:
The pie legend is located in the Multiple attributes section of the legend tree, and can be used to represent several attributes at once. To access it, right-click on the layer name to open the Properties and then select the symbols tab.
The following options are available for configuring the pie charts:
Fields: You can choose which of the layer's fields to represent, provided they are numeric. With these fields you can:
To do this click on the buttons shown in the image above (Box 1).
Colour scheme: You can change the default colour scheme for the pies. To do this select the desired "Colour scheme" from the drop-down list, as shown in the image above (Box 2).
Change the colour: In addition it is possible to change the colour of pie slices once they have been added.
Once the default colour scheme has been chosen, the colour of a pie slice can be changed by double-clicking on its color.
The following dialog is displayed where you can select a colour sample or set it yourself (HSB, RGB).
Background symbol: You can change the symbol of the background geometries by clicking on the symbol to open the symbol editor (pictured above, Box 3).
Outline: You can display an outline with a specified colour and thickness around the pie slices. Tick the "Show" check box to draw outlines around the pie sectors.
Dimension: Tick the check box to display the pie in 3D. By default the pie is drawn in 2D.
Preview chart: Any changes made are reflected on the chart preview.
Click the 'Size' button located in the pie legend configuration screen.
Clicking this will open the following dialog:
There are three options for setting the size of the diagrams:
In addition to setting the size of the pie, the units can also be specified.
Units: Select units (meters, pixels ...) and representation (in the world or print layout), depending on your requirements. If the units are set to "in the world" then the size will depend on the View's zoom level, while selecting "print layout" results in a fixed size, both on the screen and when printed.
Active Limits: Limits can be specified if the size of the chosen field size is not set to the "Fixed Size" option.
Activating limits for the other options sets the minimum and maximum values of a particular measure (Sum of field values or Field size). Taking the limits into account, the intermediate field values are calculated in proportion to the values of the records of the field, or to the sum of the field values.
This option is used to restrict the drawing of pie charts to selected geometries.
The geometries can be selected either before or after configuring the pie chart size and display options.
In order to represent pie charts for selected geometries, simply activate the check box Draw only selection in the pie legend configuration dialog.
The following image shows an example in which pie charts are only shown for selected geometries (shown in yellow).
The bar legend is located the Multiple Attributes section of the legend tree, and can be used to represent several attributes at once. To access it, right-click on the layer name to open the Properties, then select the Symbols tab.
The following options are available for configuring bar charts:
Fields: You can choose which of the layer's fields to represent, provided they are numeric. With these fields you can:
To do this click on the buttons shown in the image above (Box 1).
Colour scheme: You can change the default colour scheme for the bars. To do this, select the desired "Colour scheme" from the drop-down list, as shown in the image above (Box 2).
Change the colour: In addition it is possible to change the colour of bars once they have been added.
Once the default colour scheme has been chosen, the colour of a bar can be changed by double-clicking on its color tile.
You can use the following dialog to select a colour sample, or set it yourself (HSB, RGB).
Background symbol: You can change the symbol of the background geometries by clicking on the symbol to open the symbol editor (pictured above, Box 3).
Outline: You can display an outline with a specified colour and thickness around the bars. Tick the "Show" check box to draw outlines around the bars.
Dimension: Tick the check box to display the bars in 3D. By default the bars are drawn in 2D.
Preview chart: Any changes made are reflected on the chart preview.
Click the 'Size' button located in the bar legend configuration screen.
Clicking this will open the following dialog:
There are three options for setting the size of the diagrams:
In addition to setting the size of the bars, the units can also be specified.
Units: Select units (meters, pixels ...) and representation (in the world or print layout), depending on your requirements. If the units are set to "in the world" then the size will depend on the View's zoom level, while selecting "print layout" results in a fixed size, both on the screen and when printed.
Active Limits: Limits can be specified if the size of the chosen field size is not set to the "Fixed Size" option.
Activating limits for the other options sets the minimum and maximum values of a particular measure (Sum of field values or Field size). Taking the limits into account, the intermediate field values are calculated in proportion to the values of the records of the field, or to the sum of the field values.
This option is used to restrict the drawing of bar charts to selected geometries.
The geometries can be selected either before or after configuring the bar chart size and display options.
In order to display bar charts for selected geometries, simply tick the check box “Draw only selection” in the pie legend configuration dialog.
The following image shows an example in which bar charts are only shown for selected geometries (shown in yellow).
Unique symbol
This is the default gvSIG legend type.
Represents all the elements of a layer using the same symbols. It is useful for when you need to show the location of a layer more than its any other attribute. The representation of its symbology depends on the type of geometry, this is further explained in the symbols section.
Save legend:
The legends that have been created can be saved so that you can use them on other occasions.
To save, click on the “Save legend” button.
A window will open with the save options: save legend with gvSIV (.gvl) format or standard exchange .sld format (currently supports SDL 1.0.0).
Legend recovery:
Legends that have been previously created can be recovered at any time. Click on the “Recover legend button” and select the legend you want to recover.
The Symbols tab is used to define advanced features of the legend being worked with.
When creating symbols for a legend it is important point to bear in mind the type of layer the symbols are being created for. This is important because there are two different types of vector layers to consider when making the symbols:
In this case, there is a single Symbols tab where you can configure the symbol properties of the points, lines and polygons separately. Points are configured under the Marker tab, lines under the Line tab, and polygons under the Fill tab.
With this clarified, we can now look at symbol properties while taking the geometry type into account.
From the layer menu, in properties, you can access the Symbology section. It is possible to change or configure a new symbol clicking on “Select symbol” where you will find different configuration options.
Click on the “Select symbol” button and then on the “Properties” button. The window which opens will allow you to edit the properties of the symbol. This is the same window that will open if you click on “New”.
By default gvSIG symbolises the layers with 'unique symbols'.
As well as the basic options that can been seen at first glance, such as colour, breadth and the type of units in which the symbol is to be represented, you can also edit the properties of the element. Next a classification of the properties of an element is made according to its geometry type.
The dialogue boxes that open have common sections and others that are specific to the type of geometry, we see them as follows:
When a symbol, is configured from its Properties, be it a point, a line or a polygon, it can be defined:
Under colour you find a scrolling bar, which allows you to play with the grade of the transparency of the elements. This way, you can superimpose polygon layers without interfering with its display.
We can also specify if they are units “on the map” (the size would depend on where the zoom is set) or “on paper” (it will have a set size, both on screen and when it is printed).
Symbol type:
Mercator | Lines | Fill-in |
---|---|---|
Of character | Simple line | Simple fill-in |
Simple mercator | Mercator lines | Image fill-in |
Mercator image | Line image | Mercators fill-in |
Of character | Simple line | Line fill-ins |
Of character | Simple line | Gradient fill-ins |
The mercators represent the layers of the points.
The lines represent the linear layers.
The fill-ins represent the polygon layers.
All three together represent the multi-geometric layers.
You can chose between different Markers that are shown in “Type of Marker”.
In “Marker style”, select the marker (circle, square, cross...). You can modify its size, angle and colour as well as being able to move it around the ordinate and abscissa axis.
Marker made up of simple markers: you can make up a marker from various other simple markers by “overlapping” one over the other, this is done by clicking on “add layer”, where each layer is a simple marker. You can delete or change the order of the layers by clicking on “Delete layer” or “Tidy layers”. In the following image there is an example of a symbol made up of various simple markers.
You can make the symbols stand out by choosing the colour of the outline and giving it the same transparency as the fill-in of the symbols. To give the symbol an outline you must check the “Use outline” box. You can move the symbol around the ordinate and abscissa axis or leave it in the centre.
You can use the different alphanumeric character types to create a symbol, you can modify its size, angle and colour as well as being able to move it around the ordinate and abscissa axis.
You can chose whichever image you want to represent the symbol. This image can be in different formats (jpg, png,bmp, svg..., you can even download an image from the internet, as long as the format is supported by gvSIG). To add it just select the path where the image is saved by clicking on “Examine”, next to "Image file".
Also, you have the option of selecting a different image, which is to represent the geometries, when they have been selected and are in view. Do this by entering the path of the image in "Selected image".
You can move the symbol around the ordinate and abscissa axis or leave it in the centre.
You can choose between different Mercator that are shown in the “Mercator type”.
You can choose the colour of the line, its breadth and its movement (offset), as well as having the option to modify its opaqueness and, of course, its measurement units.
As well as that the layers of the points can make up one line with various lines “overlapping” using the same method than which in the layers of points.
In the “Line properties” tab you can generate different types of lines, continuous lines which gvSIG has as default, or discontinuous lines, establishing the fill-in pattern you choose. For this a rule is made available from which you can design your own patterns.
Click on the grey section which is on the rule and drag right, next click on the rule, in the rule section you want, and a black section will appear which you can eliminate if you “click” on it again. This way you can successively add sections which can design your line.
If you want to delete the designed line click on “clean”.
In the “Arrow decorations” tab you can turn a line into an arrow. To make this happen check the “Use decoration” box.
The options available to decorate the arrow are:
You can use different font types, such as characters, to create a symbol, modifying its breadth and separation.
You can chose the image you want to make up the line, this image can be in different formats (jpg, png, bmp, svg...). To add the image you only have to select the path to where the image is saved by clicking on “Examine”. You can set the breadth and scale the image in “X” and “Y”.
The following fill-in Types for polygonal geometry layers are available.
You can choose the polygon fill-in colour and its opaqueness.
Click on the button where you can see the outline and the simple symbol of a line properties menu will open. Here you can configure the outline of the polygon as if it were a line.
You can give the outline the breadth and opaqueness you want.
Fill-in made up of simple mercators: You can make up a fill-in from various simples by “overlapping” them, it is the same method as that which is explained in the layers of points and lines.
You can give the polygon a fill-in made up of different types of mercators, such as punctual, linear, image... with their own characteristics.
The fill-in can be organised in an aleatory way or in a regular mesh way.
There is the option to make compositions with various layers.
Instead of filling the polygon in with specific mercators you can do so with lines, you can give them the same properties that you gave a line layer, including the outlines.
As in all sections, here you can also create a composition through different layers.
You can fill-in the polygon of images and set their inclinations by indicating the angle and you can also scale them.
The way to fill-in the polygon of images is by giving them the specific route to the image. These images can be framed, click on “Outline” and select the line you want.
The possibility of gradually filling-in is available, you can select different options to configure the gradual scale of the colour, these options are:
As you can see in the following image, a symbol has two buttons that configure it, “Select Symbol” where you can define its properties, and “Symbology Levels” which allows us to establish the exact order the different layers has created the symbol.
It is important to establish an order when different geometries of the same layer intersect, as can be the case in the unique Value of legends for line layers, for example, where the order established could be of interest so that some symbols are above others.
“0” value corresponds to the symbol drawn at that bottom, “1” is drawn above that and so forth successively.
You can give whatever name you want to the different legend values, to see them in the Table of Contents.
In the previous image we saw a legend by a unique Symbol, but it is also possible to give each of the legend values a label name by Interval, unique Value, etc. (or modify it, from each of the text boxes), as well as being able to modify the order with which theses values appear in ToC (throught the up/down arrows):
Upon installing gvSIC a folder called 'Symbols' is created in the user directory, here you can save different types of symbols (punctual, linear, polygonal...). In other words, it works as a library of symbols. Also, gvSIG includes, by default, a set of symbols from each type of geometry, saving them in the above mentioned folder.
Once a symbol is created, from the “Symbology select” menu, click on “Save”.
A window will open, allowing you to save the symbols on a specific route, inside the “Symbols” folder.
Name the symbol and click on save. Make sure you have saved the symbol as a .sym file and that when you open another layer of the same type of geometry, the library of symbols which has been saved appears.
The Colour table interface allows users to assign specific RGB values to a range of pixel values in a single band image. It is important to note that the input image can only have one band because if there are multiple bands, each of the bands will have colours associated with it. With the colour table functionality, users can build new tables or gradients, or modify existing ones.
The colour table dialog can be launched from the toolbar by selecting the option "Raster layer" on the left drop-down button and "Colour table" on the drop-down button on the right. Make sure that the name of the layer for which you want to build colour tables is set as the current layer in the text box. The "Colour table" option will only be available if a single band image is selected.
To use this function, it is important to know the minimum and maximum values in the image. If these values are unknown, they will have to be calculated. Depending on the size of the image, this calculation process may take some time. When the Colour table dialog is launched for an image that does not have any colour tables associated with it, all components will be inactive. To get started, we need to tick the check box labelled "Activate color table".
The colour table dialog is divided into several parts:
Every row in the table corresponds to a range of pixel values and its associated RGB colour. The column Value shows the first value of the range and the column To shows the last value of the range. These values can be edited directly by double-clicking on the cell and typing a new value. The RGB column contains the RGB value to be assigned to the range of pixel values. The cells in this column are not editable, but if you want to change the colour you can go to the corresponding cell in the Colour column and click on it. A generic java colour selection dialog will appear where you can modify the colour by changing the RGB values or visually.
The Class column contains associated labels that will not have any effect on the calculation and are just meant to add descriptive names to the range of values. If there is any text in this column, it will be displayed in the map legend when this is created. The last column labelled Alpha shows transparency values. When clicking on the values, a transparency selection dialog will open.
To manage the rows of the table (add, delete or move) you can use the general table controls located below the table (see the table control description).
The gradient view (which can be accessed by clicking the gradient tab) contains the same information as the tabular view but presented in a different way, and with the possibility to obtain results that are difficult to achieve with the tabular view. The colour bar represents the range of values from minimum on the left to maximum on the right. At the start, the end and on intermediate points on the colour bar are a number of break points with a fixed colour value.
These break points indicate the colour that will be assigned to the value that falls on that point. A click on a break point will activate the text boxes below the colour bar. These text boxes show the following information about the selected break point:
To add a break point, just click below the colour bar. After adding a break point you can modify its information. To remove a break point you can click on it and drag it away.
The final result of the gradient will depend on whether the check box labelled as "Interpolated", located below the gradient tab, is ticked or not. This option is available both in the tabular view and the gradient view. When ticked, the transition between one break point colour and the next colour will be gradual. If it is not ticked, the transition will be abrupt. The point where one colour ends and the next colour begins is marked by a diamond-shaped symbol.
This cutoff point can be moved to the right or the left by clicking and dragging it.
In the lower part of the dialog are the controls for the tabular and gradient view.
gvSIG provides a list of predefined colour tables to which you can add others that you have built yourself. Located at the lower right part of the Colour table dialog, the colour table libary allows users to scroll through and manage colour tables. The list of colour tables can be displayed in three ways: List, SmallIcon and LargeIcon. The type of display can be changed by right-clicking on the list, after which a drop-down menu appears where you can select the display mode.
List:
SmallIcon:
LargeIcon:
Below the colour table library are buttons to add, export, import and delete colour tables
The colour table built with this tool will classify the image in ranges of data values. When accepting the colour table dialog settings, this classification is shown in the TOC just below the layer name. For each colour, the corresponding range of values and the associated label, if any, is shown as a legend.
The generated legend can be inserted when preparing a map.
Layer labels are an independent property of the legend that draws the layer geometry. For this reason, labels have been separated from the legend and are treated as entities in their own right. The entity containing the layer labels is a level (containing text) that is drawn above all the other layers in the legend. Note that labels only make sense in certain environments, e.g. vector layers, annotation.
Labelling can be accessed via the new 'Labelling' tab in the 'Layer properties' dialog box (to activate the 'Layer properties' right-click on the active layer in the Table of Contents (ToC) and select 'Properties' or else double-click on the layer name).
There are two general types of labelling:
1- Static labelling (Using attributes from the layer's attribute table)
2- Advanced labelling (User defined)
To activate labelling the 'Enable labelling' option must be checked.
Static labelling automatically creates labels by using values from an existing field in the layer's attribute table. It has been inherited from gvSIG 1.1 and has almost the same functionality that existed before the implementation of Advanced Labelling in the current version of gvSIG.
These are the options that can be set:
Enable labelling. This enables labelling and displays the layer's labels in the view.
General. For static labelling set this option to 'Label attributes defined in table'.
Field to be labelled. A drop-down list that lets you choose a field in the layer's attribute table that contains values to display as labels.
Text height field option. Select a field in the attribute table that contains the height of each label.
Fixed height option. Enter a fixed value for the size of the labels.
Rotation field. Select a field in the attribute table that denotes the rotation angle of the labels. This must be a numeric field.
Units. Choose the units used for the height values.
Font. Select the font to apply to the labels.
Fixed colour option. Choose a colour for the labels. You can also set the label transparency by using the slider.
Colour field option. Select a field in the attribute table that contains colours.
User defined labelling provides the user with a great degree of control over the design and placement of labels. It has many more options and is much more powerful than static labelling.
The three different methods of user defined labelling are described below.
Choose this option to apply the same label style to all features in the layer, regardless of whether they have been selected or not.
The interface for this labelling option looks like this:
Note the following options, which are explained below:
It is also possible to preview the labels that have been defined for the layer. These will be applied to the View if the Apply or Accept buttons are clicked.
Apply the label setting only to those features that are selected in the View.
This labelling is dynamic, so that if the selection in the View is changed, the View is automatically updated with the labels for the new selection.
The interface for this labelling option is the same as that shown above (Label features in the same way).
With this option the user can create different label classes (through the 'Add' button), assign them a priority for display (using the 'Move up' / 'Move down' buttons to the right of the panel) and label each one separately.
The properties for each class can be accessed by double clicking on the relevant class (This brings up a dialog box, which is the same as for the three existing advanced labelling methods).
In other words, the label classes can be configured separately, with different labelling properties and different filters applied to the layer geometry for each class. Keep in mind that the labelling expression uses SLD grammar, while the geometry filter is applied using SQL statements, as defined by GDBMS.
The dialog box below shows how SQL statements can be entered for each of the label classes. These statements act as filters that determine which of the layer's features the class is applied to.
Here is an example of how this SQL filter is used:
Regardless of which advanced labelling method is chosen, there are some options that are common to all three methods. These options provide a great degree of control over the configuration of the labels.
These options are accessible via the buttons on the labelling tab of the Layer properties dialog box and are described below.
The 'Properties' button provides access to a large number of label options.
Clicking this button opens the dialog box shown in the figure below:
The following properties can be set in this dialog box:
Name
Font type
Font colour
Text size (fixed size or adjusted to fit on text area)
Label expression (one or more)
This is where the actual label is specified. The possibilities are:
Label all features / filter features with a SQL statement
The SQL filter allows the user to apply the defined label to certain features only.
Background style
Select a style (picture) as a background for the labels. Clicking the 'Select' button opens the following dialog box:
When gvSIG is installed, the installer automatically creates a directory called 'Styles' in the directory /user/gvSIG/. This is where all the label styles are saved (by clicking the 'Save' button).
Once a label style has been selected, it is possible to modify its properties by clicking the 'Properties' button. This opens a dialog box (shown below) where the user can insert one or more text boxes in which to place the different label expressions that have been created. These text boxes can also be moved or deleted and it is also possible to upload a new image from disk.
Note: It is not possible to apply a background style if the label orientation is set to "Following the line" (see the Placement section below).
Clicking the Placement button opens the Placement properties dialog box where the following properties can be configured: location, orientation, duplicates, etc. The options available in this dialog box will depend on the geometry of the layer in question (point, line or polygon):
Point layer
If the layer is a point layer, the following options can be configured:
This options allows the user to place the labels on top of the points, or else to offset them around the points.
In the latter case, the label position can be selected from pre-defined placement configurations, which are accessed by clicking the Change location button. This opens the Placement priorities selector from where existing placement styles can be selected. It is also possible to modify a placement style by highlighting it and clicking the Properties button:
By using the tools on the right and applying them to the location grid on the left it is possible to set the label position priority relative to the point:
1 = High precedence
2 = Normal precedence
3 = Low precedence
0 = Prohibited
Here it is possible to choose between 'Remove duplicate labels' (eliminate any duplicate labels and only draw one label per feature), 'Place one label per feature', and 'Place one label per feature part' (in the case of multipoint features).
Line layer
For line layers the following options are available:
The label can be oriented horizontally, parallel or perpendicular to the line, or can be set to follow the line.
The label can be placed above, on or below the line.
Place the label at the beginning, middle or end of the line, or at the best position.
The options here are the same as for point layers (described above).
Polygon layer
If the layer is a polygon layer, the Placement properties dialog box provides the following options:
Labels can be set to be always horizontal, or else to follow the orientation of the polygons (always straight). There is also an option for fitting the labels inside the polygons. This last option is used to ensure that labels are placed inside polygons even if they have islands, or are U-shaped.
These options are the same as for point and line layers.
Multigeometry layers
In the case of multigeometry layers (dwg, dxf, gml...) the Placement properties dialog box contains a tab for each of the three geometries (points, lines, polygons). These tabs are identical to those shown above.
Clicking the 'Visualisation' button opens a dialog box which allows configuration of the range of scales at which labels will be shown.
The user can choose to use the same scale range as the feature layer (set under the General tab of the layer properties dialog), or else can specify a scale range at which the labels will be visible (this scale range is independent of the range applied to the geometries of the layer).
In the example shown above, labels in the view are only displayed between the scales of 1:500000 and 1:1000000.
Finally, there is a check box that controls whether labels may overlap or not.
If this box is checked then all labels are drawn, even if they overlap each other. If this box is left unchecked, only non-overlapping labels are drawn and all overlapping labels are eliminated.
In addition to static labelling and user defined advanced labelling, there is a third type of labelling, namely Single Labelling, which can be accessed via the following icon on the toolbar:
This type of labelling supplements the existing functionality of annotation layers. In fact, single labelling allows the user to create personalised annotations that have not been possible till now.
The result is an annotation layer, of type shape, plus a file with a .gva extension.
This type of labelling acts only on the geometry that the user has selected in the gvSIG View.
As with advanced labelling, valid label expressions can take on a number of forms:
The advantage of Single Labelling over static or user defined labelling, aside from the availability of the many annotation layer labelling options, is that individual labels can be modified and/or moved after they have been created. This is because the labels are in a new, independent layer that can edited just like any other vector layer.
The steps for using this type of labelling are described below:
Configure the annotation properties:
From the main window of this tool, the user can set some basic properties that will apply to the new annotation labels (default annotation properties can be defined in the Annotation properties section of the gvSIG Preferences).
Configure the target annotation layer:
As shown in the following dialog box, it is possible to open an existing annotation layer from the hard drive, create a new one in the specified location, or to select one that has already been loaded into the View:
Define a labelling expression:
Activate the source layer in the ToC, click the Set labelling expression button and then define an expression in the text box next to the layer name.
An example of this step is shown below:
In the View click on the features that need to be labelled.
In this way, labels are inserted into the View as each of the features is clicked. The labels are drawn according to the label properties set above.
Finally, opening the Layer properties for the annotation layer reveals that a new 'Annotation' tab has been added to the dialog box.
In this tab it is possible to configure a number of annotation options:
SELECT ALL
This tool is enabled when one or more vector layers are active in the TOC. The tool selects all the geometries (features/elements) in the active vector layers.
The tool is accessed via the menu:
The tool is not available if the layer is being edited.
SELECT BY POLYLINE
This tool is enabled when there is at least one active vector layer in the TOC.
This tool selects those geometries of the active layers that intersect the polyline defined by the user.
The tool can be accessed in two ways:
With the tool selected, move the mouse over the View and enter a series of clicks to define the polyline. Double-click to end the polyline.
You can use any mouse button to define the points of the polyline, including the final point.
If another polyline is created while holding down the Ctrl key then the geometries thus selected are added to those already selected. If, while doing this, a previously selected geometry is selected again then it will be deselected.
SELECT BY CIRCLE
This tool is enabled when there are one or more active vector layers in the TOC.
This tool selects geometries (features) of the active layers that intersect the circular area defined by the user.
The tool can be accessed in two ways:
In the View click the mouse at the centre of the circle and then move the mouse outwards to define the size of the circle. Click once to finish drawing the circle.
Another circle can be defined while holding down the Ctrl key to add new geometries to those already selected. Previously selected geometries selected again in this manner will be deselected.
SELECT BY BUFFER ZONE
This tool is enabled if there is at least one active vector layer in the TOC.
"Select by buffer zone" tool enabled if there are active vector layers in the current View and these layers have plane coordinates.
"Select by buffer zone" tool disabled if there are no active vector layers in the current View with plane coordinates.
This tool selects geometries of the active layers that intersect buffer zones around selected geometries.
The tool can be accessed in two ways:
When the tool is selected the following configuration panel is displayed:
The new layers are named as follows:
Example
Let's look at a typical example using the "Select by buffer zone" tool and four layers:
http://www.mma.es/secciones/biodiversidad/banco_datos/info_disponible/zip/zepa41.zip/
http://www.mma.es/secciones/biodiversidad/banco_datos/info_disponible/zip/lic41.zip/
WMS Server: http://www.idee.es/wms/PNOA/PNOA/
Layer: PNOA
Style: Default
Format: image/png with transparency and SRS=23030
Now select the bird special protection area called "Tierra de Campiñas", which belongs to Valladolid, Ávila and Salamanca. Also select the Site of Community Importance called "Montes Torozos y Páramos de Torquemada – Astudillo" in Valladolid.
Finally, we want to find the areas of type "lic" and "zepa" close to (up to 15 km) the selected areas so that, for example, they can be taken into account in a future second phase involving work to protect birds.
The following settings have been applied:
The result is shown in the following screenshot. The buffer zones can be turned off so that the selected areas can be seen.
Click the "Show Details" button below the progress bar to show information on the steps that have been performed, including failures.
Sample output from the above process:
Selection is applied to each active layer that meets the requirements.
If the "Multi-layer selection" option is active, then for each buffer zone selections are applied to those layers that also meet the requirements.
If the projection of the layer is not the same as that of the View, an internal reprojection is performed in order to compute the buffer zones. The projection is later restored.
A shape layer is created (one for each active layer that meets the requirements) for storing the buffer zones. The location of each new layer is shown in the line beginning "Creating temporary file".
If the "Add buffer zone layers" option is selected, then the temporary layers are created and added to the TOC, symbolised with a unique symbol and with transparency.
If an active layer is not projected, then the applied selection is discarded.
If a failure occurs, the user is alerted and the selection process is terminated.
If the process is cancelled, the previous selection state in the affected layers is restored.
You can select one or several elements or items by making either a graphic request or an alphanumeric request.
The selected data are shown in the view in the colour you have configured (by default this is yellow).
You can access the different ways of selecting elements by going to the tool bar or by going to the “View” menu and then to “Selection” as long as the layer you wish to work with has already been activated in the ToC.
This is the basic selection method and consists of clicking on the element you wish to select.
This allows you to select the elements which are partly or wholly located inside a rectangle.
To define the rectangle, place the cursor point over the position you wish to start to draw the rectangle in, left click on the mouse and hold the button down until you have defined the area you wish to select.
This allows you to select elements which are partly or wholly located inside a polygon.
To define this polygon, place the cursor in the part of the view you wish to draw the selection polygon in. Left click on the mouse in the view to add the polygon vertices.
When you have finished, double click on the mouse. All the elements which are located inside the polygon or which intersect with any of its sides will be selected.
You can access this tool by going to the “View” menu then to “Selection” and “Selection by layer”. It allows you to select elements in the active layer based on the selection made in another layer.
The options available using this tool are:
An example of how to use this tool consists of selecting the cities and towns of the Valencian Region whose municipal boundaries are affected by flood risks.
We start with a shape file with the areas of the provinces in the Valencian Region which are subject to flood risks.
Then the layer corresponding to all the cities and towns in the Valencian Region is added. Pre-select the full flood risk layer.
We go to the “Selection by layer” tool. Use the “Intersect with” option in the first pull-down menu, “Select items from active layers that are:…”.
Use the “riesgo_inundación_25000_completo” option in the second pull-down menu “Selected items of a layer”.
We can now click on “New set” and the layer with the new selection will appear.
You can access this tool using the following button:
gvSIG allows selections to be made using requests (filters). Selecting elements by attributes allows you to define exactly what you want to select, including several attributes, operators and calculations.
Requests can be made using logical operators, such as “equals” “more than” “different from”, etc.
If you press the “Filter” button in the tool bar, a dialogue window will appear to define your request.
1.Fields: Double click on the field you wish to add to your request from the “Fields” list in the layer.
2.Logical operators: These allow you to insert a logical expression into your request by clicking on them.
3.Values: This shows a list with the different values the selected field has. If you wish to add a value to the request, double click on it.
4.Request: This is the window which represents the request to be made. You can write here directly.
5.Selection buttons: These buttons make the request using:
New set (deletes any previous selections).
Add to set (adds the elements selected by the request to the existing elements).
Select from set (makes the request from the selected elements).
When you have made your selection, you can click on the following button in the tool bar
or you can go to the “View” menu then to “Select” and “Invert selection”
and invert the previous selection as shown below.
If you click on this button, the selected element set will once again become empty. You can also access this option by going to the “Layer” menu then to “Clear selection”.
NavTable is a gvSIG extension to display in an agile way the alphanumeric elements of vectorial layers. It allows seeing the features of an element in a vertical table besides editing, navigating and quick filtering the values of a layer.
NavTable is released under a GPL v3 license. It has been created by CartoLab, the Cartographic Laboratory from University of A Coruña. Feel free to send us comments, suggestions, bug reports, etc.
To activate NavTable you must select a vector layer in the gvSIG ToC (Table of Contents) and click the button NavTable .
NavTable interface has the following areas:
NavTable can be used for editing and display alpha-numeric tables, which have no associated geometry. For these cases, NavTable icon in the toolbar will be blue . The title of the NavTable window for tables without geometry has a '*' to distinguish it from normal tables.
NavTable scrolls through the records and features in a friendly way. You will find the navigation bar at the bottom of NavTable's window.
With these buttons you can:
If you are working in the central area of NavTable (click on any row) you can use the buttons “right”or “left”, “home” or “end” to change the record that you want to see.
If you click on the checkbox "selected" the navigation buttons will work only for features that are previous selected. If a feature is selected, the bottom area of the NavTable Window will be highlighted in yellow. In between parentheses the number of selected records can be seen next to the whole number of records.
In this image you see an example explaining how this function works: record 8 for a layer with 20 records is displayed where 7 records are selected.
If the checkbox "selected" is activated without any selected feature, all records will be shown empty and the box will not display any number. and .
The option "select" is another interesting tool you can find next to "selected" in the Nav Table menu. If you activate the checkbox next to "select", the attributes you are visualizing will be selected and highlighted in the view. In the case that other features were selected, this option will turn them unselected and will select only the register you are visualizing.
On top of the NavTable Window there is the button "Filter" . If you press it, a dialogue window will appear in which you can define exactly what you want to select (attributes and calculations). If you click on "clear selection" all selections will be turned off and no features will be selected.
If you click on the zoom button the feature will be displayed in the center of the view, referring to the record you are working with at that time. The scale of the view will be changed to have a good visualization of the data. In case you are working with a point layer, a scale size will be chosen that allows to see also the surroundings of the point.
With help of the button "always zoom" next to the checkbox "select", Navtable will zoom to each feature referring to the record you are visualizing. If you click on "fixed scale" as well, Navtable will zoom to the feature and display it in the center of the view, but the scale will always remain the same. It is possible to change the scale value introducing a new one in the "scale bar" of gvSIG. This is shown on the buttom right of the gvSIG view, next to where the coordinates are displayed.
Tip: The options "always zoom" or "fixed scale" together with "select" is a very interesting way of navigate through the features of a layer.
Navtable offers you a comfortable way to make quick filters. If you want to use this functionality you must select a row in Navtable which has one of this attribute types: number, string or boolean. If you click on the right button of your mouse a new menu will be displayed which shows you the different options to define filters.
If the selected field is of type "string" one of the following options will be shown:
If you want to use the quick filter of Navtable on a numeric field you will have these possibilities:
Regarding boolean fields the filter options are the followings:
If there are selected records the "clear filter" option can be activated to delete the current selection. Each time you use Navtable´s quick filter option a new selection will be made and the actual one will be cleared.
Notice: You should consider that NavTable will show you an empty record if you use a filter and you have to activate the checkbox "selected". Every feature has the condition you are looking for including the expression you have defined for the filter.
Warning: if there is a great amount of records inside the table, the processing of the Navtable filter operations could take a long time (like in gvSIG filter itself). Please consider that there is a known bug in gvSIG when using filters with decimals in numerical fields and the "equal to" operator.
Filter for date fields have not yet been implemented in Navtable.
The main new functionality in Navtable is that you don't need to start the editing mode for a layer if you want to edit it. You should follow these steps to edit the table:
After that, the new value will be saved. It's important to consider these special cases if you want to save the edition:
With Navtable it is also possible to use options for advanced editing. For example you can copy and paste records. For that you should select the record you want to copy first and click then on the button "copy selected feature" . The data will be modified when you click on the button "save".
Removing records
It is possible to delete the record you are visualizing with Navtable if you click on the button "delete feature" . If this record has an associated geometry feature (graphical element), this one will be also deleted.
Adding records to alphanumerical tables
For tables which aren't associated to a layer, Navtable has this button . If you click on it, after the last one of the table a new record will appear.
As you know, the dbf format doesn't allow field names with more than 10 characters. This limitation could be solved using alias for these fields. This option is also available for layers stored in a geodatabase.
If you wish to use this functionality you will need to create a text file with the same name as the layer in which you want to use "alias" names. Save this text file in the folder "alias" that was created when installing Navtable.
When installing gvSIG, a folder with the name gvSIG will also be created:
On Windows it is usually installed here "C:Documents and Settingsuser"
On GNU/Linux you will find it here: "/home/user/gvSIG"
When installing Navtable, a folder with the Name "Navtable" is saved to the "gvSIG" folders. At the Navtable folder you will find the "Alias" one, where you should save the text file mentioned above.
In this file you can define long names or alias for the field names.
Name_original_field=long_name
It's only necessary to describe a row for the fields you want to define an alias name for. The order of the lines isn't important, that means, you don't need to follow the same sequence like the field's names of the table.
When Navtable is opened, the according "alias" text file will be found automatically. If new names for the fields are available there, Navtable will use these ones instead of the original names.
Example: There is a dbf file with the following fields:
We define an alias text file with the same name as the shape file: Afg_district.alias in this case. In this file we will write the following text:
prov_code=province code distr_code=district code
This file Afg_district.alias will be saved in the same folder as the file Afg_district.shp. Now we can open the table of this layer with Navtable and can see the following:
Important for Windows:
Windows doesn't show the file extension by default. For this reason for a new alias text file the name of the file will be probably name_layer.alias.txt and Navtable will not be able to read this alias file.
In order to have a correct result for this functionality we recommend you to deactivate the option hide hidden files and folders. You can make this in Windows Explorer: Extras > File Options > View > Advanced Settings > Hidden Files and Folders
NavTable is hosted by the OSOR Forge [1]. On this page you can find useful information about the project and also related documents, mailing lists, bug reporting system, etc.
In the section "Future Work" on the project website you will find some of the things we want to incorporate in NavTable in the near future.
[1] | http://navtable.forge.osor.eu/ |
There are two types of edition. Firstly, there is the graphic edition of elements which creates, modifies and deletes graphic elements and secondly, the alphanumeric edition of elements which creates, modifies and deletes data associated with the elements.
gvSIG's CAD extension can make complex drawings from basic elements, such as lines, circles or polygons.
Features can be duplicated or modified as you wish by using actions such as copying or rotating.
To carry out these tasks, we need to know what type of layer is being edited. Once we know the type of layer, we can see which tasks can be carried out.
When the “Start edition” option is selected, the edition tool bar buttons appear. Only the buttons which can be used in the layer being edited are active. Thus, for example, if a points layer is being edited, the selection, move and point insertion tools are enabled
whilst if, for example, the layer is a line layer, all the tools are enabled except the point insertion tool.
Another tool which appears when an editing session is started is the command console or message and command area, located at the bottom of the graphic area. This tool allows you to input commands via the computer keyboard. These are then carried out in the graphic area.
If you select the “Layer” menu option then go to “Start edition”, the application window shows the following areas.
Menu bar: Menus with which you can access the application’s functions. The contents will change according to the situation, thus, for example, the "Geometry" menu will only appear when a layer is being edited.
Tool bar: Bar which shows the drawing command icons.
Graphic area: This takes up the majority of the display and is where the layer which is being edited is shown.
Command console: This is where the editor’s PROMPT is located (active line of the console). This means that the programme is ready to receive commands. When a command is input, the corresponding process is run and the messages, information or parameter requests are shown.
Status bar: This shows the scale, the measuring units, the absolute coordinates of the cursor position (X and Y) in these units and the projection.
Firstly, enable the layer you wish to edit by selecting it in the ToC. Place the cursor over it and right click on the mouse. The contextual menu appears. Select the “Start edition” option.
N.B.: More than one layer can be edited and you can alternate what you do with them. However, whatever you do will only take effect on the active layer. To change the layer you are working on, select it in the ToC.
When you finish your editing session, go to the “Finish edition” option in the contextual menu.
N.B.: The application will create a projection of the object you are working on to help you with the graphic editing. This will allow you to get a visual idea of the obtained result. The object projection will be shown in red.
The figure shows how a projection of the figure copied in a different colour is created during the copying process. This projection allows you to specify exactly where you want to place the new object in the graphic area.
There are three general mechanisms for the application to run user commands. The first mechanism is to select the command by clicking on the corresponding button in the tool bar. The second option is to activate the tool by selecting it in the menu bar (normally in the “Geometry” tab) and the third and last mechanism is by inputting commands in the command console using the keyboard.
The edition tool bar appears when a layer is being edited. The tool bar icons will be activated according to the type of layer being edited.
When an editing session starts, a new menu called “Geometry” appears in the bar from which we can access the different tools.
The commands, options, messages or parameter requests the programme runs are shown in the area called "Command console".
The bottom line of the command console is called the "line command" and shows the action the application is running. The command console area size can be increased or decreased. To modify its size, place the mouse pointer on the separation bar between the command console and the graphic area, left click on the mouse and move the bar up or down until it is situated in the required position.
When you have finished, let go of the mouse button. You can also hide the command console by clicking on the down-facing triangle situated at the top right of the console. To show the command console, click on the upward-facing triangle.
To input commands into the command console using the keyboard, write the name of the command or order and press “Enter”. Commands can be input in capital or small letters. When a command is input, a window or a set of options associated with this command appears.
For example, if the “rectangle” command is input, a window will appear in which the definition of a corner point is requested. When the point has been inserted, a second point or “C” is requested to indicate that the object will be a square.
When a layer editing session has been started, if you right click on its name in the ToC, a contextual menu appears in which, among other things, you can access the “Edition properties” to configure them.
You can configure the “Snap tolerance” in the first editing page. “Snap” or “Snapping” is the process of moving an element until it coincides exactly with the coordinates of another element. If the “Snap tolerance” is 4 pixels, two elements which are the same distance or closer than 4 pixels will be joined in a common coordinate.
You can do element snapping between layers by enabling the corresponding check boxes in the “Selected” column.
You can modify the values of the "Maximum features edition cache" column to accelerate the snappings and handlers being edited. This is the maximum number of geometries you wish to work with in the cache.
If you select "Grid" in the tree on the left, this will allow you to configure the grid's properties.
The grid is a point pattern which extends over the whole of the graphic area. It is useful in that it allows you to line up objects and calculate the distance between them.
You can enable the “Show grid” and “Adjust to grid” check boxes and edit the distance between the grid points.
When the grid is shown, the graphic area will look like this.
You can configure “Flatness” by selecting the corresponding option in the tree on the left.
In gvSIG, a circle or any curved geometry is made up of straight sections. The flatness number you specify will define the maximum size of these sections.
The command stack is a tool which allows you to undo/redo several commands at once. It also provides information about the commands carried out, such as the name and time they were carried out.
The command stack can be activated in different ways.
By clicking on the tool bar icon shown below.
By selecting the menu bar option "File" then going to "Command stack". The command stack saves all the commands given on the layer being edited since the last time it was saved.
You can select the commands you wish to undo in the slider control. You can move the slider control up or down until you have positioned it in the order in which you wish to continue working.
You must remember that you cannot undo one specific command, you have to undo all the commands given up to that point, i.e. we have to go to the last step we wish to keep and continue editing from this point. For example, let us suppose that we take eleven steps and when we reach the eleventh step, we realise that step number six is incorrect. We cannot simply go to step 6 and cancel it, we have to undo the eleventh, tenth, ninth steps, etc. until we get to the fifth one. The advantage of using the command stack is that we can undo all the changes at once without having to undo them one by one. In addition, we know which steps we are undoing.
You can access Undo/Redo from the edition tool bar by clicking on the corresponding icon.
The button with the left facing arrow allows you to undo the last step. The button with the right facing arrow allows you to redo the last step you have undone.
Editing commands are the set of orders used to edit or modify a drawing. More specifically, they cover all the processes and mechanisms required to modify and work with what has already been drawn.
gvSIG uses three different ways to run these commands.
This makes a copy of the objects you have selected. The elements copied will keep the same size and orientation as the originals. To access this tool, click on the “Copy” button in the tool bar
or go to the “Geometry” menu bar, then to "Modify" and "Copy".
The copying process is basically the same as the move process but the source objects do not move from their initial positions. New objects are created in the new location which are identical to the originals in size, shape and in the distance between them.
To make a copy, when the objects to be copied have been designated, two points need to indicated, the base point and the move point.
As with the rest of the tools, a projection of these objects will be shown in the view to specify the view location the copied objects are to be inserted in.
When the copied objects are situated in their location, click on the view again to set their position.
To copy objects from the command console, write the command "copy" when you have selected the objects you wish to copy, input the first move point and then the second point.
For example, when the command and the first move point have been input (30,40), the projection of the figure being copied appears. Input the second move point, (60, 40 in the example), and the new identical element will appear in the defined location.
This tool allows you to make a drawing which is symmetrical to the selected one. You can access this tool by clicking on the “Symmetry” button in the tool bar
or by going to the “Geometry” menu bar, then to “Modify” and “Symmetry”.
To obtain a symmetrical drawing in gvSIG, firstly select the element and then select the “Symmetry” option. Then, click on the display graphic area to insert the first symmetry axis point. gvSIG will then create a red projection of a figure which is symmetrical to the selected figure. You can then input the second point the symmetry axis will pass through by clicking on the graphic area again.
If you wish to run the tool from the command line, firstly write the command “symmetry”.
Input the first point the symmetry axis will pass through and press “Enter”. The console will then ask you to input a second point this axis has to pass through.
Input the point and press “Enter” again.
The console will ask you if you wish to keep the source object, write “Y” if you wish to keep it and “N” if you do not.
You can use this tool to rotate the selected objects by taking a base point as the centre. You can activate this tool by clicking on the “Rotate” button in the edition tool bar
or by going to the "Geometry" menu bar, then to “Modify” and “Rotate”.
To rotate an element, first place the base point by clicking on the graphic area. Move the mouse, with the help of the projection that gvSIG uses to the effect, until the new position has been established.
Left click on the mouse in the view to define this point.
If you wish to rotate an element from the command console, select the object to be rotated, write the command “rotate” and input the first move point.
Then input how much you wish to rotate it in sexagesimal degrees.
The object will be rotated clockwise if you write a negative angle and anti-clockwise if you write a positive angle.
This tool allows you to move the selected objects from one point to another in the view by indicating a move vector. You can use this tool by selecting it from the tool bar by clicking on the "Move" button
or by going to the “Geometry” menu bar, then to “Modify” and "Move".
If you wish to move an element, select the object you wish to move and then activate the “Move” option. Click on the graphic area to define the move point.
gvSIG will create a red projection of the elements it is moving which can be used as a guide to position them in their new location.
When the element is located in the desired position, left click on the mouse again to define the new position.
To use the “move” command from the command console, write the command “move”. The console will show a message requesting a move point. Input the point.
Then input the second move point. Press “Enter” and the object will move to its new position.
To select one of the drawn objects in the layer we are editing, click on the "Select" button in the tool bar,
or go to the “Geometry” menu bar and then to “Select”.
Then click on the object you wish to select.
You can access this button in the tool bar,
or by going to the “Geometry” menu bar then to “Complex selection”.
When the “Complex selection” tool has been selected, right click on the mouse in the graphic area. The following contextual menu will appear.
Click on the option you wish to use to select the elements.
If you use the “Inside circle” option you can delimit a circle so that the elements you wish to select remain inside this area.
The selection result corresponds to the following image.
You can also write the “select” and “complex selection” commands in the command console. Command: “select” Write the command “select” in the command console.
When a message appears in the command console requesting you to add the selection point, input the coordinates of the object you wish to select.
If there is an object in the defined coordinates, it will be selected.
Command: “complex selection” Write the command “complex selection” in the command console and when the selection options appear, write the desired option.
The options are shown with their names, and in square brackets ([]) the text you need to input in the command console to use the option.
If, for example, you wish to select the features that are in a polygon area, you need to write “complex selection” in the command console, press “Enter” and then select the “IP” option.
This allows us to indicate the coordinates of the vertices which will make up the polygon (when the coordinates of each of the vertices are indicated a polygon is drawn in the drawing window) and when it is finished, the elements which are inside it are selected so you can work on them.
The following image shows how a selection option is input.
The following figure shows the definition of the selection polygon in the graphic area.
When the polygon is finished, the elements contained inside it will be selected so you can work on them.
This tool allows you to go through the vertices of the selected objects easily and carry out other actions, such as adding a new vertex or deleting the vertex which is being edited.
To access this tool, click on the “Edit vertex” button in the tool bar.
You can also access the tool by going to the “Geometry” menu bar then to “Modify” and “Edit vertex”.
To edit the vertices of a figure, select the figure and click on the “Edit vertex” button in the tool bar.
A red pointer appears in one of the vertices of the figure you are editing.
If you right click on the mouse, a menu will appear from which you can select the actions you wish to carry out.
If you click on the “Next” option, the cursor will move to the next vertex of the selected object.
You can also access this tool from the command console. To do so, write the command: EDIT VERTEX.
If, for example, you wish to go through the vertices of an element, write the command and input the parameter “S” (next).
To go to the previous vertex, write the parameter “A”.
To delete a vertex write the parameter “E” and press “Enter”.
To add (insert) a vertex, write the parameter “I” and press “Enter”.
The X and Y coordinates of the new vertex will then be requested (remember that these coordinates should belong to the polygon perimeter).
Input the data in the console and press “Enter”.
A new vertex will be created in the figure.
This tool allows you to create a polygonal feature inside an existing feature.
You can access this tool by going to the "Geometry" menu then to "Modify" and "Internal polygon”
or from the following tool bar button:
You can create an internal polygon, either graphically or from the gvSIG command console.
If you wish to create the polygon graphically, the polygon element layer must be in editing mode and you must select the polygon on which you wish to use the selected tool.
Activate the "Internal polygon" tool and place the cursor where you wish to insert the first vertex.
Then insert the vertices of the polygonal feature you wish to create. When you do not wish to insert any more vertices, right click on the mouse and select “End” from the contextual menu that appears.
The corresponding internal polygon is created.
You can also use this tool from the command console. To do so, write the command “internal polygon” in the command line.
Then input the X and Y coordinates of the points which will correspond to the vertices of the new polygonal feature. When you have finished, write “e” to close the new internal polygon you have created.
This command can be used to modify the size of the selected objects. Select this tool by clicking on the “Scale” button in the tool bar
or by going to the "Geometry" menu bar then to "Modify" and “Scale”.
There are two ways of scaling, either by indicating a scale factor or by reference. Scaling by “Scale factor” To graphically scale elements using a scale factor, select the objects whose size you wish to modify, activate the scale tool and set the base point. The application will create an image which will give you a reference point about the size of the objects you are modifying.
As you get closer to the point you have set as the base point, the elements you are working with will get smaller, whilst the farther away you move, the bigger they will get.
When the objects are the desired size, click on the drawing window again. The same scale factor is applied for both the X and Y coordinates.
To graphically scale using the "Reference" option, select the objects and activate the “scale” command, then right click on the mouse inside the graphic area to show the tool’s contextual menu.
Select the “Reference” option. Indicate the points on the reference line and on the scale line as the messages in the command console are shown.
You can also use the “scale” command in the command console. When you have selected the objects to be scaled, write the command “scale” and then input the base point as shown in the following figure.
To increase the size of the objects you must input a scale factor which is greater than 1.
If you wish to reduce the size of the objects, the scale factor must be between 0 and 1.
If no value is input, gvSIG will use the scale factor 2 by default.
Scaling by “Reference” If you wish to scale using the "Reference" option, select the elements you wish to scale, choose the base point, then input the letter "r" into the command console to indicate that scaling by reference will be used.
Specify the source point and the final point of the reference straight line and then input the source point and final point of the scale line.
This tool is used to split a polyline into different segments.
To split a polyline, start editing the line layer and select the polyline:
Once the polyline has been selected, activate the explode tool to split the polyine into segments. Verify that each of the segments can be selected as a line instead of as a poyline.
The Join tool combines two or more geometries from the same polygon or line layer into a single multipolygon or multiline geometry. The tool can't be used with point layers as this would create a multipoint shape, which is already a shape-independent type.
In order to use the tool the layer must be in edit mode. Use the Edit Selection tool to select the geometries to be joined, making use of the Ctrl key to select multiple geometries.
Once the geometries have been selected click the Join tool to join the geometries into a single record in the table. It should be noted that the attributes of the geometry with the higher value 'Id' will be retained, i.e. the one that is drawn last.
This tool splits geometries from the same layer. To perform the division, first switch the layer to edit mode and then use the selection tool to select the geometry to be split.
The "Split geometries" tool can be found on the editing toolbar.
Once the geometry has been selected,
click on the Split geometries icon. In the command window at the bottom the following message appears: "Insert first point." To split the geometry, draw a line where it should be divided. This is done by inserting a series of points that define the line along which the division is performed.
Double-click to finish digitising the line and to perform the split. Then use the selection tool to verify that the geometry has been split into different parts.
The split operation results in the creation of separate records for each part in the attribute table, rather than the single record that existed prior to the split.
The matrix command allows an item to be copied as many times as desired in a particular arrangement. The matrix can be of two types: rectangular matrix or polar matrix.
Right-click the layer you want to work with and select Start editing. Select an item, either a point, line or polygon, and then click on the Matrix tool. In the command window at the bottom of the screen the following instruction is displayed: Insert selection point. Clicking on the item opens the Matrix window.
Select the number of rows and columns by typing the values directly into the appropriate boxes.
The linear arrangement of the elements can be defined by typing the values manually, or by using the and icons to draw a direction vector or to define the extent of the matrix, respectively. In the second case, there are icons for defining the extent for each axis.
The matrix can be rotated by manually entering a rotation value or by clicking the icon and drawing the rotation angle in the View.
Using the values defined in the Matrix Window shown in the image above would produce the following matrix:
In the case of a polar matrix enter the source of the "system", the number of elements and whether the items should be rotated as they are copied.
Using the copy/paste tools you can copy and paste geometries from one layer to another. These layers may be in the same view, in different views, or even in two different instances of gvSIG.
Links have been created to complimentary tools for copying and pasting features between vector layers of the same type.
As the mechanism used to implement this tool makes use of the system clipboard, the source and destination layers can be either in the same view, in different views, or even in different instances of the application.
Copy items between layers with the editing session active.
This tool is used to copy features selected in a vector layer to the system clipboard.
The tool can be accessed in three different ways:
Through a button on the toolbar:
Through the Layer menu in the menu bar:
Through the context menu that appears when you right-click on the active layer in the TOC:
This tool will be displayed and activated when the active layer is a vector layer with selected features.
Paste features.
This tool is used to paste to paste to an editable layer features that have previously been copied to the system clipboard.
The tool can be accessed in three different ways:
Through a button on the toolbar:
Through the Layer menu in the menu bar:
Through the context menu that appears when you right-click on the active layer in the TOC:
This tool will be displayed and activated when the active layer is a vector layer in edit mode and of the same type as the layer from which the features have been copied. When used to paste geometries from the clipboard to this editable layer, fields in the associated table will be filled if they have matching names and types.
This section deals with gvSIG’s drawing commands. The rest of the commands can modify the elements but with the exception of the “copy” command, they cannot create new features and we thus require the actual drawing commands to do so.
gvSIG includes basic drawing elements, such as lines, circles or polygons, which can be used to obtain any complex drawings.
All the elements you wish to insert need one or several points to be specified so that they are correctly placed in the drawing.
Remember that the tools to insert new elements vary according to the type of layer being edited. Thus, for example, a point can only be inserted in a point-type layer and is not supported by any other type of layer.
You can activate this tool by clicking on the “Point” button in the tool bar.
You can also activate it by going to the “Geometry” menu bar then to “Insert” and “Point”.
A point can be referenced in two ways:
The coordinates can also be:
Inputting Cartesian coordinates.
Input the X and Y values separated by a comma (X,Y). The X value is the positive or negative distance, in units along the horizontal axis, the Y value is the distance in units along the vertical axis.
The values used to designate the points can be whole, decimal, positive or negative.
The absolute coordinate values are based on the source (0,0), which is the place the X and Y axes intersect. For example, the point 25,7 designates a point located 25 units away from the source on the X axis and 7 units away on the Y axis.
The relative values of the coordinates are based on the last input point. Use the relative coordinates when you know the coordinates of a point based on the previous point.
To designate a relative point, place the (@) symbol in front of the coordinates.
For example, the @1,2 coordinates determines a point 1 unit away on the X axis and 2 units away on the Y axis from the previously designated point.
Inserting polar coordinates
To input polar coordinates, indicate a distance and an angle separated by the < symbol. For example, to designate a point 5 units away from the previous one with a 45 degree angle, write @5<45. The angles increase anti-clockwise and decrease clockwise. To move anti-clockwise, indicate a negative angle. For example, the 1<315 position is the same as the 1<-45 position.
You can activate this tool by clicking on the “Multipoint” button in the tool bar
or by going to the “Geometry” menu bar then to “Insert” and “Multipoint”.
You can use the multipoint tool to create a drawing made up of a series of points which function as a single feature (i.e. we only need to select one of the points for the rest to also be selected). You need to bear in mind that this is not thus a points layer but a multipoint layer.
To insert a multipoint in the graphic area, select the tool and place the cursor over the part of the graphic area you wish to place the point. Left click on the mouse to insert the point. Repeat this step as many times as you wish. When you have finished adding points, right click on the mouse. A contextual menu will appear. Click on “End” to finish the new multipoint feature.
You can create a multipoint feature from the command console. To do so, write the command “multipoint”. Input the coordinates of each point you wish to add in the console and press “Enter”. To finish the insertion of the new multipoint feature, write the command “E”.
This command allows you to draw a line feature, which is actually a straight line segment. This feature is limited by its initial and final points. The final point may be the start of the next segment. When the first point has been inserted an elastic line appears on the display. You can use the mouse to determine where you wish the final point to go. As with the rest of the editing tools, there are three ways to access line creation. You can go to the edition tool bar and click on the “Line” button
or go to the “Geometry” menu bar then to “Insert” and “Line”.
Place the cursor inside the graphic area and insert the line vertices in the desired points. gvSIG will create a projection from the last inserted point to the mouse pointer which you can use as a reference point to set the points in the drawing. You can also draw a line from the command console. Write the command “line” and then input the coordinates to define the points which delimit the segments which make up the line.
You can also insert the second and/or successive points by defining a distance and an angle. For example, to insert a point 1 unit away from the previous point at a 45º angle, write 1<45. The following image shows how a third point is inserted, after inserting the first and second points, one unit away from the previous point at a 180º angle.
You can draw an arc by clicking on the “Arc” button in the tool bar
or by going to the “Geometry” menu bar then to “Insert” and “Arc”.
Three points are requested to draw an arc. The first and last points mark the initial and final points of the arc and the second one marks an intermediate point through which the hypothetic circle of which the arc is a part would pass. To insert an arc from the command console, write the command “arc”. The three points required to define the arc will be requested one after another.
This feature can be a set of arcs and/or segments combined by the user. You can draw a polyline by selecting the tool from the edition tool bar and clicking on the “Polyline” button
or by going to the “Geometry” menu bar then to “Insert” and “Polyline”.
The polyline allows you to insert straight lines in the graphic area, but these differ from standard lines in that they allow you to insert an arc from the last vertex, to which it will always be located at a tangent, and end the polyline thus creating a polygon. Click on the graphic area in the place you wish the first point of the polyline to be located and insert the following points by left clicking on the mouse in the places you wish to locate them. If you wish to draw an arc, right click on the mouse and select the “Internal arc” option in the contextual menu.
When this option has been selected, gvSIG shows a projection of an arc from the last inserted vertex to the mouse pointer.
If you wish to insert more lines, go back to the contextual menu and select the “Internal line” option.
If you wish to close the figure so that a straight line is drawn from the last inserted point to the first point, select the “Close polyline” option.
To draw a polyline from the command console, write the command “polyline”. Input the coordinates of the source point. Then you can insert the second point or input one of the parameters to draw an arc “A”, or close the polyline “C”. When you have selected the arc option, you can draw more straight lines using the parameter “N”. The following image shows how the polyline draws a straight line from the arc's last vertex to the source, thus creating a closed figure after inputting the parameter “C”.
This option allows you to draw regular polygons which will be handled as a closed polyline. As usual, there are three ways of activating the polygon command. You can select this tool by going to the tool bar and clicking on the "Polygon" button.
The second option way of activating the tool is by going to the “Geometry” menu bar then to “Insert” and “Polygon”.
To graphically insert a polygon in the drawing, select the tool and then click inside the graphic area on the place you which to position the polygon’s central point.
The application will generate a projection of the object. Move the mouse using the polygon projection as a reference point until it is the size you require, and click on the graphic area once again.
You can tell gvSIG if you wish the polygon you are drawing to be defined as inscribed or circumscribed in the circle. By default, the polygon will be inscribed in the circle. To modify this setting, define the central point of the polygon, right click on the mouse to open the contextual menu and select the desired option.
gvSIG also allows you to modify the number of sides you wish the polygon you are editing to have. To do so, select the polygon object and input the number of sides in the command console.
The third way to select this tool is from the command console. To draw a polygon from the command console, write the command “polygon”, specify the number of sides you wish the polygon to have, whether it should be drawn as inscribed or circumscribed (“I” or “C” respectively), and finally insert the radius, which must be delimited by indicating its length in the units in which the view is defined.
This allows you to draw a rectangle by indicating its diagonally opposite vertices. Click on the “Rectangle” button in the tool bar.
You can also select the tool by going to the “Geometry” menu bar then to “Insert” and “Rectangle”.
To graphically draw a rectangle in the layer you are editing, select the tool and place the first vertex in the required position in the graphic area. The application will show a projection of the rectangle you are drawing. Move the mouse, choose the position for the vertex diagonally opposite the one you have already inserted and left click on the mouse to define it.
To work with the command console write the command “rectangle” and then input the coordinates for the first vertex and the diagonally opposite vertex.
A square is simply a rectangle with equal sides. To prevent possible mistakes when drawing the square, the application allows you to create a square based on a rectangle and makes it have equal sides. To draw a square, first select “Rectangle” and insert the first vertex, then right click on the mouse and click on the “Square” option (“Corner”) in the contextual menu.
The following figure shows an example of the creation of a square from the command console. After the first point of the rectangle has been input, gvSIG is told to make the figure become a square by inputting the letter “C”. You can then insert the opposite corner.
If you make a mistake in inputting the coordinates the application will still draw a square by calculating the size of the vertical line (Y axis), using the coordinate specified for the X axis.
This command draws a circle inside the graphic area. You can select this tool by clicking on the “Circle” button in the tool bar
or by going to the “Geometry” menu bar then to “Insert” and “Circle”, as shown in the figure below.
There are two ways of defining a circle. The first option is to define the central point and the radius. Select the “Circle” tool and click on the graphic area in the place you wish to locate the centre of the circle you are drawing. Then move the mouse to increase the radius of the circle until it reaches the required size. gvSIG will, as always, create a projection of the circle as a reference point to show the position of the circle in the drawing. The second way of drawing a circle in gvSIG is to define it by using three points. To access this option to define a circle, first select the tool and then go to the contextual menu by right clicking on the mouse in the graphic area.
There is only one circle that goes through three given points. When you use this option an elastic circle appears. It is defined by these two points and the cursor until we define the third point, as shown in the figure below.
You can also draw a circle from the command console using any of the methods described above for graphic drawing. Write the command “circle” in the command console and press “Enter”. Insert the coordinates of the central point and then the coordinates of the point that will mark the desired radius or length (use the status bar to check whether you are working in metres or another measuring unit).
To insert a circle from the command console by defining three points, write “3p” when the “circle” command has been activated. When you use this option an elastic circle appears. It is defined by these two points and the cursor until we define the third point, as with the case of the graphic drawing of the circle. The figure below shows how to create a three-point circle.
An ellipse is defined by an axis and the length of the second axis to the centre of the ellipse. There are, as always, three ways of selecting the ellipse drawing tool. To graphically draw an ellipse you can click on the “Ellipse” button in the edition tool bar.
The second option is by going to the “Geometry” menu bar then to “Insert” and “Ellipse”.
To graphically draw an ellipse, indicate the initial and final points of the ellipse’s axis by left clicking on the mouse in the corresponding places. When the initial point has been input an elastic line will be shown which can be used as a reference point to mark the final point of the axis. When it has been set the ellipse projection will be shown until the third point which marks the distance to the other axis is defined.
To draw an ellipse from the command console, write the command "ellipse". When gvSIG requests the initial point of the ellipse axis, indicate the point coordinates. It will then request the final point of the axis and finally the distance to the other axis.
This tool is useful for drawing polygons adjacent to existing ones, thus avoiding having to digitise all the vertices along the common boundary between the polygons.
Therefore it it only necessary to digitise the new sides of the polygon; the tool will automatically generate the common boundaries.
Apart from saving digitising or drawing time, this tool also eliminates overlaps and gaps between two polygons sharing a common boundary.
To use the tool first start editing the layer you wish to work with, and then activate the Autocomplete polygons icon .
The new polygon can now be drawn without having to digitise the nodes of common boundaries, as shown in the figure below.
Once all sides have been drawn, double-click the mouse or press "E" (end) to terminate the polygon. The figure below shows how the new polygon has been clipped to the common boundaries of the existing polygons.
gvSIG can create a new layer in the following formats: shp, dxf and postgis.
The tool can be accessed from the “View / New Layer” menu.
Select the “New SHP” option opens the wizard which will help you create the new layer.
The first window of the wizard allows you to choose the name you wish the new .shp file to appear with in the ToC, in addition to the geometry type associated with it.
The second window of the wizard allows you to add all the fields you wish to the attribute table associated with the layer and to define some of the properties of these fields.
To add fields to the table, click on “Add field”. One field is added every time you click on this button.
If you wish to delete any of the fields created, simply select the field and click on the “Delete Field” button. You can edit the rest of the properties from the attribute table in which the fields are defined.
Field name: Place the cursor over the field name (“New field” by default) and write the new name. The maximum number of characters allowed for the field name is 10.
Field length: This allows you to set the maximum number of characters for the field created (at present, this only applies to String-type fields).
Once the structure of the table associated with the shape file has been determined, click on “Next”.
You can save the file in the new window and choose the Reference System for the view the new layer is going to be inserted into by clicking on the button to the right of “Current Projection”.
If other layers have been inserted in the view, this button will be disabled since the view already has a selected reference system.
To save the new layer, indicate the file path to save the file in the text box.
You can also open the search dialogue box to select the file path the new shape file will be saved in. To do so, click on the button to the right of the text box. Write the name for the new layer (remember that this name will appear in the source file of the shape file and that it may be different to the name which appears in the ToC) and click on the “Save” button.
When you have finished creating a new SHP file, it will be added to the ToC.
In addition, the editing tools will be activated to allow you to create the elements of the new layer.
The procedure to create a new DXF file is similar to that used to create a new SHP file, as described in the previous section. This tool can be accessed from the “View/New layer/New dxf” menu.
If this tool is selected, the wizard will open a window allowing you to select a path for the file which is going to create a reference system for the view.
If you wish to create a new PostGIS file, go to the menu “View/New layer/New PostGIS”.
The initial steps to create a new PostGIS file are similar to those followed in the section on creating a new Shape file.
The difference lies in the way the new layer is saved, as this is entered into a PostGIS data base.
Fill in the fields which apply to your connection and click on “Finish”.
A table is part of a data base. It is made up of rows or records and columns or fields which contain the alphanumeric information needed to characterise the elements (polygons, lines or points) which make up the theme maps, cartography in general and graphs. The rows represent elements or objects and the columns represent the variables or attributes associated with each element.
In general terms, there are two types of tables; “internal” tables which are typical of an information layer and are found in the same file and “external” tables which can be added to a gvSIG project. Each element (point, line or polygon) of a layer only has one record in that layer’s table of attributes.
Open a “View” and add the layer you wish to work with.
Remember that to start an alphanumeric editing process in gvSIG, you must put the layer you are working with in editing mode. In order to do this, select the layer in the ToC, go to the “Layer” menu and select “Start edition”. Select the “See table of attributes” button
or go to the “Layer” menu and select “See table of attributes”.
The table associated with the layer will be automatically added to the project.
If you go to the “Project Manager” and select the “Tables” type of document, you can check that the table shown in the view is included as a separate document in the project.
To finish the table editing session, go to the “Layer” menu and select “Finish edition”. When the session finishes a message appears asking if you would like to save the changes. Click on “Yes” to save all the changes made in the table.
This tool allows you to add, delete or rename fields. To access this tool, go to the “Table” menu and select “Manage fields”.
(An error occurs when you try to change the structure of a table hosted in a postgresql data base above version 7.4. To modify the structure, use a suitable data base manager).
When the menu option is selected, a window appears in which the fields of the selected table and the buttons to create a new field or delete or rename an existing field are included.
If you click on “New field”, a new window appears in which some of the properties of the new field to be added to the table can be configured.
Field name: Enter the name of the new field. Type: If you click on the arrow on the right, a pull-down menu appears in which the type of field data (string, double...) can be configured.
Length: Indicate the required length of the field. (The max. length of a string field is 254 charecters).
Precision: Indicates the number of decimals a numerical field must have (only for numerical type fields).
Default value: Indicates the default value for the field when no specific value is defined in the table.
If you wish to use the delete tool (“Delete field”) and the renaming tool (“Rename field”), simply select the field to be modified and click on the corresponding button.
To add a new record to a table associated with a layer, a graphic element must be inserted. When an element is added to the associated table a new blank record appears.
Enter the data for the new entity and press “Enter”.
N.B.: Remember that if you wish to delete the selection, you can go to the tool bar and click on “Clear selection” or you can use the menu bar by clicking on the “Layer” menu and then on “Clear selection”.
N.B.: You can create a new layer with the elements selected in the table if you wish. To do so, close the table, go to the menu bar and click on the “Layer” option and then on “Export to ...”. Then select the format you wish to create the new layer with.
To modify the data of a layer element saved in the table, select the element whose data you wish to modify. The record that corresponds to the selected graphic element is highlighted in yellow in the table of attributes.
Left click on the cell in which the record to be modified is located. The record changes and a cursor appears to indicate that the data can be input.
To remove a record from the table, you must first select the record.
Go to the “Table” menu and select “Remove row”.
The selected record is deleted from the table and the associated graphic element disappears from the view.
gvSIG’s field calculator allows you to perform different types of calculations on the fields of a table (for example calculate areas, perimeters, convert the data in a field from degrees to radians, etc).
To access the field calculator, you must first start an editing session in gvSIG. If you wish to activate the edition of a layer loaded in a view, go to the layer’s contextual menu and select “Start edition”.
If you wish to edit a recently-loaded table, go to the “Table” menu and select “Start edition”.
If you decide to use the field calculator on a “New layer” (for example New shp) which you are going to create (remember that to access this option you must go to the “View” menu and select the “New layer” option), the layer will automatically appear in editing mode when inserted in the view.
Once you have started an editing session, activate the table of attributes on which the operations are going to be performed and select one of the fields (by clicking on the field heading). The following button will then be activated in the tool bar:
This will allow you to access the field calculator.
NB. The first time you open the field calculator in a new gvSIG session, a warning window appears to inform you that the calculator is “Loading operators”. Once this process has finished, the window which allows you to perform operations with the various fields appears.
“Field calculator” Let us look at a simple example to explain how the field calculator works.
In order to work out the area of a series of plots in a layer we have created:
First, open a gvSIG view and load an orthophoto which will be used as a base to determine the location of the plots. Next, select the tool in order to create a new shp file (View/New layer/SHP).
Select a “Polygon” type layer, click on the “Next” option and then create a “Double” type field called “Area”, leaving the default value at 20.
Draw four plots on the orthophoto using the “Insert polyline” tool selected from the tool bar. The image below shows that a record for each of the plots has been created in the table.
Select the field from the table and activate the field calculator.
The following information appears in the “General” tab:
“Field”. This contains the various different fields which comprise the table being worked on.
“Type” of field selected. Access to different commands depends on the type of field.
“Commands” which can be used in the calculations.
The “Information” section shows that:
If the “area” command has been selected in the “General” tab, a brief description will be displayed in the information window.
If the “area” command has been selected in the “General” tab, the information window returns a message with information on the field type (remember that when designing the “area” shape, a Double type numeric field was created in which the area will be calculated).
The “Expression" area displays the name of the column on which the calculation is being performed and a text box for the calculation sentence to be used.
In this case, the sentence included in the expression section is simple (no parameters are required as they are in other expressions which shall be explained later on).
To sum up and conclude this example, once the “area” command has been selected, click on “Ok” and the field created in the table will automatically be filled with the area values of each of the polygons drawn.
The field calculator window has three different sections.
The Information section provides information about the type of field and the commands selected in the “General” tab.
The following information can be found in this section:
Example: In this case the command we wish to use is “log”, which allows us to calculate the logarithm of a field with a numerical value.
The “log (Parameter)” operator indicates that, for example, in order to obtain the logarithm of a field which contains the area data of a plot shp, the word “Parameter” must be replaced by the field we wish to obtain the logarithm of. As a result, the expression will be as follows: log([AREA])
NB. If a table field is selected in the “Field” section of the field calculator, the information window indicates what type of data it is.
NB. In order to input parameters into the “Expression” text box, either double click on the name of the field from the list of fields in the General tab or type in the name of the field, in which case the String expressions input must be placed in inverted commas.
Numerical Value = The result must be String, Double or integer type field data.
NB. If a String field type has been selected, it should be noted that this field type uses string values. If we add two String fields to another String field, the final result is a string and not the result of the operation (for example: 2+2 = 22, not 4).
Boolean Value = A Boolean value returns a true/false answer to a question. If the result of the question is in a numerical field, it would therefore be either “1/0” depending on whether the reply was true or false. Let us look at an example:
We wish to know if there are records in a field which are the same as those in another field. The command which allows us to find this out “==”
If we type the following sentence: [integer] == [double] (double and integer being the names of two fields, each with numerical values), the response according to the type of target field (Boolean or String) can be seen in the image below:
NB. If a new layer is created in a gvSIG view (View menu / New layer), the wizard for this action allows you to specify the “Type of field” on which calculations are going to be performed.
If you are working with a layer and wish to know the field type, simply start a layer editing session, go to the “Table” menu and select “Manage fields”.
This opens a window called the “Field manager”, which allows the fields of a table to be created, renamed or deleted. It can also be used to confirm the field type.
Once the file has been selected, click on the “Evaluate” button to find out whether the expression is correct or not.
NB. The expressions must be written in Python programming language.
The name of the field the results of the calculations of the expressions entered in the text box appear in is next to the “Column” text.
NB. The expressions are only calculated on the records selected in the table (if no records have been selected, the calculation is performed on all the records in the selected field).
“Field calculator” Let us look at a simple example to explain how the field calculator works.
In order to work out the area of a series of plots in a layer we have created:
First, open a gvSIG view and load an orthophoto which will be used as a base to determine the location of the plots. Next, select the tool in order to create a new shp file (View/New layer/SHP).
Select a “Polygon” type layer, click on the “Next” option and then create a “Double” type field called “Area”, leaving the default value at 20.
Draw four plots on the orthophoto using the “Insert polyline” tool selected from the tool bar. The image below shows that a record for each of the plots has been created in the table.
Select the field from the table and activate the field calculator.
The following information appears in the “General” tab:
“Field”. This contains the various different fields which comprise the table being worked on.
“Type” of field selected. Access to different commands depends on the type of field.
“Commands” which can be used in the calculations.
The “Information” section shows that:
If the “area” command has been selected in the “General” tab, a brief description will be displayed in the information window.
If the “area” command has been selected in the “General” tab, the information window returns a message with information on the field type (remember that when designing the “area” shape, a Double type numeric field was created in which the area will be calculated).
The “Expression" area displays the name of the column on which the calculation is being performed and a text box for the calculation sentence to be used.
In this case, the sentence included in the expression section is simple (no parameters are required as they are in other expressions which shall be explained later on).
To sum up and conclude this example, once the “area” command has been selected, click on “Ok” and the field created in the table will automatically be filled with the area values of each of the polygons drawn.
This functionality makes it easy to populate a field in a table with consecutive numbers by means of a mathematical function (REC) in the field calculator.
This new functionality has been introduced to facilitate the task of filling a field in a table with consecutive numbers by means of a mathematical function in the field calculator.
This function is typically used for the "ID" field of a layer's geometries. To access it you need to activate edit mode for the layer and then open the table. Select the field (of type Integer) to which you want to add consecutive numbers and click on the field calculator.
Select the numeric type option and then double-click the "rec" command, as shown in the figure below.
Once the process is complete the selected field in the table will be filled with consecutive numbers, starting with the number "0". Finish editing and save changes if desired.
In gvSIG, the Add geometric info tool is available when there are visible vector layers in the active View.
Icon | Description |
---|---|
Add geometric info tool enabled if there are visible vector layers in the current view. | |
Add geometric info tool disabled if there are no visible vector layers in the current view. |
With this tool you can select which geometric properties to calculate for a visible vector layer in the current view, and then save these properties in the layer itself. The information can be saved in either new or existing fields in the layer's attribute table.
Once the above condition is met (i.e. a visible vector layer in the active View), the tool is available:
Via the menu: Layer → Add geometric info
Selecting the tool displays a dialog where the attributes to be added can be selected:
1. Drop-down list for selecting vector layers. Lists the layers in the order that they appear in the TOC of the active view. The following information is shown:
2. Layer information writable. Indicates whether changes can be saved to the selected layer:
Icon | Mode |
---|---|
Yes, changes can be saved. In this case the attributes to be added can be selected. | |
No, changes can't be saved. The tool will not list any attributes. |
3. List of geometric attributes. List of attributes of the geometry of the layer. These depend on the type of layer:
The geometric attribute will be associated with one type of geometry, which is identified by the icon on the left:
Icon | Geometry type |
---|---|
The attribute is characteristic of point geometries. | |
The attribute is characteristic of multipoint geometries. | |
The attribute is characteristic of line geometries. | |
The attribute is characteristic of polygon geometries. |
4. Selection buttons. Allow attributes to be added to, or removed from, the list of geometry attributes to be calculated and saved for the vector layer.
Icon | Option |
---|---|
Add all the geometric attributes to the list. | |
Add the selected geometric attributes to the list. | |
Remove the selected geometric attributes from the list. | |
Remove all the geometric attributes from the list. |
5. List of added geometric attributes. List of layer geometry attributes to be calculated and added.
Clicking on any of the attributes in this list enables the controls that allow the field to be renamed.
6. New field. This checkbox indicates whether the attribute is added as a new field, or as an update to an existing field in the vector layer.
By default, every attribute is added as a new field.
7. Field name. New fields can have any name. Otherwise, select a field to update.
The length of the field names is limited.
It is possible that the layer's alphanumeric encoding does not support some characters of the current language.
8. Save field settings. If the checkbox field is changed, or if another field name is specified, the changes can be saved by pressing this button.
9. Reset. Resets the dialog by reloading the current View's visible vector layers, and by removing any selected attributes and their settings.
Once all the attributes have been selected, click the Ok button to start the process and display a progress bar.
Clicking the Cancel button, on the other hand, will terminate the tool.
In the event of a serious problem, the process is terminated and an error message is displayed:
If the process completes successfully, the Accept button is enabled and the tool can be closed.
It is possible to view the steps that were performed by clicking the Show Details button in the dialog:
Do not use the gvSIG interface while the process is in progress as this can produce inconsistent data states, and even errors.
It should be noted that gvSIG currently adds the areas and perimeters of islands to that of the surrounding geometry.
EXAMPLE
Following the steps described in paragraph 5:
The "Import fields" tool is used to import fields from one table to another. Both tables must have a common field.
In order to access the tool from the Table / Import fields menu, first open the table into which the fields are to be imported.
Clicking on "Import fields" opens the following dialog:
Follow these steps to perform the import:
Click the "Next" button and from the dialog shown below select the fields to import.
Click on the "Finish" button and check that the imported fields have been added to the end of the active table.
The gvSIG geoprocessing extension allows you to apply a series of standard processes to the vector information layers loaded in the layer tree in a gvSIG view (ToC), thus creating new vector information layers which will provide new information for the source layers.
The following geoprocesses have been implemented in the first version of the geoprocessing extension:
The output layer can take one of the output formats supported by gvSIG (it can only be saved in shp format at the moment).
When some geoprocessing tools are applied (for example, Clip) a window appears in which a spatial index can be created for the input layer. This is an internal process which is only carried out once per layer and per new project and speeds up the spatial intersection processes.
To create a spatial index for the input layer which can be used by the geoprocesses, click on “Yes”.
You can run the geoprocesses available in gvSIG with the geoprocessing wizard by clicking on the following tool bar button:
The “Geoprocess toolbox” will appear and you can use it to select the geoprocess you require. To access the different geoprocesses, pull down the tree in the window shown below (double click with the left button of the mouse on the "Geoprocesses" folder and the rest of the folders will appear).
When you have found the geoprocess you wish to use, click on the “Open geoprocess” button.
This geoprocess generates “areas of influence” around the vector element geometries (points, lines and polygons) of an “input layer”, thus creating a new polygon vector layer.
Several equidistant concentric radial rings can be generated around the input geometries. Moreover, in the case of polygon input geometries, the area of influence can be outside the polygon, inside the polygon or both inside and outside it. Some examples of the creation of areas of influence include:
When you click on the “Geoprocessing wizard” button, the following dialogue appears:
If you select “Buffer” and click on the “Open geoprocess” button, the window associated with this process is shown:
The form is divided into the following parts:
Selecting the elements whose buffer is to be computed. This is a pull-down list in which you can select the vector layer the calculation is to be applied to. If you wish, you can enable the “Use selected features only” check box so that the process only computes the buffer of the elements currently selected in the specified layer.
Inputting the features of the buffer to be computed. You can choose to input the buffer defined by distance (in the first text box) or to input a field in the input layer, from which the buffer radius value to be applied will be taken. This second option allows you to apply different buffer radii to different vector elements (whilst the first option applies the same radius to all the elements in the input layer). When the buffer of all the input layer elements has been generated, the “Dissolve features” option allows you to merge the elements whose geometries touch each other in a second iteration.
The “Rectangle end cap" option allows you to generate buffers with perpendicular edges (not rounded). Selecting the number of concentric buffers and their situation regarding the original geometry. The gvSIG “Buffer” geoprocess allows you to generate several equidistant areas of influence of the original geometry (for example, if the buffer distance to be applied is 200m and you choose to generate two concentric radial rings, the buffer distance of the second ring will be between 200-400m. Currently, you can only generate a maximum of three concentric radial buffer rings for efficiency reasons. If the vector layer we are working on is a polygon layer, the “Create Buffer…” option will be enabled, thus allowing the user to generate buffers outside, inside and both inside and outside the original polygon.
Introducing the result layer characteristics. Currently, the result of running a geoprocess can only be saved as an shp file. Thus, gvSIG allows you to select an existing shp file to overwrite it or to specify a new one. As new formats are supported to save the result of the geoprocesses, wizards will be provided to indicate the characteristics of these formats.
When you have input all the necessary information to compute the buffer, and clicked on the “Ok” button, a check routine is carried out to ensure that the information input is correct: whether the radius distance is numerical, whether the attribute from which the buffer radii are taken are numerical, whether a result file has been input, etc. If the check routine is not correct, a dialogue box appears so that the input data can be corrected.
If the input information that you have entered is correct, a window with a progress bar appears, in which the buffer processing rate is shown.
The process can be cancelled at any time by clicking on the “Cancel” button. As a consequence, the result file and any other intermediate product generated as a result of running the process are deleted. Whilst the buffer computing process is underway, other tasks can be carried out, such as changing the zoom or adding new layers to the layer tree in the gvSIG view. Other tasks can be carried out because all the geoprocessing extension geoprocesses are run in the background. When the process has finished, the new result layer is added to the layer tree in the active view. It is made up of buffer polygons with a specified radius based on the source layer.
Finally, the “Dissolve elements” option can be useful in specific situations (such as when the aim of computing the buffer polygons is to determine the total surface area affected by a phenomenon: quarantine areas, etc.), because when the generated polygons are merged the surface area covered by the buffer will be a real surface area, i.e. the sum of two buffers will not have any overlays.
The above image shows non-merged overlay polygons. The total area covered by the phenomenon does not coincide with the sum of the individual areas.
However, this second image shows merged overlay polygons. The total area covered by the phenomenon is real. When the buffer computing process includes the merger of overlay areas (dissolve) we cannot predict its exact duration (we do not know how many polygons will touch each other a priori). This is why the gvSIG geoprocessing extension does not show us a progress bar as such, it shows us a bar which periodically reaches the end and then goes back to the beginning. This type of process is called an “indeterminate” process.
Lateral Buffer
Select "lateral buffer" from the proximity geoprocesses and click "Open Geoprocess" to show the form related to this geoprocess:
The form is divided into the following parts:
Once all the information necessary to calculate the buffer has been entered and the "OK" button is clicked, the input information is checked to verify if it is correct.
If the input information is correct, a dialog with a progress bar indicating the progress of the calculation of the lateral buffers is displayed.
This geoprocess operates on two layers, the “input layer” and the “overlay layer”, whose geometries can be polygons, lines or points.
It calculates the intersection with the different geometries in the “overlay layer” for each geometry in the “input layer”, thus creating a new element for each intersection. This element will take all the alphanumerical attributes in the geometries that created it (input and overlay). This is why (it models space areas which comply with the condition of belonging to the two polygons, lines or points that created it) this geoprocess is known as “Spatial AND" operator.
An example of how this geoprocess can be applied:
Given a land use layer (e.g. Corine2000), and a national geological map layer, you can obtain a polygon layer with homogeneous information on land use and geological material.
After selecting the "Intersection" geoprocess, the following dialogue appears:
Select the input layer and the overlay layer. You must also specify a file in which to save the results. Finally, click on "Ok" and the geoprocess will be run.
In this case, we will use a very simple example to better understand the function of the geoprocess. The previous figure shows two overlaying polygons. The result of launching the “Intersection” geoprocess with these layers as parameters is as follows:
This geoprocess allows you to limit the working area of a vector layer (points, lines or polygons), and to extract an area of interest from it.
To do so, you need an “input layer” (the layer you will use to extract an area) and a “clipping layer” so that the union of the geometries included in the "clipping layer" defines the working area.
The geoprocess checks all the vector elements in the “input layer” and will calculate the intersections for the vector elements contained in the working area defined by the “clipping layer”, so that in the "result layer" only the vector elements of our working area will appear. The geometry portion that lies outside the working area will be clipped. The alphanumeric schema of the input layer remains intact.
Examples of use:
Setting up a local GIS would allow you to include national or regional maps and then to delimit the city or town as the working area.
When the "Clip" geoprocess has been selected, the following dialogue appears.
This dialogue allows you to select which layer you wish to clip, and gives you the chance to only clip the elements which are selected in the layer.
It allows you to select which layer will be used as the clipping layer and whether you wish to use the union of all the polygons in the clipping layer as the clipping polygon or just the selected elements.
Finally, as in the case of the other geoprocesses in gvSIG's geoprocessing extension, you can define how the result layer will be saved (at present you can only save it as a shp file).
As a result of running the geoprocess, you will have a new layer in which only the geometries which came under the union of the clipping geometries have been kept.
This geoprocess only acts on one “input layer”. The process analyses each entity in the "input layer" and merges the elements that have an identical value for a specific field into one element. Moreover, it allows you to involve spatial criteria in the decision to merge several features. This allows you to establish that for two elements to be merged, they must be adjacent to each other in addition to having the same value in the specified attribute.
Example: We have a polygon layer which represents the municipalities of a particular autonomous region and we need a polygon layer with the provinces which make up this region. We can generate a province layer by launching the “Dissolve” geoprocess and specifying that the polygons that have the same value for the "PROV" field in which a unique code for the province is specified are merged.
Using the previous example, we start by taking a "local layer" which we wish to convert into a "provincial layer".
When the "Dissolve" geoprocess has been selected, the following window appears:
Firstly, select the layer you wish to dissolve (you can only work with a selection of elements in this layer).
You then need to specify the attribute of this layer which is going to be used as the criterion to merge the adjacent polygons. In our example, we must choose the “PROV” attribute.
The polygons to be merged must have the same value for the dissolving attribute and in addition, you can choose whether they are adjacent to each other (spatial criteria). If you wish to choose this option, enable the "Only dissolve adjacents" check box. The gvSIG geoprocessing module allows you to keep a summary of the input layer polygon attributes once they have been merged. To do so, the “Summary function” concept is introduced. As each polygon of the “Dissolve” geoprocess result layer is the product of joining several input layer polygons, a summary function on the numerical attributes of the merged polygons can be applied.
If you click on the button with the "<-" icon, a dialogue will be shown in which you can choose one of several summary functions for a selected attribute.
The summary functions supported are maximum, minimum, average and summatory. A field will be included in the result layer for each summary function selected for the numerical attributes you have selected a summary function for.
When you have specified the field you wish to merge and the numerical attributes you wish to obtain a summary value for in the result layer, you are ready to run the geoprocess.
Trim Lines
The functionality provided by this geoprocess is to cut a line into sections of equal size. To access this geoprocess click on the geoprocesses that transform data and choose "Split lines". Click on "Open geoprocess" to display the following window:
Enter the following data:
This geoprocess acts on one or several layers, generating a new layer which joins all the geometries in the “input layer”. The "result layer" of this geoprocess will keep the attributes of the "input layer" specified by the user. For the rest of the layers which have not been selected, the attributes whose name and type of data coincide with any of the attributes in the selected layer will be kept.
Example:
When a cartographic series arrives which is separated into sheets and you wish to join the content of the different sheets in one layer. This is the case of the Magna series of sheets, published by the Spanish Technological and Geomining Institute (ITGME).
If you select the “Merge” geoprocess, the following dialogue appears:
The geoprocess allows any of the layers loaded in the layer tree in the gvSIG active view as an input layer. To run the process, first select the layers you wish to merge in the "Input layers" text box. Then, click on the "Select” button. A new window will open in which you can give the new layer file a name or choose a target file.
Click on the "Save" button when you have finished and gvSIG will return you to the geoprocess window. Click on the "Ok" button. This will start the geoprocess.
A new layer will be created at the end of the process which will be added to the view.
However, in the example of the sheets in a cartographic series, it would be awkward to load all the pages in the series one by one. Thus, there is an extra option to select a directory and to add all the layer files (with extensions supported by gvSIG) contained in this directory to the geoprocess input layer list. The only layer files currently supported are shp format files. If you click on the “Folder with files...” button and select a directory, a list of the layer files contained in it are shown and can be selected as part of the geoprocess input layers.
Until you select at least one layer to merge with one of the two possible lists (the layer list in the gvSIG layer tree and the layer list contained in the specified directory), no layer will be shown in the pull-down list. This list allows you to select which layer is going to define the attributes of the result layer’s attributes. When you select the layers to merge in one of the two lists, the layer whose attributes we wish the result layer to have and when you have specified the file you wish to save the result layer in, you can run the geoprocess. An initial requirement is that all the geoprocess input layers have the same type of geometries.
The result will be a new layer with all the input layer geometries.
This geoprocess calculates the “Convex hull”, or the smallest convex polygon which surrounds all the vector elements in an “input layer”.
It only works with an “input layer” whose geometry type can be any type (point, line or polygon). There are different types of applications for this geoprocess: Determining the coverage area for a specific geographical phenomenon.
Calculating the diameter of the area covered by a series of geometries, etc.
If you select the “Convex hull” geoprocess, the following dialogue appears:
After selecting the layer whose “Convex Hull” you wish to calculate and specifying an shp result file, you can run the geoprocess and generate a new result layer.
The following image shows the convex hull created which surrounds all the points in the input layer.
The “Difference” geoprocess works with two layers, the “input layer” and the “overlay layer”. It is known as “Spatial NOT” and allows you to obtain the areas in a layer which are not present in the other layer. The geometries in both the “input layer” and the “overlay layer" must be polygons, lines or points. The alphanumerical schema of the “input layer” will remain intact in the "result layer", as in the end it gives more information about it.
This geoprocess is very useful in numerous situations. For example, it can be used to complement the "Clip" geoprocess. If “Clip” allows you to exclude everything that does not belong to a geographical area under study, "Difference" allows you to do exactly the opposite; exclude a specific area from our working layer.
A useful example:
Transferring territorial jurisdiction between different governing bodies. Thus, if the national government transfers certain jurisdiction to a regional authority, it can decide to exclude the geographical area of the transfer in question from its data bases.
Running the “Difference” geoprocessClick on the “Open Geoprocess” button to access the dialogue window which allows you to run the "Difference" geoprocess.
You can enable the “selected features” check boxes at this point of the geoprocess for the input layer and the overlay layer. If you click on the “Ok” button, the geoprocess will be run.
In the following image, the “Difference” geometry appears in black between a flood zone and one of the selected cities or towns. In this case, the new layer resulting from the calculation of the difference will take the schema (alphanumerical attributes) of the geoprocess input layer.
This geoprocess is similar to the “Intersection” and "Difference" geoprocesses in that it operates on two polygon, line or point layers to obtain their intersections (this is why these three geoprocesses are known as “overlay geoprocesses”).
The "Union" geoprocess is known as "Spatial OR", because the result layer is made up of the geometries which appear in the two layers (intersections between the polygons, lines or points), plus the geometries which only appear in one of the two associated layers.
This means that the geoprocess carries out three analyses:
the first time it calculates the intersection of both layers, the second time it calculates differences between the first layer and the second, and the third time it calculates the differences between the second layer and the first.
This geoprocess may be of interest if you wish to generate new layers which show the occurrence of two phenomena so that the occurrence of one of the two or of both is highlighted.
If you select the “Union” option, the following dialogue appears:
When you have selected the input layer, the clip layer and an output layer, click on "Ok".
The result layer will have all the intersections and differences between the two layers. If you click on the “Information” button and then on the different polygons in the result layer, you will see that the intersections have all the attributes, whilst the differences only have the attributes of the layer that created them.
This geoprocess allows you to transfer the attributes of one layer to another based on a common element. In contrast to the join sql operator in the relational data bases, in this case, the common element is not that a field of the two tables takes the same value, but that the related elements in the two layers meet some spatial criteria.
The “Spatial join” geoprocess allows you to follow two types of spatial criteria to establish the spatial link:
Nearest neighbour (1->1 relationship). This assigns the attributes of the nearest element in the related layer to an element in the source layer.
If the nearest element intersects (or in the case of polygons is “Contained in”) with the source element, the algorithm will take the first element analysed in the possible intersections.
Contained in (1->M relationship). This relates an element in the source layer with several elements in the destination layer (in particular, with those that intersect).
In this case, the source layer will not inherit the related layer’s attributes, but the operation will be very similar to the "Dissolve" geoprocess.
The user can choose one or several summary functions (average, minimum, maximum, summatory) to be applied on the numerical attributes of the related layer for the M elements related to an element in the source layer.
When you have selected the "Spatial join" option, the following window appears:
This window is practically the same as the windows in the overlay geoprocesses (Union, Difference, Intersection) with one difference.
It allows you to choose whether you want to run a 1-1 relationship (using the nearest neighbour spatial criterion) or run a 1-N relationship (using the “Intersect” or “Contained in” spatial criterion).
The choice can be made by enabling or disabling the "Use nearest geometry" check box. If when you have selected the source layer and the layer to be related, the geoprocess is launched and you have not enabled the "Use nearest geometry" check box, a window appears in which you can select the summary functions you wish to apply for each numerical attribute of the layer to be related:
The summary functions are the same as in the “Dissolve” geoprocess:
Thus, the attributes transferred to the source layer will be the result of the summary functions selected for each numerical field. If you run the geoprocess and the “Use nearest geometry” option is enabled, this window does not appear.
This geoprocess allows a translation transformation to be applied to all the points, lines and polygons of the geometries in the input layer. The geoprocess can be applied to all types of vector layers (shp, dgn, dxf…). To do so, the movement on X and Y must be specified.
This geoprocess is extremely useful when combining cartographies which come from different sources, a process which is referred to as conflation. Bear in mind that although translations can be carried out on all types of vector layers (shp, dgn, dxf, dwg…), the resulting output layer will always be a shape file. In other words, the input layer can be a shp, dxf or dgn file, but when translation is applied to these layers, the result will be one or various different output layers which are always shape files.
When a translation is carried out in which the input layer is a vector layer which is not a shape file, the result of the translation will be three layers in SHP format (one line layer, one point layer and one polygon layer).
If, for example, the input layer to which the translation is applied contains only points and lines, the polygon .shp file will be created but it will be empty.
NB. At the end of this section there is a table giving details of the relationship between the type of input file and the resulting output layer.
Firstly, load a vector layer in gvSIG and then click on the geoprocessing wizard in the tool bar.
Select the option “2D Translation” from the “Data Conversion” folder. Click on the “Open Geoprocess” button and the geoprocess data input window opens. For the input layer, select the vector layer (dgn, dxf, dwg, shp…) you wish to translate and introduce the values corresponding to X and Y. Select an output layer and click on “Ok”.
The following image shows the result of applying the translation process.
Relationship between the type of layer before and after translation.
Input cover | Output cover/s | |
---|---|---|
Point Shp file | Point Shp file | |
Multipoint Shp file | Multipoint Shp file | |
Line Shp file | Line Shp file | |
Polygon Shp file | Polygon Shp file | |
Dxf (points, lines, polygons) | Point Shp file Line Shp file Polygon Shp file |
|
Dgn (points, lines, polygons) | Point Shp file Line Shp file Polygon Shp file |
|
Dwg (points, lines, polygons) | Point Shp file Line Shp file Polygon Shp file |
This geoprocess allows you to change the geodesic projection of the vector elements in the input layer. In order to do so, the user must specify the new projection to be applied.
This process is extremely useful when standardising cartographies in the same project if these are in different projections.
Click on the geoprocessing wizard in the tool bar and select the “Reproject” option from the “Data conversion” folder.
Click on “Open geoprocess”. The wizard will open to guide you through the reprojection process.
In “Input layer”, select the layer you wish to reproject from the layers loaded in the ToC.
To select the new projection for the layer, click on the button next to the destination projection and select the new reference system.
The “Export to...” tool allows you to save the elements selected in a layer in a different format. If no elements have been selected the whole layer will be exported. At the time of going to press the export formats supported by gvSIG were shape, dxf, and postgis and gml.
Select the “Layer” option from the menu bar then go to “Export to…/shp”.
If you have selected elements in the layer to be exported, gvSIG will tell you how many elements are going to be exported and will ask for confirmation before carrying out the operation.
If you continue with the operation, a dialogue box will appear in which you will be asked to select the file the new shape is to be saved in.
When you have accepted, a new message will appear asking whether you wish to insert the new layer into the view.
If you click on “Yes”, the layer will be added to the active view.
Select the “Layer” option from the menu bar then go to “Export to…/dxf”.
Follow the same process used for exporting to shape.
Desde la barra de menú seleccione la opción “Capa/Exportar a.../postgis”.
Si tiene elementos seleccionados le mostrará una ventana informándole del número de elementos que se van a exportar (al igual que en exportar a shp y dxf).
Si pulsa sobre la opción “Sí” para continuar la exportación gvSIG, aparecerá un diálogo donde podrá seleccionar una conexión a PostGIS activa o crear una nueva.
A continuación podrá seleccionar el esquema (entre los existentes en la base de datos actualmente) y el nombre de la tabla donde debe guardarse la exportación. Recuerde que si la tabla existe en la base de datos, la información que contenga será borrada.
Cuando haya introducido el nombre de la tabla pulse el botón “Aceptar” para comenzar la exportación
Para exportar a Oracle Spatial el procedimiento es similar al antes descrito con una particularidad,para que la opción de conexión a una base de datos de Oracle Spatial esté disponible en la ventana de parámetros de conexión anterior, debemos en primer lugar descargar los drivers que le permiten este proceso siguiendo las instrucciones que encontrará en la web del proyecto y que se resumen a continuación:
Para acceder a bases de datos Oracle Spatial se han de instalar los drivers de Oracle. Hay que seguir los siguientes pasos:
Acceder a Oracle Database 10g Release 2 (10.2.0.3) drivers.
Aceptar los términos de licencia.
En la página siguiente, descargar el archivo ojdbc14.jar (1,545,954 bytes) - classes for use with JDK 1.4 and 1.5.
Nota: Es necesario registrarse para hacer efectiva la descarga
Mover el archivo a la siguiente carpeta:
Select the “Layer” option from the menu bar then go to “Export to…/gml”.
Follow the same process used for exporting to shp or dxf.
From the menu bar, select Layer > Export to... > Keyhole Markup Language (KML).
From here on the steps are exactly the same as for the Exporting to GML option.
This gvSIG tool makes advanced labelling easy.
The process creates a new layer which represents annotations.
The main features of this new layer can be summarised as follows:
To create an annotation layer, first select the layer from the ToC (Table of Contents).
In the menu bar, select the “Layer” option, then select “Export to” and finally select the “Annotation” option.
This option opens the wizard which will guide you through the steps required to create the annotation layer.
In the wizard’s first window, select the data which gvSIG requires to carry out the operation from the pull-down tab:
Duplicate control: Select either “None” or “Centred” to choose the position in which you wish the annotations to be inserted.
Centred: A label is created for each value and this will be inserted in the centre of all the labels which are the same.
None: A label is inserted for each value, even if these are repeated.
Select the field to be labelled: Choose the field which contains the text you wish the labels to show.
If you do not wish to modify the format of the annotations created by gvSIG and prefer a standard format, click on “Finish”. If you wish to customise the format, click on “Next”.
The wizard’s second window allows you to select the fields of attributes of a a table (if there are any) which contain the values which allow you to customise the labelling.
The following parameters can be customised.
Slope – the slope the annotation will have in the view.
Colour – annotation text colour.
Height – annotation text height.
Units – units in which the value assigned to the “Height” field are to be measured.
The options currently available are map units or pixels.
Font – annotation text font.
Set the values to be used for customising the required parameter (by pulling down the list).
Leave the default value in the fields you do not wish to customise.
Click on “Finish” when you have input these changes.
An annotation layer can be edited like any other layer. To start an editing session in gvSIG, select the layer in the Table of Contents and then select the option “Start edition”.
When you start an editing session, an option appears in the menu bar called “Modify annotation”. This will allow you to individually customise the annotation you wish to change.
When you click on this button, the appearance of the cursor will change. You may graphically select the annotation by clicking on the point associated with the text and then access a set of properties shown in the following image.
If we select the “Properties” option from the annotation layer contextual menu, the following box appears:
The “Layer properties” box has two tabs. The “General” tab allows you to access the general properties of the layer and the “Annotations” tab allows you to select: whether you wish the annotation text to be shown in pixels or metres in the view.
Whether you want only the text to appear (select the “Draw text only” option) or if you prefer the text to be accompanied by a location point (deselect the “Draw text only” option).
However, remember that this point is useful, for example, to move the annotation or to access the “Modify annotation” window.
If you wish to avoid overlays, activate the “Avoid overlays” option.
If you wish to eliminate overlaying annotations, activate the “Clear overlaying annotations” option.
To add an annotation layer, click on the “Add layer” button in the tool bar
and select the “Annotation” tab.
In the box you can select the annotation layer you wish to load, in addition to the units in which the annotations are displayed (pixels or metres) and the projection of the layer.
The following image shows how an annotation layer is created out of a polygon layer called “muni10000.shp” which contains all the towns in the Valencian Region.
In the first window of the wizard, insert the type of duplicate control you wish to use and select the field which contains the text to be shown.
This is the field in a layer’s table of attributes which contains the name of the town.
If you do not wish to customise the presentation, click on “Finish” and indicate where you wish the new annotation layer to be saved.
The following image shows the result (the rest of the fields in the wizard are left with their default values and this one is zoomed in) of creating the “annotation layer”.
The annotation layer which has been created is the one in red called “Towns” in the Table of Contents.
This tool allows you to extract portions of a raster layer using a selection in the view or by inputting the coordinates that define the portion to be extracted.
It allows the user to change the spatial resolution of the clipping or of the whole image, choose the bands to be extracted or generate a new raster layer for each of the original bands.
To access this option, go to the ToC and select the raster layer you wish to select a portion of.
Then go to the Layer/Export to menu and select the “Raster” option.
The following window appears:
Image clipping
There are two ways of selecting an area to be clipped from the original raster layer:
You can use the text boxes in the window to input the data which correspond to:
You can also make your selection directly from the view by clipping the whole image or selecting a part of it.
This button allows you to obtain a clipping from the whole image.
This button allows you to obtain a clipping from a selected area in the view. Place the cursor over the image, then click and drag. Check that the text boxes are automatically completed.
If you wish to save the raster layer clipping you have created, click on “Save” and select the location you wish to save this file in. The image will be saved in TIF format.
Changing spatial resolution
The controls that allow you to specify the clipping’s (or whole image) spatial resolution are located in the Clip table, with the additional options panel pulled down (to pull this panel down click on the button). You can define the resolution by specifying the Cell size or the Width and Height of the raster layer to be generated in pixels as well as choosing the interpolation method using the resolution change. At the moment, only the “Nearest neighbour” option is operational.
Band selection
The original raster layer’s band list appears at the bottom of the Clip table. You can use this list to choose the bands the output raster layer will have if you enable or disable the check boxes in the Bands column. If you check the Create one layer per band option, a new layer will be generated for each of the bands checked in the list. The new layers will be added to the ToC.
Saving and Adding a raster layer clipping to the current view.
When you have established all the parameters which define the raster layer clipping you have made, click on “Save”. This opens a dialogue box which allows you to search for a directory to save the clipping in. If you wish to add the layer to the view, go to the “Add layer” button in the tool bar once you have saved the clipping.
Example of a raster layer clipping
This example shows how a clipping is taken from an orthophoto.
First, select the area by defining a rectangle in the gvSIG view.
When you have finished, the coordinates will automatically be input into the text boxes based on the selection. You can fine tune these selected values from the view by inputting the new value directly into the text boxes containing the data.
Then pull down the box. As the resulting image is to be resampled, not as much resolution is required. Therefore, go to the “Spatial resolution” section and select “Width x Height”. This enables the text boxes so that you can input the output raster layer resolution.
When one value is input the other one is automatically completed when you press Enter or when you exit the field, as the proportions between the width and height must be maintained.
The cell size for the chosen output resolution is also calculated. If “Cell size” had been chosen, you would have had to specify the size in metres for each pixel and thus the width and height for the chosen cell size would have been calculated.
You now need to select the bands you want the output layer to have. In this case, select them all as this is a three-band orthophoto and we want to include them all.
Finally, for our example, the “Create a layer per band” option needs to be enabled to do just this.
Each new layer will have the same data type as the original image. If you click on “Save” a dialogue box opens to indicate the directory and image name.
To retrieve the layers you have created, go to the Add layer” button and then to the directory they were saved in.
"New layer with derived geometries" tool.
This tool allows users to generate geometries derived from points or lines in a vector layer, and to store them as a new shape layer.
Icon | Description |
---|---|
Derived geometries tool enabled if the TOC contains at least one visible point or line vector layer that is not in edit mode. | |
Derived geometries tool disabled if the TOC does not contain any visible point or line vector layers that are not in edit mode. |
The tool can be accessed from:
Via the menu: Layer / Derivative geometries
Layer selection dialog and process
Upon choosing the tool a dialog for selecting layers is displayed:
Source layer geometry type | Type of process | Target layer geometry type |
---|---|---|
Points | Points to line | Lines |
Points | Points to polygon | Polygons |
Lines | Close polylines | Polygons |
Process Control Panel
The control panel is associated with the layer and is shown every time the layer is activated in the TOC, as long as the layer is visible and not in edit mode.
The dialog has a semi-modal behavior in order to allow the user to continue working with gvSIG by using the minimize, maximize, resize and hide buttons (use the X, not the Cancel button, to hide the dialog).
The results of the completed process can be viewed by clicking on the "View Details" button. There are three types of data that are of interest here:
This information is recorded in the gvSIG log.
The control panel is hidden during the process but becomes visible again when the progress dialog is closed.
Control Panel Behaviour
The control panel is linked to the source layer from the time it is created until it is cancelled by clicking the cancel button.
Action | GUI Element | Description |
---|---|---|
Maximize | Resizes the dialog so that it fills all available space. | |
Minimize | Minimizes the control panel to a restore button. | |
Collapse | Control panel is hidden but remains linked to both the source and output layers. Further operations between these layers can be performed once the panel is restored. | |
Resize | The size of the control panel can be increased or reduced by selecting and dragging the edge of the panel. | |
Expand / Collapse splitter interface | These controls are used to display only the table of source layer features, or only the table of selected features and associated management controls, or both halves of the control panel interface. | |
Cancel | Closes the tool so that is no longer available for operations between the source and output layers. |
When the control panel is hidden it can be restored it by clicking on the source layer in the TOC.
If the View is closed when control panels are visible, the panels will be hidden and then restored when the View is reopened.
Geometries derived from points do not retain any attribute values but do maintain the columns. Those derived from lines, keep all attributes.
Removing the new layer associated with control panel will result in the tool being ended and a warning being displayed to the user.
Examples
This example will show how to generate a line layer showing the path followed from home to work, and back again. The example uses the following four shape layers:
Once all four layers have been loaded the "Derived Geometries" tool can be selected and the following values entered:
When "OK" is clicked the new process control panel appears. If a file with the same name as the new output layer already exists then the user is asked whether to continue or not. If yes, then the file will be overwritten.
Minimizing the control panel will reveal the View:
The geometries can be selected from the top table in the control panel.
We select the first seven geometry points (1st route: work to home).
Click "Create" to generate the first path:
Modify the symbology so that the route stands out as a thick line.
To generate the route back, activate the control panel and select the remaining points from the source layer so that the line can be generated:
Finally suppose we are interested in the polygon formed by the closure of the routes.
Cancel the tool and then reopen it but this time use the new layer as the source:
Select all the geometries (the two polylines) and generate the polygons.
Since the layer "Route: Work to Home" does not contain data due to the points to line process, we assign a distinguishing identifier to each by editing the layer.
Now apply some changes to the symbolology:
Filtering is a process by which we can enhance images. gvSIG can filter images through a variety of filtering methods. In the upper left part of the Filter dialog, the filters are grouped by type (1). By double-clicking one of the filters or by clicking on the "Add Filter" button on the bottom left, the filter will be added to the list of filters in the lower left part of the Filter dialog. All filters in the filter list will be applied in the preview. If you want to remove a filter from the list, you can either double-click on the filter or click on the "Delete filter" button. The filters in the list will be applied to the image in the order that they appear. Keep in mind that the order in which the filters are applied will affect the result, and changing the order of the filters may change the output.
In the middle of the dialog window are the controls of the selected filter (2). When changing the controls of one of the filters from the filter list, the results will be directly shown in the preview window. Below the middle part of the dialog you can change the name of the output layer that will be generated when clicking "Apply" or "Close".
On the right side of the dialog you can preview the outcome of the filters (3). (See documentation on "Preview tool"). In the lower right part you can select whether you want to display the filters over the selected layer or save the filtered image as a new layer (4).
The button "Apply" will apply the changes according to the entered parameters, keeping the Filter dialog open. The "Close" button will apply the changes and close the Filter dialog. The "Cancel" button will close the Filter dialog without applying any filters.
All filters in the filter list can be activated or de-activated through the "Active" checkbox. This checkbox is usually located in the upper part of the filter control panel.
The number of applied filters will affect the time that it will take to draw the layer. If you choose to apply the filters to the current layer, the drawing and re-drawing of the layer may slow down while the filters are applied. If the filter results are saved as a new layer, the filtering process has to be done only once so that the next time the layer is drawn, it will not be slowed down by the filtering. Therefore, it is generally recommended to save the output to a new layer if possible. There are cases though in which it is not recommended to generate a new layer. For example, if you have a large orthophoto and you only want to change the brightness a little, it could take more time to save the output as a new layer. If the brightness filter is applied over the current view, the area on which the filter is applied is much smaller which makes the drawing faster. It is up to the user to decide whether it is better to create a new layer or display the filters on the view of the current layer.
The brightness filter changes the brightness value of the layer. You can increase or decrease the brightness by moving the position of the sliding bar or by entering the value directly in the text box and press enter.
The contrast filter changes the contrast value of the layer. You can increase or decrease the contrast by moving the position of the sliding bar or by entering the value directly in the text box and press enter.
With this type of filter, graphical transformations like smoothing, edge detection, sharpening etc. are applied to the image.
The following filter types can be applied:
MEDIAN FILTER
The median filter applies a kernel of a certain size, which is determined by the user through the sliding bar labeled Window side.
The median filter is normally used to smoothen and to reduce noise in an image, by moving a kernel of N x N number of pixels over the image and evaluating each central pixel, replacing its value with the median of its neighboring pixels. Compared to the Mean filter, the advantage of the Median filter is that the final pixel value is a value that actually occurs in the image and not an average.
MEAN FILTER
The mean filter applies a kernel of a certain size, which is determined by the user through the sliding bar labeled Window side.
The filter replaces the value of the central pixel with the mean value of the surrounding pixels. Each value of the kernel would be one and the divider would be the total number of elements in the kernel (i.e. a kernel of 3 x 3 would replace the value of the central pixel by the average value of the nine pixels covered by the kernel).
LOW PASS FILTER (smoothing filter)
The low pass filter applies a kernel of a certain size, which is determined by the user through the sliding bar labeled Window side.
Using a low pass filter tends to retain the low frequency information within an image while reducing the high frequency information.
SHARPENING FILTER
By moving the slider to change the sharpness (values from 1-100), the contrast of an image can be changed. The results can be evaluated in the preview window. With a higher contrast, details in the image can be accentuated but the noise will also increase.
GAUSS FILTER
The Gauss filter applies a kernel of a certain size, which is determined by the user through the sliding bar labeled Window side.
The maximum value appears in the central pixel and gradually decreases for pixels that are further away from the central pixel.
CUSTOM FILTER
This is a kernel of 5 x 5 or 3 x 3, for which the values can be introduced by the user. After multiplying the pixel values with the kernel values, the result will be divided by the number specified in the Divisor textbox.
MODE FILTER
The mode filter applies a kernel of a certain size, which is determined by the user through the sliding bar labeled Window side.
This filter takes the value that occurs most in the surrounding pixels and assigns it to the central pixel.
It is possible to change the balance between Red, Green and Blue in an image if needed. To do this, move the sliding bar to increase or decrease the values or enter the value directly in the text box next to the sliding bar. Ticking the "Brightness" check box ensures that the brightness level of the pixels will be maintained while the RGB values are changed.
It is possible to change the balance of Cyan, Magenta and Yellow in an image if needed. To do this, move the sliding bar to increase or decrease the values or enter the value directly in the text box next to the sliding bar. Ticking the "Brightness" check box ensures that the brightness level of the pixels will be maintained while the CMY values are changed.
It is possible to change the balance of Hue, Brightness and Saturation in an image if needed. To do this, move the sliding bar to increase or decrease the values or enter the value directly in the text box next to the sliding bar.
These filters attempt, through the use of kernels, to detect edges in the image and change the image so that these edges are enhanced, while the rest of the image is grayed out.
There are four edge detection filters, all with the same interface and options, in which the user chooses a threshold in the range 0-255, and the possibility compare the results by ticking the compare check box:
SOBEL
The Sobel filter detects the horizontal and vertical edges separately on a grayscale image. Colour images are converted to RGB gradations. The result is a transparent image with black lines and some remains of colour.
ROBERTS
The Roberts filter is suitable for detecting diagonal edges. It offers good performance in terms of location. The major drawback of this filter is its extreme sensitivity to noise and therefore has poor detection qualities.
PREWITT
The Prewit filter detects edges in all directions as it consists of 8 kernels that are applied over the image pixel by pixel.
FREI-CHEN
The Frei-Chen filter processes the neighbouring pixels as a function of their distance from the pixel that is being evaluated. The result is that edges in all directions are detected.
With this functionality it is possible to set the transparency level of a Region of Interest (ROI). The region of interest must have been defined previously. If the layer does not have a region of interest, the following message will appear: "A Region of Interest (ROI) must be defined for this layer to apply this filter. Please go to the dialog Area of Interest and select at least one ROI." If there are already one or more ROI associated with the layer, the message will not appear. Instead, a list of ROI will be shown, from which you can select one or more by ticking the corresponding check box. Then, adjust the level of transparency with the slide bar or by entering the value directly in the text box next to the slider. Ticking the check box labeled as "Inverse" will result in the opposite effect; all of the image except for the ROI will be set to the specified transparency level.
With this functionality it is possible to cut out a Region of Interest (ROI) that has been previously defined for the layer by assigning a fixed user-specified value to the rest of the image outside the ROI. If the layer does not have a region of interest, the following message will appear: "A Region of Interest (ROI) must be defined for this layer to apply this filter. Please go to the dialog Area of Interest and select at least one ROI." If there are already one or more ROI associated with the layer, the message will not appear. Instead, a list of ROI will be shown, from which you can select one or more by ticking the corresponding check box. Then, select the value to be assigned to the pixels outside the ROI by typing a number in the "value" text box. The default value is -99,999. Ticking the check box labeled as "Inverse" will result in the opposite effect; the ROI will be assigned the specified value while the rest of the image values are maintained.
To launch the histogram dialog window, use the drop-down toolbar selecting the "Raster Layer" button on the left and "Histogram" in the drop-down button on the right. Make sure that the text box that displays the current layer is set to the name of the raster layer for which you want to see the histogram.
The Histogram dialog shows a histogram of the statistical distribution of pixel values in the current view. This information is often useful when you are trying to color balance an image. In the middle of the dialog you will see the graph on which you can right-click to show a context menu with general options for this kind of graphics.
In the upper part of the dialog (1) are the controls to configure the histogram:
There are three types: "Normal", "Accumulated" and "Logarithmic".
With this option you can select the data source for the histogram:
With this option, the pixel values that are displayed in the current view of gvSIG will be used for the histogram. Therefore, the band selector shows only the R, G, and B values which are the visual bands. Every band will appear in its corresponding colour in the graph (red for R, green for G and blue for B). This is the default option when the histogram dialog is opened.
With this option, the histogram for the whole raster layer is calculated. Because of the amount of time that it would take to calculate the histogram for large images, the histogram is only calculated once and saved with a .rmf extension in the directory in which the image is stored. After the first time, the histogram for the same layer can be displayed much faster. (Keep in mind that if you delete the .rmf file that is stored with the image, you will lose its histogram information.)
Apart from identifying to which band each histogram corresponds through its colour (in case of the current view Data Source) you can also identify the band by hovering the mouse over a point in the graph. The tooltip displays the band name and the value of the point.
We can zoom in and out of the graph using the mouse.
You can also zoom in and out using the context menu.
The controls that appear under the graph allow the user to restrict the range of values (X axis of the histogram) on which the histogram is based. The default setting is the complete range so that, for example in a Byte data type image, the statistics are calculated for all the pixel values from 0 to 255. You can enter the values directly in the text boxes or use the + and – controls next to the text boxes. You can also slide the triangles over the sliding bar to select the range of values.
In this table, the statistics that correspond to the selected range of pixel values are shown in the text boxes. Each row of the table corresponds to one raster band as displayed in the histogram. The columns that are shown are:
You can export the table through the option "Save as DBF". The data contained in this table are the values of the current histogram. After creating the DBF table, it can be used as any other table in gvSIG.
The Raster section of the Preferences dialog contains the option "Number of classes" where you can set the number of intervals in which the histogram is divided when the data type of the image is not Byte. For Byte images, this value is 256. In the preferences dialog, the default value of this option is 64 but you can choose any of the options (32, 64, 128, and 256). The intervals are the parts in which the range of values is divided. For example, if we have a DTM with values between 0 and 1 and there are 64 intervals, each interval will have a range of 1/64.
The number of classes does not only refer to histograms but also to other functionalities that require a division in intervals of value ranges.
The maps that are obtained through digital processing of satellite imagery are useful not only for thematic mapping, but also as a backdrop on which map features can be overlaid. If the visible bands are displayed in a colour composition through the colouring of each band with the corresponding colour gun, it is important that the bands are sufficiently enhanced so that the colours appear more natural. The final display colour depends not only on the direct result of the chosen colour composition but also on the radiometric post-processing. The satellite image map will be more useful as backdrop if the bands are enhanced and displayed in colours that match the natural colours as the human eye perceives them. gvSIG provides the enhancement tools to adjust the colours for each band.
In the following sections the different parts of the dialog are described:
The central part shows two graphs (1). The graph on the left is the histogram of the input image. The graph on the right shows the histogram of the output image. The graphs that are presented with a yellow line can be modified with the mouse. When you change the input histogram, the output histogram will be changed accordingly and you can preview the result.
In the upper corners of the input histogram are the maximum and minimum values of the raster displayed. In the lower corners, the maximum and minimum values that are being included in the enhancement are displayed. The percentage of values that are being left out of the histogram appears in parentheses. These values can be modified by grabbing and dragging the dotted vertical lines on the side of the graph. Dragging the left line will modify the minimum value, while dragging the right line will modify the maximum value. (This way, by leaving out the values that are not used in the input image, you can stretch the output values over the whole range of available values, so that the visual quality is improved.)
In the lower part of the dialog (2) you will find some controls with the following options:
Type of function:
The enhancements will replace each input value with an output value. This process is done by creating a look-up table which provides the correspondence between a range of input data and a range of output data. To apply this correspondence, a fuction is used. The used function and its parameters are chosen by the user.
Linear enhancement
Non-linear enhancement
The non-linear enhancements have the same approach as the linear enhancements in the sense that each input value is replaced by an output value. The difference lays in the function that is assigned to produce the output values, which is non-linear. The available non-linear functions are logarithmic, exponential and square root. With each function you can modify the curve to smooth or accentuate the enhancement result.
Band
With this option you can specify the raster band to which the enhancements are applied. For a correct balance of the image, it is recommended to enhance each band separately.
Drawing type
With the option drawing type, different types of histograms can be chosen. Filled will draw a filled histogram while Line will only show the contours of the histogram. The colour of the line or fill pattern depends on the selected band. The bands Red, Green, Blue and Gray are displayed in red, green, blue and gray respectively.
Type of histogram
RGB Check box
When check box labelled as RGB is ticked, it is assumed that the image is displayed as RGB with Byte data type and values between 0 and 255. If the checkbox is not ticked, it is assumed that the range of values are Byte data type values between -127 and 128, which will produce significant differences in the display and in the minimum and maximum values that are shown in the bottom of the input graph.
In the lower right part of the dialog (3), you can indicate how you want to see the enhancement results; in the current view or saved as a new layer.
The preview window (4) shows the real-time results of each enhancement that is applied to the image.
The tool for exporting the view as an image can be accessed from the drop-down toolbar by selecting "Export to raster" on the left button and "Save view to georeferenced raster" on the right button. Make sure that the name of the raster layer that you want to export is set as the current layer in the text box.
A message will appear to inform that you can use the selection tool to set the area in the view to export.
Now, you can select two points in the view to define the rectangle of the area to be exported, by clicking the first point and dragging the mouse towards the second point, then release.
Then, the Save view to georeferenced raster dialog will appear. If the selected area is too small, the dialog will not appear and a bigger rectangle must be selected.
The upper part of the Save view to georeferenced raster dialog shows the coordinates of the two points that define the selected area in the view. You can edit the coordinates to change the selected area.
In the option box in the central part of the dialog you can choose from three selection methods:
NOTE: To save time and memory the maximum size of output images is limited to 20000 x 20000 pixels. If the intended output image is larger and you click on "Apply", gvSIG will display a message that the parameters must be changed before trying again.
Clicking the "Selection" button will open a file browser dialog where you can specify the output file. Depending on the type of file, the corresponding driver will be loaded (you will notice that the button on the right of the "Selection" button will change). For example, an output file .jp2 will open the properties dialog for Jpeg2000. The formats in which you can save are .TIF, .IMG, .BMP, .PGM, .PPM, .MPL, .RST, .JP2, .JPG, and .PNG. Furthermore but only on Linux kernel 2.4 you can also select ECW.
When you select the output file, the Properties button will be enabled.
For example, for geoTiff the dialog will look like this:
When the output image is selected and the properties set, you can click on "Apply". A progress bar will appear. Depending on the size of the output file, this process may take while. Processing times may vary between a few seconds or several days, so it is important to check the size of the output image in pixels before clicking "Apply". When finished, a screen with statistics will appear that indicates the path of the output image, the disk size, the duration of the process and whether it was compressed. To check the georeferencing of the output image, you can add it to the view as a new layer with transparency.
(The clipping tool can be accessed from the raster toolbar by selecting "export to raster" from the left drop-down button and "Clipping" from the drop-down button on the right. Make sure that the raster layer that you want to clip is set as the current layer in the text box.)
With the clipping tool, you can create new layers from an existing one. The options are:
In the "Coordinates" tab of the clipping dialog, there are text boxes to enter coordinates. In the upper part are the values in pixel coordinates and in the lower part the real coordinates. For each item, the two upper text boxes correspond to the coordinates of the upper left corner, while the lower two text boxes correspond to the lower right corner. When changing the pixel coordinates, the real coordinates are re-calculated automatically and vice versa.
There are 3 selection methods that will fill the coordinates automatically. These methods can be activated by clicking the buttons on the bottom of the clipping dialog. From right to left, the buttons are:
In the "Spatial resolution" tab of the Clipping dialog, you can modify the resolution of an output image through various interpolation methods. There are two option boxes located on the upper part of this tab:
When modifying the resolution it is necessary to resample and re-assign the pixel values for the output image through an interpolation method. There are four interpolation methods available: Nearest neighbour, Bilinear, inverse distance and B-Spline. The nearest neighbor is the fastest interpolation method, but the results in pixilation of the image and a lower visual quality. The other interpolation methods produce a smoother result.
The button labeled "Restore" returns the initial values of the input image.
The "Bands selection" tab of the Clipping dialog displays a table that lists the bands of the input image. When processed, the output image will have the bands in the order as shown in this list. By default, the output image will have the same order of bands as the input image. The order of the bands can be modified through the "Up" and "Down" buttons. The selected row will go up or down one position in the list. The bands can also be omitted from the resulting image by un-checking the corresponding row.
The "Options" tab of the Clipping dialog presents various options that can be set by the user:
You can zoom to raster resolution by right-clicking on the layer in the TOC. In the context menu that appears, click "Zoom to raster resolution".
This will activate a crosshair cursor in the gvSIG view which allows users to perform an action by clicking somewhere in the view. The action in this case is that with every mouse-click, the view will be centered on the point where you clicked. In addition, the view will zoom so that one screen pixel is the same size as a pixel in the current raster layer.
The "automatic vectorization" function can be launched from the raster toolbar by selecting "Raster process" on the left drop-down button and "Vectorization" on the drop-down button on the right. Make sure that the name of the raster layer that you want to vectorize is displayed as current layer in the text box.
With automatic vectorization, you can generate a vector layer from a raster image using preprocessing to highlight the features of interest.
When launching the Vectorization dialog, the first step is to select the area of the image that you want to vectorize. Keep in mind that the vectorization process may take a long time, so it is recommended to minimize the area (number of pixels) for vectorization. The selection of the area for vectorization can be done in several ways. You can type the coordinates directly; either in pixel coordinates or in the map coordinates. The area can also be selected from the view by clicking the button "Select from the view", after which you can draw an approximate rectangle to define the area. Another selection option is by Region Of Interest (ROI). You can define a ROI here or use a previously defined ROI to set the area for vectorization. In the section "ROI selection" appears a list of available ROI and a checkbox next to each of these to select one or more ROI that you want to use. There are two options to vectorize the ROI: to vectorize the entire area inside the rectangle (bounding box) that covers all the selected ROI, or vectorize only the areas inside the ROI while considering the values outside the ROI as NoData values, excluding them from the calculations.
Finally you can select the scale of the image to preprocess. This is useful because a higher resolution of the preprocessed image will result in a higher precision for the resulting vector layer. You can define this with the drop-down text box labelled "Output Scale". By default, the resolution will be the same as the input image.
When moving on to the next step of the wizard, the process of cutting the image for preprocessing is started. A progress bar appears with the warning that this operation could take a few minutes. The resulting image cut is saved in the temporary folder of gvSIG.
There are two methods to preprocess a raster image to vectorize. The first is by creating a limited number of grayscale levels from the original image. The image will be converted to grayscale using one single band or a combination of bands (use the drop-down button labelled "Bands"). For the conversion to grayscale, a posterization process is used to reduce the number of different values. (By default, the image is reduced into 2 levels only: black and white.) For this process you can control the threshold on which the values are passing from black to white and vice versa. This can be done by moving the "Treshold" slider while you can see a preview of the result. (The Treshold slider is only available when there are 2 levels; when there are intermediate grayscale levels, the slider is disabled.) In addition to the posterization threshold, you can apply a mode filter or a noise filter to smoothen the result.
The second preprocessing method is useful to vectorize contour lines and can be applied to data types other than byte. With this method you can define intervals between each contour line to be vectorized. You can specify the number of intervals in which you want to divide the raster, or indicate the size of each interval. The cuts that have been selected will be shown on a graph that represents the histogram of the image. On this graph, you can modify the distance between cuts, or add or remove some of them using the mouse. It is also possible to modify the distance between cuts in numeric format using the table on the right of the histogram. Each entry in the table represents a cut with the corresponding value. This type of preprocessing is used for digital elevation models (for example .adf or .asc images).
When moving on to the last step of the vectorization wizard, the preprocessed image is generated with the specified values, and saved in the temporary directory of gvSIG.
The last step is to select the method for generation of vectors. There are two methods: contour and potrace, that can be selected from the drop-down button after which a panel appears with settings that are specific for the method. The first method is the simplest and does not have any options. This method will trace the vectors in straight sections going through the pixel centers. This generates a network of vectors based on very small straight sections. The potrace method uses the potrace library for vectorization. The available options for this method are those that the potrace library provides and they are used to define the precision of the tracing of the curves: number of points for each curve, threshold, optimization, etc.
When clicking on "Apply" or "Accept", the process of vectorization will start after which you will be prompted whether to display the generated layer in the TOC.
The "Analysis view" can be launched from the raster toolbar by selecting "Raster layer" from the left drop-down button and "Analysis View" on the drop-down button on the right. Make sure that the name of the raster layer that you want to analyze is displayed as current layer in the text box.
With this functionality you can zoom in on the current raster layer with 3 different zoom levels:
You can change the relation between the zoom level of this floating window and the gvSIG view. This is done by right-clicking on the floating window and selecting one of the values that are shown in the drop-down menu that appears. The available options are x4, x8, x16, and x32. This means that the pixels in the floating window will be 4, 8, 16, or 32 times bigger than the original.
The floating window also shows the RGB values of the pixel on which the cursor is currently located. The text colour of the RGB values as well as the colour of the central cross (red by default) can be changed by right-clicking on the floating window and choosing the option from the drop-down menu.
Keep in mind that, to see the effects in the floating window while moving the mouse over the view, the view must be active. If it is not active, just click on the view. When the cursor is outside the view, the content of the floating window appears black.
There can only be one Analysis view open at any time in gvSIG. Therefore, the button "Analysis View" is re-labelled as "Close Analysis View" when the Analysis view is already open, so that it can be closed before re-opening.
The Geolocation tool provides the ability to change the related transformation that is applied to a raster in its display. A raster could have coordinates that place it in a geographical position. This geographic location is only a change of position, scale and rotation of the image relative to an original position. These changes in position, scale and rotation are those that can be changed with this tool. This can be done numerically and by visual approximation.
This tool does not provide capabilities to deal with complex projections and georeferencing involving the need for resampling.
To launch the geolocation dialogue of the layer, the drop-down toolbar is used by selecting "Geographical Transformations" on the left button and "Geolocation" on the dropdown button on the right. Make sure that the text shows the name of the layer to which we like to assign the transformation.
Upon activating the geolocation tool on a raster layer, a small dialog will appear floating on the view with a series of text entries and a button bar. Also the raster layer that has been selected acquires the capacity to be moved, rotated or moved by clicking and dragging it to the right place on the view.
From the geolocation floating box we can modify the transformation of the image on the view. The text entries marked as X, Y, Pix X, Pix Y, Rot X, Rot Y contain the current position in upper left X coordinate, upper left Y coordinate, pixel size in X, pixel size in Y, rotation in X and rotation in Y respectively. If we change these values from the keyboard these will be updated on the image by pressing the "Enter" key while the cursor is inside the text box or when it loses focus.
Centering the raster layer in the view: With this button we center the raster in the current view regardless of zoom it has selected. The coordinates will be automatically calculated.
Direct traslation from Google traslator
To launch the georeferencing dialog it is used the dropdown toolbar selecting the "Geographic Transformations" button on the left and "Georeferencing" from the dropdown button on the right.
Initially we must decide what type of georeferencing to implement, "reference maps" or "without reference maps".
To implement this type of georeferencing is imperative that we have previously charged in a view mapping that we will provide a geographic reference for taking control points. In case of not having it will close the options dialog georeferencing and proceed to prepare for the hearing. Once we have the view with reference maps georeferencing tool launched will see that the option "reference maps" is checked by default. Below is a dropdown menu which lists the views that gvSIG has at that time. If you have several it must select a view which is our base mapping for decision-points.
In the panel marked "a georeferenced file" pops up a dialog for selecting the file for which you want to create checkpoints and later georeferencing.
The panel labeled "Output File" we must put the path and file name destination if the georeferencing is done with resampling. This option can vary from box options once we are inside the application, so it is not essential to a correct value at the moment, but if must be done before the end of the process.
The panel "georeferencing algorithm" select how we will get the output result. There are two possibilities, "affine transformation" and "polynomial transformation".
The affine transformation applied to raster an affine transformation only to the calculations performed with the control points taken. The affine transformation applied will be allocated "on the fly" for the display and the output image is the same as the input. The result of this transformation is therefore a georeferencing file. Keep in mind that this type of transformation is limited and the user will be responsible for selecting the most convenient transformation in each case.
The polynomial transformation involves a resampling of the input image taking into account the reference control points and obtaining an output image with deformations necessary to adapt to the new location. If you select this option we will be forced to decide the degree of transformation that we apply and the type of interpolation that we want to apply for calculating new pixels. Depending on whether you choose one degree or another need a minimum number of control points for them. This number of points required is given by the formula (order + 1) * (order + 2) / 2, ie for a polynomial of degree one will be needed at least three points, to grade two will need six points for third grade ten points ... The interpolation method affects the way we calculate the information that we have not. When an image georeferenced output image has deformations with respect to the original there are areas where no information is available. These can not be empty with what must be calculated from the areas where we know. These calculations can be performed by various methods, the simplest of these is "Nearest neighbor" which will be unknown pixel information closest known pixel. Other methods such as "bilinear" or "bicubic" make calculations using the known group of pixels surrounding the unknown. These other methods give a more relaxed but it is slower in its implementation. This option can vary from box options once we're inside the application.
The panel "Pixel Pitch" is the pixel size information of the output image. In principle this will be calculated from the input image but can be changed manually. This option can vary from box options once we are inside the application, so it is not essential to a correct value at this time.
Executing the application are two views. The left contains the base mapping that we carry in the gvSIG view of the right and the image we want to georeference. Both have a control bar on the right for view actions. Also in the upper left corner are the coordinates of the mouse cursor. In reference mapping coordinates are those of the real world. In the image to be georeferenced coordinates in pixel coordinate on the upper left.
In the central part appears a cursor with a central window. The window cursor is active when the view can be resized and moved. The contents of this window will be on display in the zoom windows. Ca da vista has its associated zoom window at the bottom. Par resize window cursor select the view you want by clicking on it then bring the mouse to the edges of the window until the pointer changes to horizontal or vertical arrows. Now we click and drag to force the resizing. To move the cursor window select the view you want by clicking on it then bring the mouse to the corners of the window until the pointer changes by crossed arrows. We must now drag and drop to force displacement.
There are six controls to handle the zoom level and position of the view mapping Increase the level of zoom: the zoom level increases by multiplying by 2 the current level.
Decrease zoom level: it decreases the zoom level by dividing by 2 the current level.
Zoom area selection: Activates a tool on the hearing in order to make a rectangle the area we want to see enlarged.
Full Zoom: Put a zoom level so that you can view the entire mapping.
Zoom Previous: Sets the zoom level that you previously selected.
Displacement: clicking and dragging on the scroll view mapping.
Each view has an associated georeferencing zoom window centered over the cursor. When we move the cursor on the sale of view varies the position where the zoom and focus when we change the window size changes the zoom level. In the upper left corner of the window coordinates of the mouse cursor as in the overview.
A control point is an entity that provides a correspondence between a geographic coordinate and pixel coordinate. Control points are represented in raster geographic view as Blue-and red circles respectively. To add a new control point is selecting "New" in the table control. This makes a new entry in the table appears. A control point is associated with a table entry. By selecting "New" automatically creates a point at coordinates 0, 0 for both views and will activate the tool "move point". Now clicking on the view point where we will move puncture. We assign the coordinate point numerically by writing directly on the input value in the table (X for the geographic coordinates X, Y geographic coordinate for Y, X 'for X and Y pixel coordinate' for the pixel Y coordinate). The points can also be moved by clicking and dragging on them. This may be done both in hearings and in the zooms.
The panel labeled "Output File" we must put the path and file name destination if the georeferencing is done with resampling.
The panel georeferencing algorithm "select how we will get the output result. There are two possibilities, "affine transformation" and "polynomial transformation".
The affine transformation applied to raster an affine transformation only to the calculations performed with the control points taken. The affine transformation applied will be allocated on the fly for the display and the output image is the same as the input. The result of this transformation is therefore a georeferencing file. Keep in mind that this type of transformation is limited and the user will be responsible for selecting the most convenient transformation in each case.
The polynomial transformation involves a resampling of the input image taking into account the reference control points and obtaining an output image with deformations necessary to adapt to the new location. If you select this option we will be forced to decide the degree of transformation that we apply and the type of interpolation that we want to apply for calculating new pixels. Depending on whether you choose one degree or another need a minimum number of control points for them. This number of points required is given by the formula (order + 1) * (order + 2) / 2, ie for a polynomial of degree one will be needed at least three points, to grade two will need six points for third grade ten points ... The interpolation method affects the way we calculate the information that we have not. When an image georeferenced output image has deformations with respect to the original there are areas where no information is available. These can not be empty with what must be calculated from the areas where we know. These calculations can be performed by various methods, the simplest of these is "Nearest neighbor" which will be unknown pixel information closest known pixel. Other methods such as "bilinear" or "bicubic" make calculations using the known group of pixels surrounding the unknown. These other methods give a more relaxed but it is slower in its implementation.
The panel "Pixel Pitch" is the pixel size information of the output image. In principle this will be calculated from the input image but can be changed manually.
The panel labeled "Options" contains settings of a different nature. Since we can change the background color of view, the text color of the views. The "show the number of graphically checkpoint" will be displayed or hidden by the control point a point that indicates the corresponding point number. "Add the CSV file errors" will be generated when this type of text files with all the control points we can ignore the file or add the calculated errors. The "Focus the selected point view" makes automatically every time we select a point on the table the view is focused on this. The effect is much as if the tool center point was always active. The "error threshold for the warning," assigns the value at which the error appears in red on the table.
The points table is below the sights and initially will be empty. Each table entry corresponds to a checkpoint. It appears all the information related to a point. This table can see it folded its default state or maximized. In its maximized state are folded more information. On the left side of the row there is a check to activate and deactivate the current row. This means that this point will not be displayed graphically or be taken into account for calculation errors and will be prosecuted to do a test. The information can be found in the points table on each point:
The quality of the geometric correction can be estimated based on the mean square error RMS error and the contribution of each point. When the contribution to RMS of a point is high, this may indicate that the correspondence of points was poorly selected and the point is not well suited to model transformation between image and map or other information used as reference. The points with high contribution that exceeds a certain threshold can be deleted or deactivated, and calculate the RMS. However, when we are fully confident of the location of a point, and to find you, the RMS is triggered, it may be possible that the geometric model does not resolve the local arrangements, for which they may need a better model, which means, put some more points, right on the problem area.
There is also a global RMS error in an external text field for all points.
Tool center point: When you press the focus control to the view point that is selected.
Georeferencing operation completes. Before you ask if we carry on the gvSIG view the results of the last trial. You'll also want confirmation of application output.
Launching the options dialog.
Make a test with the control points currently entered. If there are not enough for the specified algorithm will warn. The result is that applying the transformation and loading the transformed image on the view with the reference maps.
Save the control points in the metadata file attachment with the raster.
Retrieves the control points that are in the metadata file attached to raster.
Ends the test of processing the raster. Eliminate the test image loaded in the view with the mapping.
When the button "Select point" we are active, clicking on the view assigning the selected point on the table at that time to the position.
There may be ways to capture control points with the tools available. An example would be the following sequence of actions:
Two types of processing for raster. If selected in the options the affine transformation the image obtained is not wide and applies an affine transformation on the view. This transformation is a scaling, displacement, rotation and deformation in the direction of axis X and / or Y axis The transformation with resampling involves generating a new image from the original on which areas can appear empty. These areas are due to the fact that the resulting image should be rectangular but the area covered by the data processing may not have applied this same way.
Once the process of georeferencing the raster generated and loaded in the view we can apply a transparency per pixel to eliminate the empty areas.
The georeferencing without reference maps is useful when you do not have imagery that guide us to assign the control points. We will have to allocate the actual coordinates directly by typing its value. In this case it is useful in view of the left so it will allow more space for the raster and the points table. The operation is very similar to the two views just that when you select the point on the reference maps have to type the entry of the table directly.
The operation of other controls is the same as with reference maps.
When you load a file that is not georeferenced, gvSIG can prompt you to enter the coordinates manually. For this the option has to be activated in preferences, which is disabled by default. The option that needs to be activated is "Pedir las coordenadas al cargar un raster que no tiene georreferenciación".
In this case we will see a dialog with the message: "Name of layer. The layer has no georeferencing. Do you want to enter them manually?". If you answered "No", the load is carried out with the coordinates (0, 0) in the top left corner (width in pixels, height in pixels) in the lower right corner. If the answer is "Yes", then a dialog to enter the coordinates of the raster will show. In this one must be careful to enter valid data to avoid erroneous results. The dialog has two tabs from which we can enter the coordinates in the form of affine transformation or the upper-left and bottom-right corners. In the first mode will need the X and Y coordinates of the upper right corner of the original raster, the pixel size in X, the pixel size on Y, X rotation and the rotation Y.
In the second mode we only introduce the coordinates of the corners in the order indicated by the graphs.
For the reprojection of raster layers, gvSIG uses the GDAL library. The reprojection process can be launched in two different ways: By activating the reprojection icon from the raster toolbar for images that have already been loaded to the view, or by reprojecting the layer before it is loaded to the view if this is needed.
The GDAL library does not support ecw, mrsid or jpeg2000 images and therefore images in these formats cannot be reprojected.
To launch the reprojection dialog from the raster toolbar, select "Geographic transformations" on the left drop-down button and "Reproject layer" on the drop-down button on the right. Make sure that the layer that you want to reproject is set as the current layer in the text box.
When launching the reprojection function from the raster toolbar, a dialog opens which shows the projection information of the input image as "source projection". The source projection cannot be changed as it is assumed that the input layer has been loaded into the view with the correct projection. Under "target projection" the projection of the output image can be set by the user through the standard gvSIG dialog for CRS and transformations. It should be noted that not all transformations are supported; the projection options depend on the GDAL reprojection library.
The output layer can be saved on disk or opened in memory as temporary file. When the first option (which is the default) is selected, the user is prompted for a file name and path. Then, the reprojection process starts and when this is finished, it will ask whether you want to add the new layer to the TOC.
NB: When reprojecting an image, the used transformation is "EPSG Transformation"; with raster layers the other transformations (manual, composed or grid) can not be used.
Images can also be reprojected before loading them to the view. To do this, you will need to have the option "Ask for projection when the raster loaded has different projection from view", located in the raster options section of the Preferences dialog, selected. If this option is selected and a raster with a different projection than the view is loaded, a dialog is opened with projection options. The default option is to load the layer while ignoring the projection, but you can reproject the layer by selecting the option "Reproject raster to the view projection". Then, the same Reprojection dialog is shown, but in this case the "target projection" is fixed to the projection of the view, and the "source projection" can be changed, as in some cases the projection of an image may not have been set correctly or the needed projection information maybe missing.
After accepting the settings, the reprojection process will start and the layer will be added to the TOC.
Exporting Tables to DBF and Excel
The application allows tables (whether layer attribute tables or separate alphanumeric tables ) to be exported in two formats:
Follow these steps to export a table:
A. Select the table:
To export a table it must first be opened. The export operations are activated once the table is opened.
To export a subset of the records use the selection tools to select the records to be exported. The records can be selected either from the attribute table or by selecting the corresponding geometries in the View.
B. Select the export option
To do this select the menu option:
For Excel: Table/Export/Excel.
For Dbase: Table/Export/DBF.
C. Enter the file name
Locate the directory where you want to create the file and type a name for the file. If the file already exists the application will ask for confirmation to overwrite it.
The tool for joining tables has been improved and now reflects the relationship between the tables once they have been joined. The operation of the tool remains the same in that both tables must contain a common field that will be used to join them together.
It is possible to add a prefix to the source table fields so that they can be easily identified in the joined table, e.g. Table1_FIELD1, Table1_FIELD2, etc. In a similar manner a prefix can also be added to the target table fields: Table2_FIELD1, Table2_FIELD2, etc.
The resulting joined table is given a title made up of the tables participating in the join, e.g. Table1 X Table2 X, or vice versa.
The join between the tables can be removed by selecting 'Remove joins' from the Table menu.
The “Join” tool allows two tables to be joined via a common field. You can also access this tool by clicking on the following button
or by going to the “Table” menu and then to “Join”. To join the two tables, carry out the following steps: Firstly, specify the source table the join is to be made from.
Then specify the field to be used for the join.
Then indicate the table you wish to join to the first one.
Finally, indicate the field in the second table which is common to the first one.
If you open the data source table, you will see that the fields of the destination table have been joined. The name of the field added to the table is identified by the word “Join_(Field name)”
You can access this option by clicking on the following button
or by going to the “Table” menu and then to “Statistics”.
The “Statistics” tool allows you to obtain the most common statistical values.
N.B.: Remember that the tool will not be activated until you select a numerical field.
If you wish to obtain field statistics, select the field (left click on the field heading), then click on the “Statistics” tool.
You can only obtain statistics from a series of records, firstly, select the field the values are located in, then select the desired records, and click on the “Statistics” tool.
You can use this tool to define the working area, i.e. the size and properties of the page to be used for the map layout. You can access this tool by clicking on the “Configure page” button in the tool bar or from the menu bar by selecting the “Map” option and then “Prepare page”.
When you have selected the tool a new window will appear:
Page size: The pull-down menu allows you to define the source and size of the paper to be used to print the map. You can select a standard size or define your own.
Measuring units: You can select the units of measurement for the page Height and Width. Orientation: This defines whether the paper will be printed horizontally or vertically.
Margins: This allows you to define the page’s four margins. The ruler is adjusted to fit in with the page margins.
Resolution of the result: You can choose between high, low and normal resolution. When you have finished configuring the page, click on the “Ok” button.
Saving templates gvSIG allows the configuration of a map to be saved as a template.
This can then be used at a later date with different data sources.
The element distribution and properties from a map can be saved.
If you click on the “File” menu then on “Save as template”
a dialogue box appears so you can save your .gvt file which can be recovered at a later date and will allow you to reconstruct the map configuration.
You can use these tools to move around and zoom in and out of the maps page.
You can access the tool from the tool bar or by going to the “Map” menu and then to “Navigation”.
Zoom in: This allows you to zoom into the page.
Zoom out: This allows you to zoom out of the page.
Panning (Frame): This allows you to move the map page.
Full extent: This carries out a full zoom of the page.
Scale 1:1 zoom: This carries out a “real” size zoom of the configured page.
Zoom in: This zooms into the centre of the page.
Zoom out: This zooms away from the centre of the page.
gvSIG can be used to carry out a whole range of operations to prepare the layout of your map.
You can access these tools by going to the "Map" menu then to “Graphics” or by going to the tool bar.
The “Graphics” menu can be used for the following:
gvSIG can be used to add the following cartographic elements to a map:
Many of these cartographic elements are closely linked to the “View” document, so that when changes are made in the view, they are shown in the map (changes in zooms, panning, legend modifications, layer organisation, etc.). You can access the different options from the tool bar or by going to the “Map” menu and then to “Insert”.
The legend represents the visible layers of the ToC in the selected view. If a legend is inserted, it is added in the same order as it appears in the ToC.
In the view frame, select the view the legend is associated with. The order in which the legends in the ToC will be added appears in the panel on the right.
This tool allows you to insert a scale (associated with the view) in the map.
The scale bar dialogue box is shown below:
View frame: Select the view, if there is more than one, the inserted scale is related to.
Bar: Select the type of scale you wish to insert (numeric or graphic). By clicking on the pull-down menu, you can see the different options with which the scale to be inserted in the map can be shown.
Intervals: Select the number of intervals, what each one represents and the number of divisions to the left of the 0 that you require in the interval.
Scale: You can use this section to make the numeric scale appear above the bar.
Units: This defines the graphic scale units of measurement (metres, Km., etc.).
Labels: You can use this box to select the label colour, font and location (numeric scale, units…).
If you click on the “Insert “North” button in the tool bar, you can insert a “North” symbol in the map. Place the mouse pointer on one of the vertexes of the rectangle which define the space to be occupied by the symbol, left click, then drag the pointer to the opposite vertexes and drop. A dialogue box appears in which you can choose between several default North symbols.
You can add new symbols by copying them in the folder:
bin/gvSIG/extensiones/com.iver.cit.gvsig/northimages
of the folder you have installed gvSIG in.
The acceptable format for North symbols is SVG (Scalable Vector Graphics). To add a new North symbol you will need to use an external application (such as Inkscape http://www.inkscape.org). Moreover, in order to ensure that the new North symbol will be correctly processed by gvSIG, it is better to base it on one of the default symbols suggested by gvSIG.
gvSIG has a tool which allows you to insert a box in the map.
If you wish to insert a box, select the following button from the tool bar:
Left click on the map area you wish to insert the object in and drag it to create a frame which will define the future box size.
When you drop it, a window will automatically appear for you to define some of the box properties.
You can use this tool to insert an image in the map.
You can access this tool by clicking on the “Insert image” button or by going to the “Map” menu bar, then to “Insert” and then to “Image”. If you activate this tool and create the frame to insert the image on the map (similar to “Insert view”), the following dialogue box will appear:
If you click on the “Browse” button, you can select the file path of the image to be inserted. You can insert an image in any of the following formats: jpeg, jpg, gif, png and bmp.
From gvSIG version 0.4 onwards, you can add vector files in SVG format to the map.
You can insert a view in the map by clicking on the “Insert View” button in the tool bar.
Place the mouse pointer on one of the vertexes of the rectangle which define the view area, left click and drag the pointer to the opposite vertex and drop. A dialogue box appears in which you can define the view-type element properties you have just inserted.
View: You can use the text box to select the view you wish to insert, if there is more than one.
Active link: If this check box is enabled, any changes made in the view (changing colour, adding a layer…) will be shown in the map. Remember that scale changes will not be affected by this check box, because these modifications are regulated by the scale pull-down menu which appears below.
Scale: Select one of the following three scale types: Automatic: If this option is chosen, any scale change made in the view will automatically be shown on the map.
Keep visualisation scale: In this case, although you change the view frame in the map, the layer associated with the view will not resize itself and will keep the same size it has in the view.
User-defined: This option allows you to define a specific scale.
Quality: This defines the visualisation, as either presentation or draft quality.
Degrees: This allows you to specify a degree of rotation when the view is inserted in the map. This option also appears in the rest of the elements that can be inserted: images, scales, legends and texts.
There are several tools you can use to navigate around the view.
Zoom in: Enlarges a particular area of the view.
Zoom out: Reduces a particular area of the view.
Full extent: Full zoom of the total area included in all the layers of the view.
Panning: This allows you to change the view zoom by dragging the viewing field all over the view with the mouse. Click and hold down the left button of the mouse then move the mouse in the direction you require.
Texts, which can also be inserted by clicking on the corresponding button in the tool bar or by selecting “Maps” then “Insert” and then “Text”, are defined in the following dialogue box.
You can write the text you wish to appear in the map in the text box.
Align: This can be used to select the alignment type (left, centred or right respectively).
Font: This can be used to select the font type. You can also set the font size by activating the corresponding check box and specifying the required size in the text box.
Degrees: This defines the text slope, from the horizontal axis.
Frame: This allows you to define a border around the text you are using.
Text field title: You can also define a title for the corresponding border.
You can insert the following types of graphic elements:
All these elements can be inserted by going to “Insert” in the “Map” menu or by clicking on the corresponding button in the tool bar.
If you wish to insert a graphic element, left click on the map in the place you wish the graphic element to be inserted in.
When you have inserted a graphic element, you can edit its vertexes. You can access this tool by going to the "Map" menu, then to "Edit" and then to “Edit vertexes” or from the following tool bar button.
If you wish to edit a vertex in a graphic element, select the element from the map and go to the tool.
When the elements have been inserted in a map, you can access its properties.
Select the element. Right click to show its contextual menu and select "Properties".
You can access this tool by going to the “Map” menu, then to “Graphics” and to “Align”.
This tool can be used to modify the alignment, distribution and size of the map elements selected.
In the layout: If this button is enabled, the tools in the "Align" menu will use the map limits as a reference. If it is disabled, the selection will be used as the reference.
Alignment: The tools in this section allow you to align the selected graphics (place a series of objects on the same axis) according to your needs (left, horizontally centred, right, top, vertically centred and bottom).
Distribution: This allows you to space out objects at equal distances over a specific area. Match size: This allows you to modify the size of a selected object, using another object as a reference. The adjustments are made based on the largest object in the selection.
The object sizes can be made to coincide in width, height or both.
Space: This allows the selected elements to be “spatially distributed”.
If, for example, you decide to spatially distribute two selected elements in the map (using the active "In the layout" button), the objects will be moved to the same distance from the map’s left and right-hand margins when you click on the first option.
If we click on the second button, the images will be moved to the same distance from the top and bottom margins.
You can access this tool from the tool bar by clicking on the buttons
or by going to the “Map” menu, then to “Graphics” and to “Group” or “Ungroup”.
You can access this tool by going to the “Map” menu then to “Graphics” and then to “Bring to front” or “Send to back” respectively or from the tool bar by clicking on the following buttons:
You can use this option to change the viewing order of the selected elements in the map by bringing them to the front or sending them to the back.
This tool draws a frame around a selected element or elements.
You can access this tool from the tool bar by clicking on the following button
or by going to the “Map” menu and then to “Graphics” and "Graphic line".
The available options are shown in the following dialogue box:
The different options include a check box which allows you to group the graphic line and the object you have inserted in the map so that they make one single element and not two separate ones.
If you click on the “Configure” button, another dialogue box appears which can be used to define the properties of the graphic line or frame to be inserted.
Select the properties and click on the “Ok” button if you wish to use the new configuration or "Cancel" if you wish to maintain the default values.
You can access this tool by going to the tool bar and clicking on the following button
or by going to the “Map” menu then to “Graphics” and to “Size/Position”.
This tool opens a dialogue box which allows you to specify the size and position of the selected element.
You can edit the different text fields and modify and specify the object’s size and position.
These tools allow you to undo actions you have taken on the map or redo the actions you have previously undone.
You can access these tools by clicking on the “Undo” (left-facing arrow) or “Redo” (right-facing arrow) buttons
or by going to the menu bar and selecting the “Map” option.
You can also undo several actions by using the command stack. This tool allows you to view the actions you have carried out on the map and decide which point you wish to continue working from.
The advantage of this tool is that you can undo or redo several actions at the same time. However, you cannot undo a specific action, i.e. if you take six actions, you cannot undo just the fourth one. The sixth and the fifth action will also be undone.
You can also access this tool by clicking on the command stack button in the tool bar
or by going to the “Map” menu bar and then to “Command stack”.
You can delete any of the elements selected in the “Map” by clicking on the “Delete selection” button in the tool bar.
You can use these tools to export a layout to a postScript and/or pdf file by going to the "File" menu and then selecting "Export to ps" or "Export to pdf" respectively
or by clicking on the following buttons in the tool bar:
This opens a dialogue box in which you are asked to specify a file to save the resulting postscript file (with the .ps extension) or pdf file (with the .pdf extension). When you have selected where you wish to save the document, click on “Save”.
This option opens the printing dialogue box from which you can select the printing options (selecting printer, quality, etc.).
N.B.: The specifications which are not enabled depend on the type of printer installed.
Wizard to print the active View using a template
Adds the ability to print a View using a wizard, which can change basic parameters (title, page size, etc). This option is accessible through the menu View/Quick Print.
You can set:
The result looks something like this:
You can print directly from the wizard, or first preview the result (as shown in the screenshot) and then print from this preview. It is also possible to modify any element in the preview (the width of the map, layers displayed in the legend, etc.) in the same way as amending any Map document in gvSIG.
The preference window allows you to customise gvSIG. You can access the preference window by going to the "Window" menu then to "Preferences"
or by clicking on the “Preferences” button in the tool bar.
When you have accessed the tool, a new window appears in which you can configure your preferences.
Select the property you wish to access from the tree on the left and the preferences you can configure will appear in the space on the right.
The annotation preferences allow you to define the default characteristics you wish the annotation layers to have.
You can predefine the default characteristics you wish the annotation layers to have.
Text You can select the default text to be written in the annotation layer if the record of the field you have chosen to label is blank. You can choose not to write anything in the record if you wish so that it remains blank.
Font type You can select the default font type in which you wish the annotation layer’s text to be written.
Text style You can select the default text style you wish the annotation layer to have.
Text height You can select the default text height you wish to be used in the annotation layers.
Text rotation You can use the text rotation option to select the default orientation that the text in the annotation layers will have. For example, if you want the text to be shown horizontally, input “0 degrees”. If you want the text to be shown vertically, input 90º. Remember that gvSIG uses sexagesimal graduation and this turns anti-clockwise.
Text colour You can select the default text colour you wish the text in the annotation layers to be shown in.
This allows a series of default colours used in a gvSIG editing session to be chosen. A detailed explanation is provided below:
This allows you to set the default colour for the selected geometry of a layer which is being edited.
This allows you to set the colour of the reference axis which will guide you through any editing operations, for instance operations such as “symmetry”, “rotate” etc…
This allows you to set the default colour of the selection frame used to select the required geometry.
This allows you to set the default colour for the “Handlers”, in other words the vertexes which make up the selected object. In this case, the colour of the outline can be selected, as can the colour of the inside of the handler.
This tool establishes whether gvSIG needs to remember the project windows’ position and size.
If you pull down the tree (click on “+”), the properties you can configure in “General” will appear.
This tool defines the directory for the extensions that gvSIG must use.
You can use this tool to modify gvSIG’s appearance. Pull down the box with the available options and select the required option.
N.B.: You will have to restart gvSIG for this change to take effect.
You can use this option to create a shortcut to the folders your projects (.gvp), data (raster and vector) or templates (.gvt) are saved in.
You can specify the points per inch for your display in the “Resolution” text box.
gvSIG allows you to calculate the exact resolution of your display as follows:
Place a ruler on the screen to measure the straight line drawn in the “Test measurement” box.
Write the measurement obtained in the text box underneath (the value 5.61 has been inserted in this example) and the units in which this measurement was taken (“Centimetres” in our case).
Click on the “Calculate resolution” button.
gvSIG automatically provides a points per inch value for the resolution of your display.
This appears in the corresponding text box (the result in our case is 95ppi).
This allows a default web browser (for the Linux operating system) to be specified for any search carried out from gvSIG to any of the hyperlinks found in the application.
The first option contains the pull-down menu in which the different supported browsers are located.
The second option can be used to specify which browser you want to open the different URLs included in the application such as the URLs in the “Help” menu (Example: firefox %www.gvsig.gva.es).
This allows you to configure the extensions that gvSIG uses while running. Pull down the extension tree and select the required extension.
A description of the selected extension is displayed. You can activate or deactivate the extension and modify its order of priority in the list.
N.B.: If you activate an extension, you will have to restart gvSIG to use it.
gvSIG has support for showing the application's text based on a language selection, that by default it is usually the same as for the operating system but that the user may change through the language preferences panel.
Translations to new languages have been added to every new released version of gvSIG, especially thanks to the support of the community and the translators involved.
However, to add a ne language, make corrections or finish the translation of one of the languages available, it has been necessary to wait to the release of the new version of gvSIG.
However, to add a new language, make corrections or finish the translation of one of the languages available, it has been necessary to wait to the release of the new version of gvSIG.
The translation manager extension will allow gvSIG users to append translations to new languages and updates to the existing ones over a version already installed with the application, without having to reinstall it. This way, there will be the possibility to publish translations to new languages from within gvSIG, without having to wait for the following gvSIG version.
Furthermore, the extension will let any gvSIG user to update or translate to a new language the application chains and will allow checking the result over the application itself without having to resort to a programmer.
Upon installing the translation manager extension, the language selection panel will be replaced by a new preference panel in which besides being able to select the application language, there will be a series of buttons to perform the language translation.
With the new translation manager, the extension adds the option to distinguish the translations, not only by language but by country and other variants as well. This is due to the fact that for some languages there are differences between countries (e.g. English from United Kingdom vs. United States) and even variants within the same country (e.g. Norwegian Nynorsk alongside Riksmål).
The following figure shows the translation manager panel with the language preference panel:
The panel shows upon selecting the option Idioma (1), from within the General section of the gvSIG preferences. A table with the list of available translations to languages will show in the upper part inside the panel. The columns that show in the table are:
In the lower part of the table there are a number of buttons that allow managing the application translations. The task of those buttons, in general will be applied to the language selected in the table (6), selecting over the row of the table of the language that will be used.
The function of those buttons is as follow:
To change the language of the application we go to the Activar column of the table and select the radio button of the row of the language we would like to visualize the application.
In order to commit the change, we must click in the Aceptar button from the preferences window. The selected language will be installed next time gvSIG is started.
A compressed file with ZIP format will be used to install or export translations.
This file should always have, at least a file locales.csv with the list of translations that are contained in the ZIP file, as well as a .properties file with the labels and the translations for each of the languages contained in the locales.csv file.
Note: the files must obligatorily be on the root of the ZIP file and not inside any folder.
For example, a file with the translations to the German and English languages should have the following files:
The locales.csv file serves to show the list of available translations in the ZIP file, indicating for each one of them those that are used as translation or updating reference, and those that are not.
The locales.csv file is in text format, with every language indicated in a line and the values separated by comma with the following format:
FILE_NAME,LANGUAGE_CODE,COUNTRY_CODE,VARIANT_CODE,REFERENCE (whether it is a reference language or not)
Optional fields are allowed to remain empty, but all fields must be separated by commas. If we would like to edit this file we could use any regular text editor or spreadsheet, as long as we keep the CSV comma delimited format.
The content of the locales.csv file in the initial example would be:
text.properties,es,,,true text_en.properties,en,,,false
To install the translation of a language or update one already existing, we need to have a compressed ZIP file saved in the file system. The ZIP file should include a properties file with the translated texts to that language.
To install a language translation, we will select Instalar from the language preferences. A file browser will open and we will look for the .zip file to be installed in our file system.
Once the .zip file to be imported is selected, we will click in the Importar button and the file will be loaded by the application. Next gvSIG will let us know if the import was successful.
If it is a language already installed in the application, the new translation will substitute the previous one. If on the other hand it is a new language, it will be installed and the new language will show up in the table of available languages.
If we would like to uninstall a translation to a language we will select from the table the row corresponding to the language and click the Desinstalar button.
The application will ask for confirmation to uninstall the selected language. We can cancel, if we do not want to uninstall the language or accept, after which the corresponding text file will be erased and removed from the list.
If we want to complete or fix the translation of one of the available languages in gvSIG, we can use the export to update option.
For that we will select the row of the language we would like to update from the table and then click on the Actualizar button.
We will be asked to select a reference language. Specially if we are going to complete a language translation, we will need another language that is complete from which we will translate the pending chains.
Next there will be a dialog that will allow us to save the ZIP file with the export to a location within the file system of our computer. By default it will named in English with the .zip extension.
Once it is saved, we can unzip the zip file and to proceed to edit the language translation we would like to complete. The files with the text chains that are exported always have the following format:
text_[CODIGO-IDIOMA]_[CODIGO_PAIS]_[CODIGO-VARIANTE].properties
The variant and country codes are optional. In the case of the Spanish language it will not have language code either since it is by default the base language in gvSIG.
Once the editing of the language translation to be completed is finished, we can create a new ZIP file with the content of the files extracted from the export zip file. It is important to include all the files since in the locales.csv file there is information that allows gvSIG to identify what language we are updating and which one is its properties file.
After that we could use the install or update a language options to install the changes as it is explained in the previous section.
If we want to translate the gvSIG interface to a new language we could ask the application to export a file with all the identifiers of the text chains to translate.
For that we first select a reference language, choosing the row corresponding to the selected language from the table. Like in the language updating option, besides the selected reference language we need to include the Spanish and English languages as well.
Next there will be a dialog that will allow us to select the new language we would like to translate to. Those languages appear in their native language to facilitate identification.
Once the language is selected, there will be a dialog asking where we would like to save the generated ZIP file.
The above mentioned ZIP file has the same content as in the language updating case. The difference is in the .properties file of the language we are going to translate to, that in this case contains all the identifiers but empty.
In the previous figures, for example we are going to translate to the Danish language. Therefore, we need to edit the text_da.properties file. The contents of it should be something like:
searchButton= enter_layer_name= inside_circle= ascending_order_tooltip= time= wfsLoad= shp= infocrs= A2= lowerCoordinates= results= discard_changes= ...
By opening the .properties file of one of the reference languages we could see the text that corresponds to each of the labels and thus proceed with the translation.
Once the translation is finished, we can recreate again the ZIP file with all the content and proceed to load the new language through the Instalar un idioma option. If we want to visualize the text in that language we would need to mark it as the active language and restart gvSIG.
Backup project automatically before saving
This extension can be found under the application's general preferences and allows the user to automatically backup a gvSIG project file (.gvp) before replacing it. The backup is created in the same directory as the original project, with the same name, and with a .bak extension. To enable automatic backup, select the third checkbox in the General section of the Application Preferences:
Vía the menu: Window → Preferences → General
The NoData value refers to information that is not taken into account during the data processing. This NoData information is defined as one specific value depending on the data type of the raster layer. These NoData values can be set as transparent in gvSIG, because if these values do not represent relevant information, you may not want to display them. The value is associated with the raster layer (i.e. each image can have a different NoData value) and can be defined in the metadata or assigned by the user.
To find out if the layer contains NoData values, you can open the "Raster properties" dialog and select the "General" tab where the NoData information is shown.
A layer can have an associated NoData value defined in its metadata. In this case, the text "Layer" is displayed in the drop-down text box in the NoData section. This means that the NoData value associated with the layer is being used. The text box labelled as "Value" shows the numeric value. In case the layer does not have a NoData value associated with it, the text "Deactivate" is shown in the drop-down text box while the "Value" text box is inactive and the value in this text box is irrelevant. If you want to define a new NoData value for the layer, either because the current NoData value is incorrect or because the NoData value is not defined, you can select the option "Custom". When selecting this option, the "Value" textbox will show the default NoData value as set in the "Preferences" dialog. You can modify this default value if needed.
By clicking "Apply" or "Accept" the new value is assigned to the layer. Keep in mind that the NoData values defined in this way are only temporary; when the layer is opened again this value will have been lost. To associate the new value with the layer you can click the button "Save as default", after which a message appears to confirm this action: "The default NoData value will be changed. Would you like to continue?"
The "Raster" section of the "Preferences" dialog contains options for "NoData" values. Here, you can specify whether you want to display the NoData values in the layers that are loaded into gvSIG.
The option "Set NoData value to transparent" does exactly what it announces; for any raster layer that is loaded into gvSIG and has associated NoData values (as defined in its metadata or assigned by the user), the NoData values will not be displayed. For efficiency in displaying images, this option is disabled by default.
Another available option is to change the default NoData value. When in the "Layer Properties" dialog the "Custom" option is selected, the NoData value that will appear is the default NoData value as set in this text box in the "Preferences" dialog.
gvSIG allows you to check the status of a network connection.
Firewall/Proxy
If you use a proxy connection, you can configure your connection parameters so that gvSIG can use them.
This section of the preference window can be used to customise how you wish to work with your map documents.
You can define both the horizontal and vertical grid spacing values and decide whether the grid should be displayed, enabled or disabled and whether the ruler should be enabled or disabled simply by clicking on the required check boxes. When you have selected your preferences, click on “Ok”.
Puede establecer los valores que utilizará gvSIG cuando quiera realizar un zoom sobre una vista así como cambiar el color de la selección que por defecto es el “amarillo”.
Desde esta ventana puede además establecer las unidades del mapa y de las mediciones que realice en gvSIG.
En gvSIG 1.9 se ha introducido la posibilidad de seleccionar de manera independiente las ud. de medida lineal y de área, así como la opción de darle transparencia al color de selección.
Desde esta ventana puede cambiar la proyección de la vista por defecto, para ello pulse el botón “Cambiar” y aparecerá un cuadro de dialogo desde el que escoger el sistema de referencia que prefiera.
Si la opción "Mostrar extensión de los ficheros" está marcada, cuando agreguemos una nueva capa al TOC el nombre de esta contendrá la extensión del fichero (.shp, .dxf, ...)
Selecting the loading order of layers.
The ability to choose the loading position of a new layer has been added. For example, you can specify that new raster layers should be loaded just below the vector layers, or be loaded below all the layers. Similarly, you can decide on the position of new vector layers and other layer types. This option is accessible in the gvSIG Preferences, as shown in the following screenshot:
The choice in this dialog does not affect a specific gvSIG project but is applied to all projects. At present it is not possible to choose a different order per project.
This tool allows you to add a number of add-ons to gvSIG such as languages, plugins, symbol sets or application aids.
Note
Some of this functionality is only available from Version 2.0 of the application onwards. In version 1.11 only installation of plugins is available.
Plugins can be added from disk (files of type .gvspkg and .gvspks) or from a repository over the Internet.
From the Tools / Add-ons manager menu select Standard Installation.
With this option you can view the add-ons installed by default and reinstall them.
This option is only available for official add-ons.
Note
This feature is only available from Version 2.0 of the application onwards.
From the menu Tools / Complement Manager select 'Installation from file', choose the .gvspkg or .gvspks file you want and click 'Next'.
With this option you can install add-ons that have been previously packed in .gvspkg or .gvspks files.
After selecting and accepting the file in question, appropriate add-ons are added to the list of plugins by default, either in the official add-ons tab (those that have been through the gvSIG process of formalizing) or in the unofficial tab.
More information on how to package add-ons.
From the Tools / Add-ons Manager menu select 'Installation from URL', enter the URL and click 'Next'.
By default the official repository of packages for the current version of gvSIG is shown.
Select the add-on to install from the Official (those that have passed the process of formalizing gvSIG) or the Unofficial tab and click 'Next':
After installation, you should see the following window:
If you go back to the Add-Ins menu you will notice that the add-on has been properly installed.
This text is targeted at those using geospatial algorithms from the SEXTANTE library through the available GUI on this new version of gvSIG, the SEXTANTE toolbar. It is located at the right of the three main icons of the gvSIG toolbar.
Particular information about SEXTANTE algorithms is not found in this text. The user should refer to the context help system instead.
There are five basic elements in the SEXTANTE toolbar, which are used to run SEXTANTE algorithms for diferent purposes. Choosing one tool or another will depend on the kind of analysis that is to be performed and the particular characteristics of each user an project.
The SEXTANTE elements are available in a toolbar like the one show next.
Along the following chapters we will review each one of this elements in detail.
The Toolbox is the main element of the SEXTANTE GUI, and the one that you are more likely to use in your daily work. It shows the list of all available algorithms grouped in different blocks, and is the access point to run them whether as a single process or as a batch process involving several executions of a same algorithm on different sets of inputs.
Depending on the data available in the gvSIG View, you will be able to execute an algorithm or not. When there is enough data for the algorithm to be executed (i.e. the algorithm requires raster layers and you have raster layer already loaded into the View), its name is shown in black, otherwise, it is show in grey.
In the lower part of the toolbox you can find a text box and a search button. To reduce the number of algorithms shown in the toolbox and make it easier to find the one you need, you can enter any word or phrase on the text box and click on the search button. SEXTANTE will search the help files associated to each algorithm and show only those algorithms that include the word or phrase in their corresponding help files. To show all the algorithms again, make a search with an empty string.
To execute an algorithm, just double-click on its name in the toolbox.
Once you double-click on the name of the algorithm that you want to execute, a dialog similar to the next one is shown (in this case, the dialog corresponds to the Anisotropic cost algorithm).
This dialog is used to set the input values that the algorithm needs to be executed. There is a main tab named Parameters where input values and configuration parameters are set. This tab has a different content depending on the requirements of the algorithm to be executed, and is created automatically based on those requirements. On the left side, the name of the parameter is shown. On the right side the value of the parameter can be set.
Those algorithms that generate raster layers as output have an additional tab named Raster output. This tab is used to set the characteristics of those output raster layers, specifying its extent and its cell size. On the lower part of the window there is a help button. Click on it to see the context help related to the current algorithm, where you will find detailed description of each parameter and each output generated by the algorithm.
Although the number and type of parameters depends on the characteristics of the algorithm, the structure is similar for all of them. The parameters found on the parameters tab can be of one of the following types.
Click on the button on the right side to see the table and edit its values.
Depending on the algorithm, the number of rows can be modified or not, using the buttons on the right side of the window.
The Raster output tab is found in those algorithms that generate raster layers. Unlike in most GIS, when combining several raster layers as input for an algorithm, they do not have to have the same extent an cellsize in order to process them together. That is, layers don't have necessarily to match" between them. Instead, the characteristics of the output raster layer are defined and SEXTANTE performs the corresponding resampling and cropping needed to generate layer with those characteristics.
It is responsibility of the user to enter adequate values and be aware of the limitations of this mechanism, so as to generate cartographically correct results. (i.e. you can select a small cell size for the resulting raster layers, but if the input layers you are using have a bad resolution the results will not be geographically sound).
The following options are available in the raster output tab:
If an option other than the automatic fitting is selected, SEXTANTE will check that the values are correct and the resulting layers will not be too large (due to, for instance, a wrong cell size). If the output layers seems to large, SEXTANTE will show the next message dialog to ensure that the user really want those layer to be created.
Not all algorithms have the first option available, since not all algorithms that generate raster layers take some other raster layer as input. The interpolation algorithms, for instance, take a vector layer and create a raster one. The extent and cellsize of the latter has to be manually defined, since it cannot be set based solely on the input vector layer.
Data objects generated by SEXTANTE can be of any of the following types:
Layers and tables can be saved to a file, and the parameters window will contain a text box corresponding to each one of these outputs, where you can type the desired file path. If you do not enter any file path, a temporal file name and folder will be used.
The supported formats for the SEXTANTE cartographic output files are as follows.
To select a format, just select the corresponding file extension. If the extension of the file path you entered does not match any of the supported ones, the default extension (the first one in the list of supported ones) will be appended to the file path and the file format corresponding to that extension will be used to save the layer or table.
Graphics and texts are kept in memory and shown at the end of the algorithm execution in a new dialog. This dialog will keep the results produced by SEXTANTE during the current session, and can be shown at any time using the Results button. You can save graphical results as images in png format, and texts as HTML files. Rightclick on the name of the result in the tree on the left hand of the window and select Save as....
Each SEXTANTE algorithm has its own context help file, which provides detailed information about the meaning of each input parameter and each output object, and gives hints about its usage. To access the context help system, click on the button that you will find in the algorithm dialog, or rightclick on its name on the toolbox and then select See help.
The context help system contains not only information about each algorithm, but also description of each one of the elements of the SEXTANTE GUI like the text you are reading now. You will find it at the top of the tree on the left hand side of the help window. Just select an item to see its associated help file on the right canvas.
Help files associated to each algorithm are stored as XML files, and can be edited using the help authoring tools included with SEXTANTE. Right click on the name of the algorithm in the context help window and select Edit help to get to the following window:
On the left hand side you can select any of the elements to be documented (input parameter and outputs, along with other fixed field such as a general description of the algorithm). Then use the right hand side boxes to enter to text associated to that element or add images.
The graphical modeler allows to create complex models using a simple and easytouse interface. When working with a GIS, most analysis operations are not isolated, but part of a chain of operations instead. Using the graphical modeler, that chain of processes can be wrapped into a single process, so it is easier and more convenient to execute than single process later on a different set on inputs. No matter how many steps and different algorithms it involves, a model is executed as a single algorithm, thus saving time and effort, specially for larger models.
The modeler has a working canvas where the structure of the model and the workflow it represents are shown. On the left part of the window, a panel with two tabs can be used to add new elements to the model.
Creating a model is a two-step process.
The first step to create a model is to define the inputs it needs. The following elements are found in the Inputs tabs on the left side of the modeler window:
Double-clicking on any of them, a dialog is shown to define its characteristics. Depending on the parameter itself, the dialog will contain just one basic element (the description, which is what the user will see when executing the model) or more of them. For instance, when adding a numerical value, as can be seen in the next figure, apart from the description of the parameter is needed to set a default value, the type of numerical value and a range of valid values.
For each added input, a new element is added to the modeler canvas.
Once the inputs have been defined, it is time to define the algorithms to apply on them. Algorithms can be found in the Processes tab, grouped much in the same way as they are in the toolbox.
To add a process, double-click on its name. An execution dialog will appear, with a content similar to the one found execution panel that SEXTANTE shows when executing the algorithm from the toolbox.
Some differences exist, however, the main one being the absence of a raster ouput tab, even if the selected algorithm generates raster layers as output.
Instead of the textbox that was used to set the filepath for output layers and tables, a checkbox and a text box are found. If the layer generated by the algorithm is just a temporary result that will be used as the input of another algorithm and should not be kept as a final result, the check box should be left unchecked. Checking it means that the result is a final one, and you have to supply also a valid description for the output, which will be the one the user will see when executing the model.
Selecting the value of each parameter is also a bit different, since there are important differences between the context of the modeler and the toolbox one. Let's see how to introduce the values for each type of parameter.
Once all the parameter have been assigned valid values, click on OK and the algorithm will be added to the canvas. It will be linked to all the other elements in the canvas, whether algorithms or inputs, which provide objects that are used as inputs for that algorithm.
Once the model has been designed, it can be executed clicking on the Run button. The execution window will have a parameters tab automatically created based on the requirements of the model (the inputs added to it), just like it happens when a simple algorithm is executed. If any of the algorithms of the model generates raster layers, the Raster output tab will be added to the window.
Elements can be dragged to a different position within the canvas, to change the way the module structure is displayed and make it more clear and intuitive. Links between elements are update automatically.
To change the parameters of any of the algorithms of a model, doubleclick on it to access its parameters window.
To delete an element, right-click on it and select Delete. Only those elements that do not have any other one depending on them can be deleted. If you try to delete an element that cannot be deleted, SEXTANTE will show a warning message.
Models can be saved to be executed or edited at a later time. Use the Save button to save the current model and the Open model to open any model previously saved. Model are saved in an XML file with the .model extension.
Models saved on the models folder will appear in the toolbox algorithm tree in a group named Models.
When the toolbox is invoked, SEXTANTE searches the models folder for files with .model extension and loads the models they contain. Since a model is itself a SEXTANTE algorithm, it can be added to the toolbox just like any other algorithm.
The models folder can be set from the SEXTANTE toolbox, clicking the configuration button at the right lower corner of the window, and then introducing the path to the folder in the corresponding field.
Models loaded from the models folder appear not only in the toolbox, but also in the algorithms tree in the Processes tab of the modeler window. That means that you can incorporate a model as a part of a bigger model, just as you add any other algorithm.
SEXTANTE algorithms (including models) can be executed as a batch process. That is, they can be executed using not a single set of inputs, but several of them, executing the algorithm as many times as needed. This is useful when processing large amounts of data, since it is not necessary to launch the algorithm many times from the toolbox.
Executing a batch process is similar to performing a single execution of an algorithm. Parameter values have to be defined, but in this case we need not just a single value for each parameter, but a set of them instead, one for each time the algorithm has to be executed.
Values are introduced using a table like the one shown next.
Each line of this table represents a single execution of the algorithm, and each cell contains the value of one of the parameters. It is similar to the parameters tab that you see when executing an algorithm from the toolbox, but with a different arrangement.
By default, the table contains just two rows. You can add or remove rows using the buttons on the right hand side of the window.
Once the size of the table has been set, it has to be filled with the desired values.
Whatever the type of parameter it represents, every cell has a text string as its associated value. Doubleclicking on a cell, this string can be edited, directly typing the desired value. For most of the parameters, however, it is more convenient to use the button on the right hand side of the cell. Clicking on it, a dialog is shown to select the value of the parameter. The content of this dialog depends on the kind of parameter, and it features elements that make it easier to introduce the desired value. For example, for a selection parameter the list of all possible values is shown and the value can be chosen from them.
For all parameter cells, if the introduced value is correct, it will be shown in black. If the value is wrong (for instance, a numerical value out of the valid range or an option that does not exists for a selection parameter), the text will be shown in red.
The most important different between executing an algorithm from the toolbox and executing it as part of a batch process is that input data objects are taken directly from files, and not from the set of layers already opened in the GIS. For this reason, any algorithm can be executed as a batch process even if no data objects at all are opened and the algorithm cannot be called from the toolbox.
Filenames for input data objects are introduced directly typing or, more conveniently, clicking on the button on the right hand of the cell, which shows a typical file chooser dialog. Multiple files can be selected at once. If the input parameter represents a single data object and several files are selected, each one of them will be put in a separate row, adding new ones if needed. If it represents a multiple input, all the selected files will be added to a single cell, separated by commas.
If multiple bands are required, a more complex dialog is shown, which incorporates a table for selecting both layer files and bands. Click on the cells on the left side to select the file which contains the raster layer. Then click on the left side to select the bands you want to use from that layer. To know the number of bands in a layer it would be necessary to open it. However, SEXTANTE does not open the layer, and shows instead a list of bands from 1 to 250 to select from. If you select a band that does not exist in the selected layer, an error message will be shown at execution time.
Output data objects are always saved to a file and, unlike when executing an algorithm from the toolbox, saving to a temporary one is not permitted. You can type the name directly or use the file chooser dialog that appears when clicking on the accompanying button. This dialog differs slightly from the standard one, incorporating some additional fields for autocompletion.
If the default value (Do not autofill) is selected, SEXTANTE will just put the selected filename in the selected cell from the parameters table. If any of the other options is selected, all the cells below the selected one will be automatically lled based on a defined criteria. This way, it is much easier to ll the table, and the batch process can be defined with less effort.
Automatic filling can be done simply adding correlative numbers to the selected filepath, or appending the value of another field at the same row. This is particularly useful for naming output data object according to input ones. Cells can be selected just clicking and dragging. Selected cells can be copied and pasted in a different place of the parameters table, making it easy to ll it with repeated values.
Just like when executing a single algorithm, when running a batch process that generates raster layers you must define the extent and cellsize of the raster layers to be created. The corresponding Raster Output tab is similar to the one found when running a single algorithm, but only contains two options: t to input layers and user-defined.
The selection will be applied to all the single executions contained in the current batch process. If you want to use different raster output configurations, then you must define different batch processes.
To execute the batch process once you have introduced all the necessary values, just click on OK. SEXTANTE will show the progress of each executed algorithm, and at the end will show a dialog with information about the values used and the problems encountered during the execution of the whole process.
It is possible to execute the batch processing from a set of layers from the current view, clicking on the correct option in the toolbox tree, similar as it was the usual batch processing.
The command-line interface allows advanced users to increase their productivity and perform complex operations that cannot be performed using any of the other elements of the SEXTANTE GUI. Models involving several algorithms can be defined using the command-line interface, and additional operations such as loops and conditional sentences can be added to create more flexible and powerful workflows.
Invoking the command-line interface will make the following dialog appear.
The SEXTANTE command-line interface is based on BeanShell. BeanShell is a Java source interpreter with object scripting language features, that meaning that it dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript.
A detailed description of BeanShell and its usage can be found at the BeanShell website. Refer to it if you want to learn more about generic BeanShell features. This chapter covers only those particular elements which are related to SEXTANTE geoalgorithms.
By using the extension mechanisms of BeanShell, SEXTANTE adds several new commands to it, so you can run geoalgorithms or get information about the geospatial data you are using, among other things.
Java users can create small scripts and programs combining standard elements of Java with SEXTANTE commands. However, those who are not familiar with Java can also use the command-line interface to execute single processes or small sets of them, simply calling the corresponding methods.
A detailed description of all SEXTANTE commands is given next.
Algorithms need data to run. Layers and tables are identified using the name they have in the table of contents of the GIS (and which usually can be modied using GIS tool). To call a geoalgorithm you have to pass it an identifier which represents the data to use for an input.
The data() command prints a list of all data objects available to be used, along with the particular name of each one (i.e. the one you have to use to refer to it). Calling it you will get something like this:
RASTER LAYERS ----------------- mdt25.asc VECTOR LAYERS ----------------- Curvas de nivel TABLES -----------------
Be aware that gvSIG allows you to have several layers with the same name. SEXTANTE will just take the first one which matches the specified identifier, so you should make sure you rename your data object so each one of them has a unique name.
To get more information about a particular data object, use the describe(name of data object) command. Here are a few examples of the result you will get when using it to get more information about a vector layer, a raster layer and a table.
>describe points Type: Vector layer - Point Number of entities: 300 Table fields: | ID | X | Y | SAND | SILT | CLAY | SOILTYPE | EXTRAPOLAT | >describe dem25 Type: Raster layer X min: 262846.525725 X max: 277871.525725 Y min: 4454025.0 Y max: 4464275.0 Cellsize X: 25.0 Cellsize Y: 0.0 Rows: 410 Cols: 601 >describe spatialCorrelation Type: TableNumber of records: 156 Table fields: | Distance | I_Moran | c_Geary | Semivariance |
Once you know which data you have, it is time to know which algorithms are available and how to use them.
When you execute an algorithm using the toolbox, you use a parameters window with several fields, each one of them corresponding to a single parameter. When you use the command line interface, you must know which parameters are needed, so as to pass the right values to use to the method that runs that algorithm. Of course you do not have to memorize the requirements of all the algorithms, since SEXTANTE has a method to describe an algorithm in detail. But before we see that method, let's have a look at another one, the algs() method. It has no parameters, and it just prints a list of all the available algorithms. Here is a little part of that list as you will see it in your command-line shell.
bsh % algs(); acccost-------------------------------: Accumulated cost(isotropic) acccostanisotropic--------------------: Accumulated cost (anisotropic) acccostcombined-----------------------: Accumulated cost (combined) accflow-------------------------------: Flow accumulation acv-----------------------------------: Anisotropic coefficient of variation addeventtheme-------------------------: Points layer from table aggregate-----------------------------: Aggregate aggregationindex----------------------: Aggregation index ahp-----------------------------------: Analytical Hierarchy Process (AHP) aspect--------------------------------: Aspect buffer--------------------------------: Buffer
On the right you find the name of the algorithm in the current language, which is the same name that identifies the algorithm in the toolbox. However, this name is not constant, since it depends on the current language, and thus cannot be used to call the algorithm. Instead, a command-line is needed. On the left side of the list you will find the command-line name of each algorithm. This is the one you have to use to make a reference to the algorithm you want to use.
Now, let's see how to get a list of the parameters that an algorithms require and the outputs that it will generate. To do it, you can use the describealg(name of the algorithm) method. Use the command-line name of the algorithm, not the full descriptive name.
For example, if we want to calculate a ow accumulation layer from a DEM, we will need to execute the corresponding module, which, according to the list show using the ags() method,is identified as accflow. The following is a description of its inputs and outputs.
>describealg("accflow") Usage: accflow(DEM[Raster Layer] WEIGHTS[Optional Raster Layer] METHOD[Selection] CONVERGENCE[Numerical Value] FLOWACC [output raster layer])
Now you know how to describe data and algorithms, so you have everything you need to run any algorithm. There is only one single command to execute algorithms: runalg. Its syntax is as follows:
> runalgname_of_the_algorithm, param1, param2, ..., paramN)
The list of parameters to add depends on the algorithm you want to run, and is exactly the list that the describealg method gives you, in the same order as shown.
Depending on the type of parameter, values are introduced differently. The next one is aquick review of how to introduce values for each type of input parameter
For example, for the maxvaluegrid algorithm:
Usage: runalg("maxvaluegrid", INPUT[Multiple Input - Raster Layer] NODATA[Boolean], RESULT[Output raster layer])
The next line shows a valid usage example:
> runalg("maxvaluegrid", "lyr1, lyr2, lyr3", "false", "#")
Of course, lyr1, lyr2 and lyr3 must be valid layers already loaded into gvSIG.
When the multiple input is comprised of raster bands, each element is represented by a pair of values (layer, band). For example, for the cluster algorithm:
Usage: runalg ("cluster", INPUT[Multiple Input - Band] NUMCLASS[Numerical Value]) ***************
The next line shows a valid usage example:
> runalg("cluster, "lyr1, 1, lyr1, 2, lyr2, 2", 5, "#", "#")
The algorithm will use three bands, two of them from lyr1 (the first and the second ones of that layer) and one from lyr2 (its second band).
runalg("kernelfilter", mdt25.asc, "-1, -1, -1, -1, 9, -1, -1, -1, -1", "#")
Input parameters such as strings or numerical values have default values. To use them, type "#" in the corresponding parameter entry instead of a value expression.
For output data objects, type the filepath to be used to save it, just as it is done from the toolbox. If you want to save the result to a temporary file, type "#".
Just like when you execute a geoalgorithm from the toolbox, when it generates new raster layers you have to define the extent and cellsize of those layers.
By default, those characteristics are defined based on the input layers. You can toggle this behaviour using the autoextent command.
> autoextent("true"/"false)
If you want to define the output raster characteristics manually or using a supporting layer, you have to use the extent command, which has three different variants.
Usage: extent(raster layer[string]) extent(vector layer[string], cellsize[double]) extent(x min[double], y min[double], x max[double], y max[double], cell size[double]) Type "autoextent" to use automatic extent fitting when possible
When this command is used, the autoextent functionality is automatically deactivated.
Every time you execute a SEXTANTE algorithm, information about the process is stored in the SEXTANTE history manager. Along with the parameters used, the date and time of the execution are also saved.
This way, it is easy to track the and control all the work that has been developed using SEXTANTE, and easily reproduce it.
The SEXTANTE history manager is a set of registries grouped according to their date of execution, making it easier to find information about an algorithm executed at any particular moment.
Process information is kept as a command-line expression, even if the algorithm was launched from the toolbox. This makes it also useful for those learning how to use the command-line interface, since they can call an algorithm using the toolbox and then check the history manager to see how that same algorithm could be called from the command-line.
Apart from browsing the entries in the registry, processes can be reexecuted, simply double-clicking on the corresponding entry.
This document describes how to configure SEXTANTE to incorporate GRASS applications into its interface and thus broaden its own set of algorithms.
Once you have configured the system, you will be able to execute GRASS algorithms just like any other SEXTANTE algorithm.
To do this, you will enter SEXTANTE toolbox using the toolbar icon.
Open the settings dialog and select the GRASS menu.
If the operating system is Linux, you only need type the path to the GRASS installation folder, required by SEXTANTE to execute GRASS commands.
Usually: /usr/lib/grass64.
At the following options, tick "Create temporary mapset".
If it is configured on Windows XP, it will be necessary to set the path to the GRASS installation folder and the Shell interpreter path.
GRASS usually installed at: C:\Archivos de programa\GRASS-64 C:\Archivos de programa\GRASS-64\msys\bin\sh.exe
Once you have set the previous paths, click on Install GRASS button.
It will appear a message if the installation has had success.
After it, GRASS algorithms will be shown in the toolbox and identified with a GRASS icon. They will appear in a new branch named "GRASS" which contains two groups: raster and vector.
gvSiG has an extension which allows you to create your own scripts in different programming languages, such as Jython, javascript, beanShell or groovy.
Jython is an implementation of the high-level, object-oriented language Python written in Java, and integrated with the Java platform. It allows you to run Python on any Java platform.
BeanShell is an object-oriented Java source code interpreter with script utilities. It executes standard Java expressions and statements as well as scripting commands and syntax.
Groovy is a powerful language for the Java virtual machine which compiles Java byte code and implements several high-level utilities for Java developers. A scripting extension tutorial is available in www.gvsig.org.
gvSIG includes a command console for Jython language which can be accessed by going to the "File" menu bar, then to "Scripting" and “Jython console".
ADL Gazetter Protocol: Standard defining how the communication between ADL gazetteer clients and servers must be.
ADL GCS (ADL Gazetteer Content Standard): Although it is not an official standard it is the de facto set of rules used to defined the relationship between a toponym and its coordinates. It can supply other attributes such as the region where the toponym is settled, or the nature of this datum.
ANZLIC (Australian and New Zealand Land Information Council): Is the organization in charge of the development of the SDI in these two countries.
Band: Frequency interval from the electromagnetic spectrum. For example, the first band of the TM sensor is defined in the range of 0.45-.052 mm.
Database: Set of data structured in order to enable the storage, consultation and upgrading in a computer system. The relational database is a concrete case in which the information is organized in relations (often known as “tables”). Relations are a set of tuples (“records”) and a tuple integrates information about an element in a set of fields (one field for each attribute of the element); if two tables share a field containing values within the same domain then it is possible to apply a union operation. The union links the tuples according on the values in the linking field.
BMP: Acronym for Bit Map Picture; is a basic image format. It is simple and pretty normalized; it is a excellent format for sharing data and fast when analyzing and processing images. However, since it is not compressed it does not improve the transmission and disk accessing times. BMP is often used win RGB 24 bits.
CAD: Acronym for Computer Assistant Design. It is an automatic system oriented to design, draw and graphical visualization.
Cartography: Set of operations and processes that take part in the creation, edition and analysis of maps.
catalogue, Service of: Allows the publication and searching of information (metadata) describing data (cartography), services, applications and any other kind of resources. The catalogue services are necessary to supply search and invocation capabilities over registered resources within an SDI. A Open Geospatial Consortium spec establishes how a Catalogue Service must be standard and interoperable.
CatMDEdit: Is a computer application for creating and editing geographic metadata based upon the “OSI19115. Geographic Information – Metadata” norm. Among its features, it is an open-source project, multiplatform (Windows / UNIX) and multilingual (Spanish and English) as well.
CEN (European Committee of Standarization): Official organization for normalization of the European Union. Replaces country specific techniques by common rules for the whole Union in collaboration with international organizations and its members in Europe (CENELEC for electronics and ETSI for telecommunications).
CEN TC 287 (Technical Committee of Geographic Information): Set of standards for manipulating geographical information (approximately 20).
Clearinghouse: A distributed service for metadata about geospatial data locating. Allows to search in one or several nodes or servers that have been registered in the Clearinghouse of the Internet. It is the term used by FGDC, equivalent to the OGC’s Catalogue Service.
CNIDR z39.50 Server (clearinghouse for Networked Information Discovery and Retrieval): z39.50 server, also known as zDist.
Compression: Technique for reducing the amount of bits needed for storing or transmitting information. There are lossless or destructive compressions (for instance, GIF and JPG for the digital images respectively).
Coordinate: Value defining the position in a reference system. The coordinates can be lineal (Cartesian) or polar (spherical), depending on the reference system.
Cota en ingles es Height que se autodefine CSDGM (Content Standard for Digital Geospatial Metadata: Determines the metadata that exists in a geographical position and how to access to them. It does explain neither how to organize the data in a computer nor which software to use.
Datum: Geometric reference system used to numerically express the geodesic position of a point over the terrain. Each datum is defined according of an ellipsoid and a point where the ellipsoid and the Earth are tangent. In Spain for example, the datum uses the Hayford (or International 1924) ellipsoid and the tangency point is Postdam (Germany).
DublinCore: Set of metadata elements created to make the electronic resource discovery easier. ebRIM (ebXML Registry Information Model): Specifies a set of services that make the communication between companies easier using ebXML.
ebRS (ebXML Registry: Services and Protocols): Defines the services that the ebXML Registry and other related protocols offer.
ebXML (electronic Business XML): Is a Standard that defines an XML-document format for sharing information between companies.
Element of a metadata: Discrete metadata unit. Entity of a metadat**: Set of elements describing the same aspect of the data.
Ellipsoid: Simplified description of the Earth shape: the ellipsoids are defined by equatorial and polar radiuses.
EPSG: European Petroleum Survey Group.
Scale: Constant relation between a distance in a map and the corresponding real distance.
FGDC (Federal Geographic Data Committee): Organization in charge of developing the National Spatial Data Infrastructure (NSDI) of the United States of America.
Geodesy: The science that studies the shape of the Earch in the gravitational field.
Geoid: Is the level surface, equipotential in the gravitational field, which adopts an irregular three-dimensional spheroid. Due to the dependency on the mass distribution inside the Earth, it is impossible to represent it mathematically. The mathematical shape used to do it is the ellipsoid that approximately fits better the Earth shape. The geoid is coincident with the mean ocean surface when they are quiet, virtually extended for the continents land.
Georreference: The art of assigning geographic coordinates to an object or structure. This concept applied to a digital image involves a set of geometric operations that allow assigning to each image pixel a pair of coordinates (x, y) in a projection system.
GIF: Graphic Interchange Format. Developed by CompuServe to provide a standard and platform-independent format. The GIF format is limited to a maximum of 256 colours. It is a reasonable limitation since most of the PC screens support 256 colours at most. In general, GIF is recommended for simple images. When the background has textures they are not useful because the computer tries to find the closest colour, and some distortions may appear in this process and the result is an inaccurate displaying for the image.
GPS: Acronym for global positioning system. It refers to the system by means of which it is possible to approximately calculate a position in the Earth using a signal received from several satellites (called the GPS constellation) simultaneously.
Grid: Is a net composed by two or more series of arcs in which the member of each series intersects with the members of the other series in an algorithmic way.
gvSIG: A Geographical Information handling tool. Features a user-friendly interface, an agile access to the most common vector and raster formats. It can integrate local and remote (the Internet) data through connections following some protocols specified by the Open Geospatial Consortium.
Spindle: Part of a sphere limited by two meridians or maximum circles. In the UTM projection each spindle is defined by two meridians separated by a distance of 6 degrees (for a total circle round of 360 degrees) and by two parallels of 80 degrees latitude North and South.
SDI: An SDI (Spatial Data Infrastructure) is a computer system integrated by a set of resources (catalogues, servers, programs, data, applications, web pages, and so on), for manage Geographic Information (maps, satellite images, toponymes, etc.), available from the Internet, that follow a set of interoperational capacity conditions (rules, specifications, protocols, interfaces, etc) that allow an user to use them using a simple browser and combine then for his/her needs.
IDEE: Acronym for Infraestructura de Datos Espaciales de España, or Spanish Spatial Data Infrastructure. The goal of the IDEE is to integrate through Internet the geographic data, metadata, services and information produced in Spain. So, any potential can identify, select, and access to these resources from the IDEE’s site where any node and other site of other geographic information producers of local, regional or even national wide areas available in Spain.
Digital Image: Graphical representation of an object which is, in fact, a regular matrix that is a collection of a reflectance values. The reflectance values are usually measured by sensors of a specific range of light wavelengths; examples of these sensors are those aerial-transported such are aircrafts or satellites or those integrated in a scanner used to digitalize printed documents.
Nomenclator Service: Offers the possibility of locating a geographic place by its name. It is defined as a service that receives an input that is the name of the place (toponym), with the common possibilities: exact match, starting with, contains, etc. and returns the location, by means of the coordinates, of the place. Additionally, the query by name also handles other criteria such as the spatial extension where to look up, or the type of the place (river, mountain, towns …). If one or more occurrences are found, the service supplies a list of the places found with any additional attribute describing it for the user can choose the desired one. There is an Open Geospatial Consortium spec describing how a Nomenclator Service must be to be standard and interoperable.