jps services
  • Home Page
  • GIS Training Courses
    • QGIS Training Courses
    • ArcGIS Training Courses
    • MapInfo Pro Training Courses >
      • MapBasic Training Course
  • About
  • Blog

Understanding GIS software Layer functionality

11/10/2019

0 Comments

 
The basic concepts of desktop GIS software haven’t really changed very much since their inception with MapInfo Pro software some thirty years ago. The original designers of desktop mapping software wanted to use the new Windows operating system to emulate the functionality only previously available with the help of skilled cartographers.

The concept these early designers wanted was to emulate  paper map creation but in a digital format. One of the main ways they achieved this was by using a process whereby each element of the map could be built up through creating a series of layers prior to printing the final output. Features which we now take for granted such as zooming and panning where at that stage innovative and novel to new users of GIS software.

If we look at a screen shot from QGIS we can see that the map area is displaying a map of Mexico. On the Layers panel on the left side there are five separate layers shown. Each layer represents data in either a point, line or polygon format. All of these layers are in a vector data format.
​
Vector data could be defined as a list of values. For example, a point has a pair of x and y co-ordinates, a line has two pairs of x and y co-ordinates and a polygon has points where the first and last co-ordinates are joined to create an enclosure.
Picture
The layers have been brought into QGIS as individual layers which means they will display in a random colour. If these layers had been brought in as a project file each layers’ defined colour scheme would have been preserved.
​
The next thing to note is that although we have five layers only one layer is currently displaying. This is because top polygon MEXICO layer is hiding the features of the other layers. Again, if this had been loaded as a project file the correct layer order would have been preserved.
​
Clicking on the MEXICO layer and moving it as shown in the next screen shot will reveal the other layers’ details.

Read More
0 Comments

Working with data from different GIS software systems

30/9/2019

0 Comments

 
If you are new to using GIS software or a casual user you may be surprised to learn that standard formats such as shape files do not contain sufficient information for successfully transferring data between systems.

For instance if you have been sent some shape files together with how they should appear in your system, and you are presented with something different when they are loaded, there is a simple explanation.

Here is a screen shot of how two layers should display in your system.
Picture
And here is how it may look if loaded in just a default shape format.
Picture

Read More
0 Comments

Why GIS has a separate file management system

20/9/2019

0 Comments

 
The Microsoft windows file management system was developed to enable users to easily save, copy, delete and move files within a hierarchical folder structure. Each file type is identified by a dot definition system. So a Paint program file could have a .png, bmp or .gif format. A text file could have a. .doc format.  An excel spreadsheet could have a ,xls format. This file management system works very well for file types which generally consist of a single file format, however GIS formats such as Esri shape files or MapInfo tab files are made up of a number of different file types. This often presents a problem for casual GIS users when copying, deleting, moving or saving such files through a file management system such as Microsoft Windows. Often only the .tab or shp file element is copied which means that the specified file will not load into a GIS system.
Picture
In the above screen shot from the Windows file management system the shape file format can be seen to consist of four files, all of which are needed to produce a map layer in a GIS.
ESRI have addressed this problem with the introduction of ArcCatalog, which is there own proprietary file management system. Within ArcCatalog various filetypes are stored is such a way as to enable the user to access the various elements as if they were a single file. Additional features enable users to preview maps within ArcCatalog as well as the ability to drag and drop files into the map surface.
Picture

Read More
0 Comments

Using GIS to explore spatial relationships

31/8/2019

0 Comments

 
You can use attribute data attached to individual layers to find out about information relating to projects within your GIS. Additionally, you can also find answers to questions regarding  the spatial relationships of the features within a selection from within the layers.

This ability to query spatial relationships enables you to answer questions such as, how many airports are within a region, which rivers cross boundaries, which countries have a common border or how many cities have a population in excess of two million within a specific country.

In the same way GIS can also answer questions about health, income, crime levels and employment within a certain geography.

Looking at the London boroughs we could ascertain, with the help of GIS, which are the poorest and which are the most affluent.

Here is a map of the London wards. There are 4765 ward entries in the attribute table for this map layer.
Picture
If we just wanted to query data at a borough, rather than the ward level, we could use GIS to create a new layer. We could achieve this by using a geoprocessing tool to dissolve the current 4,765 wards into 33 boroughs. This results in a map layer similar to the following screen shot.

Picture
If we also download spreadsheets containing information about health, education, income and employment they could be joined to our London borough map attribute table to give us a picture of each boroughs’ performance.  .

Here is a map showing crime levels across the 33 London boroughs. The darker the colour the higher the crime levels.

Read More
0 Comments

How lines, points and polygons are linked to data within a GIS

19/8/2019

0 Comments

 
Each feature within a GIS has appropriate attribute data attached to it. This data can contain information such as, in the case of a city, its name, size of population and other relevant details.
​
All GIS store data in a format which is commonly referred to as an attribute table. Each layer contains an attribute table which is similar to a spreadsheet layout. Within this table the user can put as much or as little information as is required for the layer’s requirements. Like a spreadsheet the data is stored in a series of rows and columns. Each row represents a single record and each column represents a field within the table. Some tables only contain a few fields with a limited number of columns, whilst other tables, say containing crime statistics, can have thousands of records and numerous fields.

Information within the attribute table is linked to the point, line or polygon within the map layer. Clicking on one or more features in the map layer will also highlight the same features in the attribute table if this has been made visible. Similarly, clicking on one or more rows in the attribute table will highlight these features in the map layer.  
Picture

Read More
0 Comments

The use of scale in a desktop GIS

12/8/2019

0 Comments

 
 Desktop geographical information systems use scale to represent the relationship between the size of elements within the map and the related areas within the real world. In fact it is very similar to the methods used with paper maps. However, paper maps are produced at fixed scales to meet different requirements. This contrasts with the flexibility of a desktop GIS which can produce an infinite variety of maps by adjusting the scale to meet specific requirements.

A ramblers paper map would have a scale which relates more closely to a specific area of interest. A map used for travelling over larger distances by car for example would have a different scale. The only way someone could take a closer look at a detailed paper map would be to use a magnifying glass which would have no impact on the scale of the map. However, with a desktop GIS  there is the capability of zooming into areas of interest which then  automatically adjusts the map scale.

So with a desktop GIS the zoom feature enables users to view maps at a variety of scales. In the following screen shot the map is shown at a world view of 1:186,760,885.  
Picture
In the next screen shot the scale has been changed to 1:13,877,198 as we zoom in to take a closer look at an area including parts of the United States and South America.   
Picture
The effect of zooming in shows that in the above map is now nearly fourteen million times smaller than actual size. The map now has a scale value of 1:13,877,198. The zoomed in area of the map within the GIS has in other words a ratio 1:13,877,198. This represents one unit on the map as almost fourteen million times smaller than in the real world.

We can also indicate the scale of a map by adding a scale bar to maps that are printed. We can set the scale to the desired measurement which could be either metric or imperial. In the following screen shot we have set the scale in kilometers.
Picture
So as we zoom into a map we can obtain a closer view of the map’s features. At different scales we can obtain just the right amount of information for our specific requirements. The ability to create a variety of maps from a single map source is made possible by the flexible scaling features within a modern GIS system. Maps can then be printed at a suitable scale to meet the user’s requirements.
0 Comments

The purpose of layers within a geographical information system

5/8/2019

0 Comments

 
Prior to the availability of computerised mapping facilities paper maps were often used in conjunction with acetate sheets in all forms of mapping applications. At that time the latest paper map of a county or region would have been an expensive outlay. Within the UK, local authorities obtained their paper maps from Ordnance Survey often buying updates several times a year at a cost of thousands of pounds.   
Because the maps were expensive it made sense to ensure that they were well looked after. Sometimes this was achieved by laminating the maps to stop them being damaged by accidental spillages. If additional information was needed to be added to these base printed maps, acetate sheets were used. These acetates were used to mark out, for example, property boundaries or crime incidents. In this way several layers of information could be added without causing any damage to the printed base map.

Today, the modern desktop gis uses the same principal to separate the base map from other information stored within the system. The layer system enables the user to break information down into specific areas of interest. For instance in a map of Alaska all the airports are contained within a separate layer within the gis. This information on its own would not make a great deal of sense without the underlying base map as the following graphic shows.
Picture
Without the underlying Alaskan base map the airport layer does not make a great deal of sense as it is not related to anything meaningful in isolation. In the next graphic the airport layer makes sense as it shown with the relevant base map.
Picture
Maps can have many layers within a project. Layers can be present within the map without being visible. This enables specific areas in the project to be analysed by the map maker. Often a map may contain very many layers and it this case it makes sense to group related layers. In grouping layers you can then more easily manage whether the group is displayed or not. The group of layers can then be turned on or off together rather than manually turning off the related individual layers one at a time.

Some gis systems, such as MapInfo allow placement of points, lines and polygons within the same layer. However, whilst this is possible within MapInfo, if you need to transfer to a different gis you may find this creates problems. Both QGIS and ArcGIS have a layering system which only allows for one type (point, line or polygon) to display within a layer. Transferring data to QGIS from MapInfo with layers containing a mix of types will result in QGIS creating additional layers during the conversion process. Alternatively, MapInfo can convert layers to a shape file format which both QGIS and ArcGIS can then use.

Layers can be in a vector or raster format. Vector layers are either points, lines or polygons which can be in an x and y, or latitude and longitude format. Raster data consists of a series of dots and is often used to represent for example, ocean depths or variations in vegetation growth. In the next screen shot a raster layer has been added to the Alaskan map.
Picture
Layer order is important when displaying data within the map. If the layers are not ordered correctly some layers may not display correctly, if at all. To change the layer order you only need to click on the layer within the layer control section, hold the mouse down and then move the layer up or down to achieve the correct sequence.
0 Comments

An introduction to using a desktop GIS

30/7/2019

0 Comments

 
Maps have been used for a long time as a means of providing a visual understanding of the world around us. Some famous examples of maps have had a dramatic effect on our environment and our perception of the why events occur. 

The map of the 1854 Broad Street cholera outbreak clearly shows how the epidemic spread from residents drinking contaminated water. John Snow’s study showed how the contaminated water supply was linked to the maximum fatalities in close proximity to a specific water pump. These fatalities were represented by points on the map. The most points surrounded the contaminated water supply. Thus a map was able to prove what John Snow suspected as the cause of the outbreak.

Picture
Another famous map shows in graphic detail how Napolean’s army was decimated during the 1812 Russian campaign. This map is basically a graph or flow chart of the size of Napolean’s army on entering Russia and how it was reduced to a ragged remnant towards the end of the journey back.
Picture
Both these maps were the work of skilled cartographers. They would probably have been amazed at the way in which modern GIS systems can produce diverse maps without the cartographic skills they had spent years developing.   
With a modern desktop GIS a map of Alaska could, for instance, show a variety of different scenarios from the same base map. Below is an example of a base map of Alaska. 
Picture
With the help of some data we could produce different maps on climate, population, land use or vegetation. In fact with the data, now freely available on the internet, you could produce maps on an unlimited variety of subjects.
Since the advent of desktop GIS mapping solutions it has been possible for virtually any individual or organisation to produce maps to meet their specific requirements. Mapping is no longer the specialist area of skilled cartographers producing maps by hand. Nor is mapping the domain of large corporations who, in the not so distance past, could afford the mainframe and mini computers which cost millions to buy and maintain.
All modern gis systems can produce such maps without the user having to need any specialist cartographic knowledge. Although a general understanding of cartographic principles would obviously be useful in order to produce quality output.

The map below of Alaska contains a number of layers showing the regions, airports, lakes and many other features of interest.
In most cases the final map, for printed output, will contain a legend to explain what the various points, lines and polygons represent.  
Picture

0 Comments

Modifying labels with QGIS 3

4/3/2019

0 Comments

 
If you have used previous versions of QGIS you may have noticed that most of the icons on the abc labelling feature were greyed out. In these earlier versions a number of steps had to be taken to enable a layer to access abc labelling features such as move, rotate and hide. For instance, fields had to be added to the layer’s attribute table for x and y coordinates for the move feature to work. Similarly a rotate field was needed for the rotation functionality. To hide labels required yet another field. Again these fields also had to be in the correct format. . Having created these fields correctly there were several more steps required to make the labelling function work. Each field had to be connected to the labels property function and then finally, if editing was enabled, the various features of the abc labelling application would become activated. Because of the amount of work involved, in getting these features to work for each individual layer, this functionality was mainly used by geographers who needed to place, move, rotate and hide layers where the standard features were insufficient. If you have previously used software such as MapInfo Pro you would have been surprised that manipulating labels required so many additional options. In MapInfo you can click on a label and move or rotate it without any of the previous steps mentioned. Once a label is moved in this way in MapInfo it is referred to as being personalised.    
With the advent of QGIS 3 the labelling functionality, which was previously only within proprietary software, is now available to open source geographers.   
Here, I have opened a project in QGIS 3 containing layers from the Alaska data set which is available for download with the latest versions of QGIS. As you can see I have moved the Label Toolbar to the map section on this occasion for clarity purposes. Normally it would be positioned on the top menu.
Picture
In this screen shot of the Label Toolbar only one of the icons is currently enabled. In earlier versions of QGIS, as previously discussed, most of these icons would stay greyed out without a lot of extra work being involved. However, if we now click on the regions layer in the Layers panel all of the icons will be enabled as shown in the next screen shot.
Picture
Clicking on the abc icon brings up the Layer Styling dialogue panel. As we have selected a layer with labelling enabled we have a number of options available.   
Picture
If we switch to another layer such as airports we no longer have any features enabled as shown in the next screen shot. You can do this either by selecting airports from the drop down section of Layer Styling dialogue panel or by switching from the regions to the airports layer in the Layers panel.
Picture
To create labels on a layer first you need to select the Show labels for this layer option from the drop down list as shown in the next screen shot. Then select an attribute from the layer’s attribute table to label the map with.
Picture
 On the Label Toolbar there are six buttons for modifying labels. Starting from the left is the Highlight Pinned Labels function which will show those labels which have been modified in some way. The cursor appears as a cross on the map when the Label Toolbar is activated.
Picture
Similarly the Pin/Unpin Labels function will enable labels to be modified as well as reverted to their previous state.
Picture
If you want to hide a label first click on the Show/Hide Labels function as shown in the next screen shot.  
Picture
 Placing the cursor over a label as in the next screen shot. The cursor is represented by a cross.
Picture
 Pressing the Shift key together with a mouse click will hide the label as shown in the next screen shot.
Picture
To hide several layers follow the above process but create a rectangle around the labels you wish to hide. Similarly, to show labels either click or create a rectangle around the area where the labels are hidden.

The Move Label and Diagram icon enables labels to be moved as necessary. In the next screen shot I have clicked on the Northwest Arctic label and moved it to the left.  
Picture
 Once in the desired position letting go of the mouse button will place the label in the new position.
Picture
Enabling the Rotate Label and clicking and holding down the mouse whilst rotating as desired will reposition the label.
Picture
​ Here we have clicked on label and rotated it 24 degrees.
Picture
 Once the mouse is released the label will stay in its new position as shown in the next screen shot.
Picture
The Change label option allows you to modify the look of individual labels. Click on a label and the Label Properties dialogue box for the label will appear as shown in the next screen shot.
Picture
 As you can see there are numerous options for personalising specific labels with this dialogue box. This option enables a label to have a variety of changes simultaneously rather than using the individual options to move, rotate or hide.

As mentioned earlier the improvements to the labelling functions in QGIS 3 makes modifying labels a much easier task than with earlier versions of QGIS.
0 Comments

Using virtual layers in QGIS for spatial analysis

2/3/2019

0 Comments

 
If you need to analyse map data in order to find areas which intersect or points of interest within a boundary for example, then you have a need for spatial analysis.

QGIS uses the geographical elements within your layers to enable you to make more sense of your data. This principle is based on the fact that two vector layers can have some sort of relationship between their respective geometries: some points are within a polygon, a polygon has some lines crossing or two polygons overlap partially or totally.

Several functions such as buffers and SQL selections allow you to use the geographic elements of your layers in your analysis.

The SQL selection function within QGIS can be used to extract data from a layer which corresponds to certain criteria.
Geographic joins

Intersects: this geographic function compares data within two tables.

A point, line or polygon intersects another point, line or polygon when they have at least a node in common: a network crosses another network for example a road or a railway line.

The intersection means a geographical geometry touches or goes through another.

Contains and its reciprocal Within means geographical geometries are within another geometry.

A geometry A contains a geometry B when it contains the centroid of B.

When B is within A: for example a catchment area contains clients represented by point geometries.

Entirely within and its reciprocal Contains entire.

A geometry A is entirely within a geometry B when the group of nodes of A are within B.

According to the type of the compared geometry, according to needs, depends on which of these operators are chosen.

Generally, use the Intersects function to compare polygons or from polygons to lines. ​
​
Use Contains/Within to compare points within polygons.

Spatial analysis example

After having created some areas of interest, let’s analyse the impact of these areas. As a starting point look at those areas which intersect with the buffers PA1 to PA7.
Picture
Here we have opened a project containing three layers. The population information is stored in a layer called Ilots_Saumur within a field called PSDC99. We can use the virtual layers function to find those areas which intersect with the buffer zones.. We can also find the sum of the populations for the areas which intersect the buffers. Additionally, we can create a geographic join by using the Intersects option. Prior to the introduction of the virtual layers function the individual layers in this project would have had to have been converted into a relational database format such as PostGIS or Oracle Spatial in order to access the SQL functionality needed.
​
To access the virtual layers function open the DB Manager from the top menu.

Picture
Click on the > icon next to the Virtual Layers option.
Picture
Next click on the icon > next to the Project layers option
Picture


The dialogue box in the Info section states that Project layers: Not connected.

In the Providers section double click on the Project layers option.

The various layers are now displayed

Click on the Ilots_Saumur option and view the Info, Table and Preview tabs​

Picture
From the top menu click on Database and choose the SQL window option
Picture
When the dialogue box appears click on the SQL query builder icon which is just below the Info tab
Picture
​In the Tables drop down list choose the Ilots_Saumur and Buffer_Stop_Points tables
Picture
Click in the Columns section and from the Columns drop down list choose

Ilots_Saumur.PSDC99

Buffer_Stop_Points.ID_PA

Ilots_Saumur.geometry​

Buffer_Stop_Points.geometry
Picture
Click within the Where section and select ST_Intersects from the Functions drop down list
Picture
Choose Ilots_Saumur.geometry from the Columns section ​
Picture
Put a comma after this entry

Then choose Buffer_Stop_Points.geometry and add a closing bracket​

Click in the Group by section and choose Buffer_Stop_Points.ID_PA from the Columns drop down list as in the following screen shot
Picture
Click on the OK button​

Click on the Execute button or Ctrl + R
Picture
Select Load as new layer by ticking in the box

The Co-ordinate Reference System dialogue box appears. Click OK to accept the default co-ordinate system​

Picture
Name the layer as “Population data where buffer intersects” in the Layer Name section​

The layer is loaded into QGIS
Picture
If you wanted the find the population data for the areas which intersect the seven buffers we could modify the SQL as follows
Picture
This will create a new layer similar to the previous one but with a different attribute table as shown below.
Picture
With virtual layers you can create more complex SQL statements than is possible with the QGIS field calculator.  Now it is possible to use ESRI shape and MapInfo mif files to create SQL statements previously only feasible with  PostGIS, MySQL and Oracle Spatial formats.
0 Comments
<<Previous

    Author

    Joe Short BSc has been involved with various mapping solutions for over twenty years.  If you are considering implementing a GIS  or have ArcGIS Pro, MapInfo Pro or QGIS training requirements, jps services would be happy to be of assistance to your organisation. 

    Archives

    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    August 2018
    July 2018
    November 2017
    October 2017
    September 2017
    July 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    May 2016
    February 2016
    September 2015
    August 2015
    April 2015
    February 2015
    November 2014
    October 2014
    July 2014
    June 2014
    May 2014
    March 2014
    February 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    June 2013
    May 2013
    April 2013
    February 2013
    December 2012
    October 2012
    September 2012
    August 2012
    July 2012

    Categories

    All
    Arc Gis
    Arcview
    Autodesk
    Cad
    Gis Training
    Local Government
    Mapbasic
    Mapinfo
    Quantum Gis
    Relational Databases
    Saga Gis

    RSS Feed