../../_images/logo-gvSIG7.png

gvSIG Quickstart

gvSIG is a Geographic Information System (GIS), that is, a desktop application designed for capturing, storing, handling, analyzing and deploying any kind of referenced geographic information in order to solve complex management and planning problems. gvSIG is known for having a user-friendly interface, being able to access the most common formats, both vector and raster ones. It features a wide range of tools for working with geographic-like information (query tools, layout creation, geoprocessing, networks, etc.), which turns gvSIG into the ideal tool for users working in the land realm.

This quickstart describes how to...

  • Add projection, raster and vector data to a view
  • Navigate around
  • Change layers
  • Select features
  • Create a map with a graticule
  • Save the project and exit gvSIG
  • Install an add-on (OpenStreetMap service)
  • Load a WTMS layer

Contents

Note

If gvSIG user interface becomes unresponsive, try Alt+f to open the file menu for example. User interface should work again, then. This bug only happens in the gvSIG distro for OSGeo-Live. It doesn’t appear in a normal gvSIG installation.

Note

Note for version gvSIG 2.1.0-2218: To load raster files the user must have write permission in the folder where the file is. Otherwise the application will ask for a valid folder (with write permission). Since the “user” user doesn’t have write permission in the “data” folder, it will be necessary to select, when asked, a folder where the user does have write permission, like for example, “/home/user”.

Start gvSIG and create a view

Select gvSIG from the application menu, Geospatial ‣ Desktop GIS ‣ gvSIG. The application usually takes about a minute to startup.

  1. By default gvSIG opens with an empty project file with the ‘View’ document type selected. However, on OSGeo-Live, gvSIG has been configured to start with a default project. Click on the New Project button or go to File ‣ New Project. When prompted, you can select Discard Changes as we won’t be using the last project.
  2. Click on the New button to create a view. It will be opened automatically.
../../_images/gvsig_qs_001_2.png

Define the projection of your view

Open the view properties dialog

  1. Select View ‣ Properties.
../../_images/gvsig_qs_002_2.png

Defining your Coordinate Reference System

  1. Click on the ... button following the Current projection. This will open the New CRS dialog.
  2. Using the dropdown list for Type, select EPSG.
  3. Enter the EPSG code for the Coordinate Reference System. For this example we are using EPSG=4326, which is the WGS84 2D Geographic Projection. Then click on the Search button. This will list the selected CRS in the table below the search input field.
  4. Select OK to return to the View Properties dialog.

Note

The EPSG code is now 4326 and that the map units have changed to degrees.

  1. Select OK to return to the Project Manager.
../../_images/gvsig_qs_003_2.png

Knowing the parts of a view

  1. The view window consists of three zones.
  2. The top-left cell contains a list of vector or raster layers being used in the view (i.e. Table-of-Contents).
  3. The bottom-left cell displays the extent of the main view over a selected vector file.
  4. The right cell is the main display area where raster and vector data is rendered.
../../_images/gvsig_qs_005_2.png

The View - adding raster and vector data

Adding layers from files

  1. Click on the Add layer icon in the main toolbar to open the Add layer dialog.
  2. Select Add in the Add layer dialog. By default the first tab is File so the Open file dialog will appear.
  3. Drill down to the /usr/local/share/data/natural_earth2/ directory.
  4. Select the files as shown in the picture.
../../_images/gvsig_qs_006_2.png

Note

By default all formats are shown so we can select both vector and raster files at a time by keeping pressed the CTRL key.

  1. Click on the OK button to return to the Add layer dialog.
  2. Click on the OK button on the Add layer dialog to return to the view.

The View - basic navigation

Preparing the view

  1. Click on the Maximize icon for a better viewing of the data.
  2. The size of the Table-of-Contents column can be adjusted using the mouse to help see long file names.
  3. In case the raster layer is on the top it should be moved manually to the bottom.
../../_images/gvsig_qs_008_2.png

Zoom into a region

  1. By default the Zoom in tool is selected on the main toolbar.
  2. Use the mouse pointer to draw a bounding box around South-east Australia. Do this by selecting the top-left corner of the bounding box, holding down the left-mouse-button, and dragging the bottom-right corner of the bounding box over the selected area. Release the left-mouse button once you have the approximate area defined.
../../_images/gvsig_qs_009_2.png

The View - changing how layers look

Making a polygon transparent

  1. Select the ne_10m_admin_1_states_provinces.shp layer using the left-mouse-button and click again with the right-mouse-button.
  2. Select the Properties submenu.
  3. The Layer properties dialog box will appear.
../../_images/gvsig_qs_010_2.png

Changing the symbology of a vector layer

  1. Select the Symbols tab at the top of the Layers properties dialog.
  2. Select Choose symbol button so the Symbol selector dialog appears.

Removing the fill symbol and changing the border color

  1. Uncheck the Fill color box so the polygons are transparent.
  2. Click on the ... close to Border color:.
  3. Choose white as color.
  4. Click on the OK button to return to the Symbol selector dialog.
  5. Click on the OK button to return to the Layers properties dialog.
../../_images/gvsig_qs_012_2.png

Changing the labelling of a vector layer

  1. Select the Labelling tab at the top of the Layers properties dialog.
  2. Change the text attributes to those shown on the image, then click on the Accept button.
../../_images/gvsig_qs_013_2.png

The result

Note that this is a very basic view showing a point, a line and a polygon vector file superimposed over a raster file. It is just as easy to have an aerial photograph or Digital Terrain Model as a backdrop to your vector data, or to show other vector data stored in different formats.

../../_images/gvsig_qs_014_2.png

A user exercise - change the symbology and labelling of the point and line layers

Following the previous few steps change the symbols, colour and labelling of the rivers and towns to generally match the following screen shot.

../../_images/gvsig_qs_015_2.png

Adding an overview or locator

Opening the Locator setup

  1. Select View ‣ Locator setup.
../../_images/gvsig_qs_016_2.png

Adding a layer to the overview zone

  1. Click on the Add layer… button.
  2. Within the Add layer window, click on the Add button.
  3. Select the HYP_50M_SR_W.tif layer.
  4. Click on the Open button to return to the Add layer window.
  5. Click on the Ok button and close the Configure locator window.
../../_images/gvsig_qs_017_2.png

The result

Now we can easily know where the view is located in the world.

../../_images/gvsig_qs_018_2.png

Simple analysis - select towns within a region

Selecting the region

  1. Select the ne_10m_admin_1_states_provinces.shp layer using the left-mouse-button.
  2. Select the Select by point icon in the main toolbar.
  3. Click the polygon representing the State of New South Wales. The polygon will go yellow or some other colour depending on your user preferences.
../../_images/gvsig_qs_019_2.png

Opening the Selection by layer tool

  1. Select the ne_10m_populated_places.shp layer using the left-mouse-button.
  2. Select Selection ‣ Select by layer to open the Selection by Layer dialog
../../_images/gvsig_qs_020_2.png

Selecting the towns contained within a region

  1. Change the first selection criteria using the dropdown boxes on the left-hand side of the Selection by Layer dialog as shown in the picture.
  2. Change the second selection criteria as shown in the picture.
  3. Click the New set button to select towns within the selected polygon.
  4. Select the Cancel button in the Selection by Layer dialog to return to the view.
../../_images/gvsig_qs_021_2.png

Unselect the polygon so you can see what has happened

  1. Select the ne_10m_admin_1_states_provinces.shp layer using the left-mouse-button.
  2. Select the ‘Clear selection’ icon in the main toolbar.
  3. You can now see that the only those towns within New South Wales are selected.
../../_images/gvsig_qs_022_2.png

Export selected features to a new shapefile

Selecting the output file format

  1. Select the ne_10m_populated_places.shp layer using the left-mouse-button.
  2. Select Layer ‣ Export to... ‣ Shapefile to start the export.
  3. Select Shape Format.
  4. Click on Next.
../../_images/gvsig_qs_023_2.png

Selecting the output file name

  1. Choose a folder and type the file name.
  2. Click on Open and then on Next.
../../_images/gvsig_qs_024_2.png

Export options

  1. Choose the option Selected features in order to export only the towns of New South Wales.
  2. Click on Export.
../../_images/gvsig_qs_025_2.png

The Result

  1. The new layer has been added to the view.
  2. In order to check that the export was ok set the original file as invisible. Only the towns of New South Wales should be shown.
../../_images/gvsig_qs_026_2.png

How to create a map

Create a new map and open it

  1. Select the Map document type in the Project Manager.
  2. Click on the New button to create a map.
  3. An empty map will appear in its own window titled Map: Untitled - 0. Note that a series of points are placed over the page. This is called a grid or guides and are used to snap elements to while formatting your map.
  4. Select the Maximise window icon to have the map occupy the entire screen.
../../_images/gvsig_qs_027_2.png

Insert a view inside the map

  1. Click on the Insert view icon in the main menu
  2. Create a bounding box representing the extent of the map on the page by clicking on the empty map while holding down the left-mouse-button and dragging out the box, only letting go once the the area to be used is complete. This opens the Properties of view framework dialog.
  3. Select the view created earlier.
  4. Select the Accept button to exit and return to your map.
../../_images/gvsig_qs_028_2.png

What else can you do to a map?

  1. Additional elements like a scale and north arrow can be added to the map using the icons in the main toolbar or with the submenus in the Map menu.
  2. The map can be printed or exported to PDF or Postscript for incorporation into other works.
  3. Select the Close window icon to return to the Project manager
../../_images/gvsig_qs_029_2.png

Saving your project or exiting gvSIG

  1. Projects can be saved for use later by using the File ‣ Save as... menu option, or
  2. Projects can be exited or closed by using the File ‣ Exit menu option.
../../_images/gvsig_qs_030_2.png

Installing an add-on

Opening the add-ons manager

  1. Select Tools ‣ Addons manager. After a while it will a appear the Install package window.
  2. Within the Install package window, select the option Installation from URL.
  3. Choose the repo URL shown in the picture.
  4. Click on the Next button.
../../_images/gvsig_qs_031_2.png

Finding an add-on

  1. Type ‘OpenStreetMap’ in the Fast filter text box.
  2. Check the add-on called Formats: OpenStreetMap raster tiles support.
  3. Click on Next.
../../_images/gvsig_qs_032_2.png

Finishing the installation

  1. Click on Start downloading.
  2. Then click on Next.
  3. Finally click on Finish.
../../_images/gvsig_qs_033_2.png

Trying the new add-on: adding a OpenStreetMap layer

As estated in the message we find after the installation of the add-on, a restart is needed.

  1. Coming back in gvSIG, within a new view, click on the Add layer… button.
  2. Choose the OSM tab.
  3. Select one of the available layers.
  4. Click on Ok.
../../_images/gvsig_qs_036_2.png

The result

A new layer has been added to the view. Just doing zoom over a region we could see the detailed Open Street Map data.

../../_images/gvsig_qs_037_2.png ../../_images/gvsig_qs_038_2.png

Adding a WMTS layer

WMTS is a evolution of WMS OGC standard based on tile management.

Selecting a server

  1. Within a view, click on the Add layer… button.
  2. Choose the WMTS tab.
  3. Choose the URL shown in the picture.
  4. Click on Connect.
  5. Click on Next.
../../_images/gvsig_qs_039_2.png

Selecting one of the available layers

  1. Select one of the available layers (e.g. bluemarble)
  2. Click on Add.
  3. Click on Next.
../../_images/gvsig_qs_040_2.png

Selecting image format and reference system

  1. Select image/jpeg as image format.
  2. Select EPSG:4326 (notice that the view must have the same SRS. If not then cancel, change it and start again).
  3. Click on Accept.
../../_images/gvsig_qs_041_2.png

The result

A new layer has been added to the view.

../../_images/gvsig_qs_042_2.png
Copyright & Disclaimer