Results 1 to 10 of 21

Thread: [Award Winner] Some pointers for using GIS

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    OK, next, labeling. Labeling seems to be undergoing some changes in QuantumGIS at the moment so there are two different labeling subsystems.

    The first is under the layer properties as a tab. Turn on the labelling with the check box and select an attribute to use. You can also set a "buffer" around the text to make it more visible, adjust the positioning, and so on.

    Click image for larger version. 

Name:	15.png 
Views:	189 
Size:	59.2 KB 
ID:	42265Click image for larger version. 

Name:	16.png 
Views:	200 
Size:	267.9 KB 
ID:	42266

    The newer system uses the labeling toolbar. Pick the label tool ("ABC" on top of a blue line)

    Click image for larger version. 

Name:	17.png 
Views:	176 
Size:	26.3 KB 
ID:	42267Click image for larger version. 

Name:	18.png 
Views:	208 
Size:	253.2 KB 
ID:	42268

    This new tool uses a more advanced layout system that tries to position the label intelligently and with consideration to of the shape of the feature and the presence of other labels, both on the same layer and on other layers. You can pick a specific layout strategy and indicate which layers have priority of placement under the advanced tab. For instance, you might want to give country labels priority over city ones.

    Now down at the bottom, you should see a status bar with several items on it. First a set of coordinates for the present location of your mouse, second, is the current scale, third are some controls for re-rendering, which can be useful when large data sets cause the program to lag, and fourth is the current coordinate system, which should be greyed out.

    The current coordinate reference system (CRS) should be EPSG:4236, or if you hover over it, it should tell you that's WGS84. EPSG is the European Petroleum Survey Group, an organization which has listed a large set of common coordinate systems and given each a specific number, in this case they have assigned the number 4326 to the WGS84 datum, one of the most widely used datums for worldwide use. If you look at the coordinates box, you'll see that they are in the range of -180 to 180, and -90 to 90. That is, they are the latitude an longitude.

    Now lets change to a projected coordinate system. Click the little globe icon beside the CRS indicator. This will bring up the CRS properties.

    Click image for larger version. 

Name:	19.png 
Views:	238 
Size:	55.0 KB 
ID:	42269

    Now, so far the data in the shapefiles has been in the same coordinate system as the map. They have both been WGS84. Now we are going to change that, but we need to tell QGIS to adjust everything to match automatically. This can be slow, and sometimes a little buggy so it is turned off by default. Click the check box at the top to enable it and then click apply. In the main window, the CRS indicator should turn from grey to black.

    Now, open Projected Coordinate Systems, Equidistant Cylindrical, and select WGS84 Plate Carree. Then click apply again.

    Click image for larger version. 

Name:	20.png 
Views:	218 
Size:	111.0 KB 
ID:	42270

    The map is now in the Plate Carree projection. This means that distances along the equator, or straight north-south are correct, and in this case measured in metres. Close the properties and go back to the main widow. You may need to zoom in or out to make things update. Now, where you had degrees, you now have metres, so everything is much, much bigger. In fact you probably only see one big field of colour from a single feature. So Zoom Full to see the whole map.

    Click image for larger version. 

Name:	21.png 
Views:	230 
Size:	283.1 KB 
ID:	42271

    That really doesn't look all that different, but it is. Move your mouse and watch the coordinates. They are now up in the millions because it's all in metres now. The first is in distance along the equator, and the second is north or south. Both have had large numbers added to them to eliminate negative numbers. Obviously, the scale doesn't work for other distances, the poles have been stretched out by the projection. Select Canada from the countries layer and zoom to it. The arctic islands are a very good example of the distortion. Lets pick another projection to fix that.

    Click image for larger version. 

Name:	22.png 
Views:	208 
Size:	212.8 KB 
ID:	42272

    Open the CRS properties again and change to Lambert Conformal Conic. There are a lot of LCC projections so to find the one we want so lets do a search. Down at the bottom of the list, select Search by Name, enter "Statistics Canada" and click Find. This should bring up NAD83 / Statistics Canada Lambert. If not, click Find again until you get it.

    Click image for larger version. 

Name:	23.png 
Views:	179 
Size:	140.0 KB 
ID:	42273

    Apply, close the properties, and Zoom to Selection to re-centre on Canada.

    Click image for larger version. 

Name:	24.png 
Views:	335 
Size:	275.3 KB 
ID:	42274

    That looks much better, although the ocean has disappeared. Also, if you zoom out, you'll see that other parts of the world have very serious distortion. Antarctica has even been turned inside out. Try turning the countries and land off, and you'll find the same thing has happened to the ocean. Normally we would be working with shapefiles that only contain regional data when making a regional map, which would solve this problem. I'll cover creating a clipped and reprojected shapefile later.
    Last edited by Hai-Etlik; 01-12-2013 at 08:41 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •