Lets play with some other data first- Open Layers using Open Street Map data!
Load the PGbound layer from the tutlab3 directory in labs/geog204 (accept default of 4326 projection). Go to your PLugin pulldown menu and activate the Open Layers plugin. Zoom into the pgbound layer extent (you probably are already there). Now add open street map data by Web –> Open Layers –> Open Street Map –> Open Street Map. Watch what happens to the projection as OSM data is being loaded.
Now add the roads layer fromt he tutlab4 directory and colour them accordingly. Load the pgbound_mask shape file from the mapmaking directory in geog204 labs directory. Zoom your map extents in such a way to include only the extents (or part of) this mask layer.
Exporting your map area in QGIS – very simple
Once you have a map the way you like it, you can save it as an image that can be used on a web page or in a word processor. You must remember however that this output will not be the greatest for printing.
- Click file–> save as image and save the image
- You may want to save the results in your project directory as well as you images directory in your public_html directory
- You can now insert the image as you have done before with SeaMonkey or in Word
You could see an image that looks something like this:
Exporting your map area in QGIS – Better and more versitile
A more elegant way of getting your work out of QGIS is to use the composer utility. you can do this by:
- File –> New print composer
- Add new map (click button and drag out an area on the canvas).
- Then you can spruce up the map with legends, arrows, scalebars, grids …
Your new map could look something like this:
You can export your map as a image or a vector output. In the composer window click:
- File export as image (image file obviously)
- File export as PDF (vector format)
- File export as SVG (scalable vector graphic – great for vector data on web pages)
You can also export tables from your project using composer. It is an easy way to get the data you want to show in your write up.
Screen Captures – sometimes it is just works the best
Sometimes it works best to grab the information you are after by using a screen shot. This is achieved by using another piece of software called GIMP. GIMP is equivalent to Adobe Photoshop in it abilities, it is a great piece of Open Sourve software. You can use it for you projects by:
- Opening up GIMP (Linux – Applications –> Graphics –> GIMP) (Windows Programs –> GIMP)
- File –> Create –> Screenshot –> Area –> Take a screenshot of single window
Once the screen shot is loaded in GIMP
- Draw a rectangle around the area you are interested in (rectangle select tool in tool box)
- Edit –> copy
- Edit –> paste as –> new image
- File save image (save as what ever you would like)
With the version of Ubuntu we are using, you can also run screeshot from the menu (click menu –> type screenshot) to save png images. This is much faster, but if you want to trim or dress up the image – you will still need GIMP.
Using the results as a geo-referenced image
If you save your image from the main window (not from composer), the image you save is actually georeferenced. This image can be brought into other software (such as Google Earth Pro) as an overlay. You can also send out the map to your Garmin GPS (or Google Earth) by using the plugin GarminCustomMap.