Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Scientific support for the management of Coastal and Oceanic Fisheries in the Pacific Islands region (SciCOFish) Funded by European Union (10 th EDF) Beginning Quantum GIS 1.8: usual issues and solutions
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish GIS use in coastal fisheries GIS is often used by coastal fisheries officers to plan field surveys and determine coordinates of new sample stations using satellite imagery and additional vector layers (MPA boundaries, habitat maps etc) display sampling stations / habitat maps by category (thematic maps) display data associated with sampling stations (bubble maps and pie charts) determine area of delineated zones (MPA area, habitat area etc...) measure distances along a path
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish GIS use in coastal fisheries The GIS data generally consists in GeoTIFF and ECW satellite images a mixture of legacy shapefile and MapInfo vector layers CSV or tab delimited text files GPX files (waypoints) QGIS can handle all these kinds of layers and is sufficient for most fisheries users. QGIS complements nicely commercial software whose installation is often restricted to a few machines because of licence costs.
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish QGIS for coastal fisheries QGIS 1.7 & 1.8 were used to train coastal fisheries officers in 2012 Vanuatu (4 days) Marshall Is (2 days) Samoa (2 days) Timor-Leste (introduction to GIS) SPC coastal fisheries scientists (1 day) Some trainees had some previous experience on MapInfo and/or ArcGIS while others were totally new to GIS We observed that most QGIS beginners are facing the same blocking issues (i.e. issues for which they don’t find themselves workarounds)
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish On-the-fly reprojection Issue: by default ‘on the fly’ reprojection is disabled. Most projects include a mix of UTM rasters (satellite images) and Long Lat Geographic Coordinates. As by default the reprojection is not enabled, only the raster or the vector layers is displayed. On the fly reprojection can easily be enabled by default for all new projects from Settings/Options/CRS (and restarting QGIS)
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish On-the-fly reprojection Issue: error when displaying a raster that overlaps date line
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish $area unit is the layer CRS unit Issue: for a longlat GCS layer, polygon areas are calculated in square degrees and distances in degrees. For UTM projection, the area unit is square meter and distances are in meters. When calculating areas for polygons, it is disturbing to get areas close to zero. But that’s because the unit is square degrees for a longlat GCS layer. The solution is to use UTM instead (the unit is meter) or to use Vector/Geometry tools/Add geometry columns to create AREA and PERIMETER fields (by default the area is calculated using ellipsoid)
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Scale bar unit Issue: in the print composer, the scale bar unit comes from the project CRS. The project CRS must be set to UTM to get a scale bar in meters. In addition, it is necessary to adapt map units per bar unit and segment size to transform meters into kilometres Project CRS is UTM => Scale bar in meters Project CRS is Longlat GCS => Scale bar in degrees 0 10’ 20’ 30’
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Geometry errors Issue: geometry errors are easily created when digitizing a polygon and cause problems in geoprocessing tools (clipping, etc.). Because polygons are closed by a double click in MapInfo and a right click in QGIS, former MapInfo users tend to create duplicated nodes and knots when closing the polygon (double click followed by right click) Geometry must be checked from Vector/Geometry tools/Check geometry validity duplicated node knot
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Geometry errors Issue: geometry errors are often not visible at the default zoom level. Zooming to see the duplicated node or knot is necessary before fixing the polygon It is possible to automatically fix these errors by importing and re-exporting from a GRASS project (the snap tolerance eliminates the spurious nodes) but it doesn’t always work for large knots.
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Calculated fields Issue: when adding a calculated field in a shapefile with a field name >= 10 characters, the field name is truncated and the calculated field is not evaluated (filled with NULL value) Field names must be 10 characters long at max. Issue: by default the data type for calculated fields is whole number and precision is 0. When switching to decimal number, the user must remember to increase the precision
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Calculated fields valprecision=0precision=1precision=2precision =
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Size scale field Issue: for a bubble map (Layer properties/Style/Advanced/Size scale field), the radius of the disk is proportional to the value, while in other software the value is proportional to the area of the disk (and radius proportional to square root of value) The solution is to create a calculated field which contains the sqrt(value) and use it as size scale field. (Remember, be careful to not use a field name >10 characters long...) Size scale field = a*value Size scale field = b*sqrt(value)
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Scaling a pie Tip: for a pie (overlay), the square root of the sum of values can be used to scale the pie, while the raw values are used to segment the pie.
Pacific Island Countries GIS/RS Users Conference, Suva, Fiji, November 2012 Funded by European Union SciCOFish Conclusion During trainings QGIS was quickly adopted by users, whether they were former users of MapInfo/ArcGIS or not Once explained, the projection issues were understood and UTM adopted as default projection for polygons, while longlat GCS was used for sample stations (points) Scaling bubble maps and pies with the square root of value was applied by users as a recipe but the reason not always well understood. Geometry errors still cause problems to users, mainly because the error message is not always explicit and users have trouble to correct the errors because they are not visible at normal zoom level.