SlideShare a Scribd company logo
Let's Try       For U & Me




 Map-Making
with QGIS                                                                                                          ­Part—1

Have you ever wondered how maps are made? In this article, we will take our first step towards
making maps from spatial data using Quantum Geographic Information System (QGIS).



Q
         GIS is one of the most
         widely used open source
         desktop tools for map-
making and basic GIS analysis.
You can download it from http://
download.qgis.org. QGIS is useful
for visualising and editing spatial
data, and for querying its features.
Features are the geographical objects
in the layer, e.g., each individual
airport is a feature in the airports
layer. A feature will have attributes
describing it, such as the geometry,
name, category, etc.
    QGIS has a Map Composer,
which allows you to add the essential
map elements and get the map print-       Figure 1: Alaska and Airports shapefiles
ready. QGIS comes with dozens
of handy plug-ins, and a Python
console, just in case developers want
to interact with the data through the
command interface. For this tutorial,
we will be using version 1.7.3 with
the Alaska dataset available at http://
download.osgeo.org/qgis/data/qgis_
sample_data.zip.

Visualise shapefiles
QGIS supports most common vector
file formats—Shapefile, KML,
GML, GPX, etc. The procedure to
open the files is the same for all
formats:
1.	 On the menu, click Add Vector
    Layer.                                Figure 2: Layer styles




                                                                                     www.LinuxForU.com  | LINUX For You  | JUNE 2012  |  31
For U & Me              Let's Try

2.	 Browse to the source (for our
    example, the qgis_sample_data/
    shapefiles directory).
3.	 Select the files (in our case, alaska.
    shp and airports.shp). Figure 1
    shows the Map Canvas with the
    Alaska and Airports layers.

Layer styles
Styling allows us to set fill colours,
patterns, borders, icons, etc, for the
features in the layer:
1.	 Right click the Airport layer in the
    Layers panel and select Properties.
2.	 Under the Style tab you can
    change the symbol and colour,
    the size of the symbol, set
    transparency, and categorise the
    features (see Figure 2).

Layer labels
                                                Figure 3: Feature labels
Labels are text identifiers for features in
the layer. QGIS allows you to choose the
attribute you want to show as the label,
and set its style too (see Figure 3):
1.	 Right click the Airport layer and
     select Properties.
2.	 Under the Labels tab, check mark
     Display Labels.
3.	 Select the Field Containing Label; this
     is the text to be shown on the layer.
4.	 Set the font size, colour, type, and
     the text position with respect to the
     feature location.

Attributes table
Attributes describe the features in
a layer. The attribute values can be
edited and queried. To view attribute
names and data, right click the Airport
layer and choose Open Attribute Table.
     To query features of your interest,
add the text to filter the data in the Look     Figure 4: Feature selection
For text box, and select the desired field.
For instance: look for ‘Military’ in the        format as ESRI Shapefile and save.            publish a map, plot custom data and
field ‘Cat’. Then hit Search. You will             In Part II, we will learn how to           perform geoprocessing.
find that all military airports are selected
and highlighted in the Attribute Table,           By: Sagar Arlekar & Niket Narang
as in Figure 4, and on the map. For               The authors are researchers at the Center for Study of Science, Technology
complex queries, try Advanced Search.             and Policy (CSTEP), Bengalore. They work in the fields of GIS and Agent-Based
     Selected features can be saved as            Simulation. At CSTEP they have built a web-based GIS framework to simulate and
                                                  visualize disaster impact. They love working with open source tools and are active
a new shapefile: click Layer > Save
                                                  contributors to Openstreetmaps.
Selection as vector file. Select the



32  |  JUNE 2012  | LINUX For You  |  www.LinuxForU.com

More Related Content

ODP
Spatial is Not Special ?
PPTX
Exploring Spatial data in GIS Environment
PPTX
CONNECTING BENTLEY AND ESRI TERRAIN DATA
ODP
Making Beautiful Maps: Oct 5 2011
PPTX
Surfer
PPTX
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
PPTX
GIS Modeling
PDF
QGIS Module 2
Spatial is Not Special ?
Exploring Spatial data in GIS Environment
CONNECTING BENTLEY AND ESRI TERRAIN DATA
Making Beautiful Maps: Oct 5 2011
Surfer
HEC-RAS LiDAR Cross Sections With Microstation SS3 V8i
GIS Modeling
QGIS Module 2

What's hot (20)

PDF
QGIS training class 1
PDF
ePOM - Intro to Ocean Data Science - Raster and Vector Data Formats
PPTX
Data Models - GIS I
PPTX
Exploring spatial data in GIS Environment
DOCX
survey paper 2
PDF
QGIS Tutorial 1
PDF
Ahmad Mauliddin Vol Of Water In Bili Bili
PPT
Analytic mapping 2013
PDF
Introduction to ArcGIS 10.1
PPT
Google Earth
PDF
What is gis
PPTX
First GIS Software that Convert GIS Shape files to HTML Google Map Web Site a...
PDF
QGIS training class 3
PPTX
Plugins in QGIS and its uses
PDF
QGIS Module 3
DOC
Module for principles and application of precision agriculture
PPTX
Digitization and 3d modelling of a mine plan
PPTX
functions of GIS
PDF
Integrating Geospatial Data to your Applications
PPTX
Case study of goggle map
QGIS training class 1
ePOM - Intro to Ocean Data Science - Raster and Vector Data Formats
Data Models - GIS I
Exploring spatial data in GIS Environment
survey paper 2
QGIS Tutorial 1
Ahmad Mauliddin Vol Of Water In Bili Bili
Analytic mapping 2013
Introduction to ArcGIS 10.1
Google Earth
What is gis
First GIS Software that Convert GIS Shape files to HTML Google Map Web Site a...
QGIS training class 3
Plugins in QGIS and its uses
QGIS Module 3
Module for principles and application of precision agriculture
Digitization and 3d modelling of a mine plan
functions of GIS
Integrating Geospatial Data to your Applications
Case study of goggle map
Ad

Viewers also liked (8)

PDF
Rails Plugins - Linux For You, March 2011 Issue
PPT
Rails e suas Gems
KEY
Rails and twitter #twtr_hack
 
PDF
Ruby gems
PDF
Map Making with QGIS - Part II
PPT
Omniauth
PDF
Some OAuth love
PDF
APIs for mobile
Rails Plugins - Linux For You, March 2011 Issue
Rails e suas Gems
Rails and twitter #twtr_hack
 
Ruby gems
Map Making with QGIS - Part II
Omniauth
Some OAuth love
APIs for mobile
Ad

Similar to Map Making with QGIS (20)

PDF
Nycct GIS_primer tutorial
PDF
RS and GIS TW- 1&2.pdf
PPTX
Geoprocessing
PDF
Concepts and Methods of Embedding Statistical Data into Maps
PPTX
QGIS Training.pptx
PPTX
ArcGIS API for Javascript Tutorial
PDF
Introduction to gis
PPTX
GIS_Intro_March_2014
PDF
SD-miner System to Retrieve Probabilistic Neighborhood Points in Spatial Dat...
PPT
introduction to _Quantum Geographical Information System.ppt
PDF
Manual to basic gis
PDF
Concepts and Methods of Embedding Statistical Data into Maps
PDF
Concepts and Methods of Embedding Statistical Data into Maps
PPTX
3-geocode_address3-geocode_address3-geocode_address.pptx
PPTX
3rd workshop-----------------------.pptx
PPTX
GIS Ppt 5.pptx: SPACIAL DATA ANALSYSISIS
PDF
02+ +step+by+step+qgis
PPTX
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
PPTX
Introduction to Geographic Information Systems
PPTX
GIS Level 1 Introduction to GIS and Mapping
Nycct GIS_primer tutorial
RS and GIS TW- 1&2.pdf
Geoprocessing
Concepts and Methods of Embedding Statistical Data into Maps
QGIS Training.pptx
ArcGIS API for Javascript Tutorial
Introduction to gis
GIS_Intro_March_2014
SD-miner System to Retrieve Probabilistic Neighborhood Points in Spatial Dat...
introduction to _Quantum Geographical Information System.ppt
Manual to basic gis
Concepts and Methods of Embedding Statistical Data into Maps
Concepts and Methods of Embedding Statistical Data into Maps
3-geocode_address3-geocode_address3-geocode_address.pptx
3rd workshop-----------------------.pptx
GIS Ppt 5.pptx: SPACIAL DATA ANALSYSISIS
02+ +step+by+step+qgis
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
Introduction to Geographic Information Systems
GIS Level 1 Introduction to GIS and Mapping

More from Sagar Arlekar (6)

PDF
PostgreSQL Modules Tutorial - chkpass, hstore, fuzzystrmach, isn
PDF
Foodlets in Business Goa Magazine
PDF
The Foodlets Business Plan Released
PDF
Foodlets Team Interview - Navhind Times
PDF
Getting Started - Creating products and services that make life better
PDF
Getting Started - Going out and creating a change
PostgreSQL Modules Tutorial - chkpass, hstore, fuzzystrmach, isn
Foodlets in Business Goa Magazine
The Foodlets Business Plan Released
Foodlets Team Interview - Navhind Times
Getting Started - Creating products and services that make life better
Getting Started - Going out and creating a change

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
PDF
Basic Mud Logging Guide for educational purpose
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Open folder Downloads.pdf yes yes ges yes
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction-to-Social-Work-by-Leonora-Serafeca-De-Guzman-Group-2.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
STATICS OF THE RIGID BODIES Hibbelers.pdf
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Basic Mud Logging Guide for educational purpose
The Final Stretch: How to Release a Game and Not Die in the Process.
01-Introduction-to-Information-Management.pdf
PPH.pptx obstetrics and gynecology in nursing
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
2.FourierTransform-ShortQuestionswithAnswers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Open folder Downloads.pdf yes yes ges yes
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
O5-L3 Freight Transport Ops (International) V1.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

Map Making with QGIS

  • 1. Let's Try For U & Me Map-Making with QGIS ­Part—1 Have you ever wondered how maps are made? In this article, we will take our first step towards making maps from spatial data using Quantum Geographic Information System (QGIS). Q GIS is one of the most widely used open source desktop tools for map- making and basic GIS analysis. You can download it from http:// download.qgis.org. QGIS is useful for visualising and editing spatial data, and for querying its features. Features are the geographical objects in the layer, e.g., each individual airport is a feature in the airports layer. A feature will have attributes describing it, such as the geometry, name, category, etc. QGIS has a Map Composer, which allows you to add the essential map elements and get the map print- Figure 1: Alaska and Airports shapefiles ready. QGIS comes with dozens of handy plug-ins, and a Python console, just in case developers want to interact with the data through the command interface. For this tutorial, we will be using version 1.7.3 with the Alaska dataset available at http:// download.osgeo.org/qgis/data/qgis_ sample_data.zip. Visualise shapefiles QGIS supports most common vector file formats—Shapefile, KML, GML, GPX, etc. The procedure to open the files is the same for all formats: 1. On the menu, click Add Vector Layer. Figure 2: Layer styles www.LinuxForU.com  | LINUX For You  | JUNE 2012  |  31
  • 2. For U & Me Let's Try 2. Browse to the source (for our example, the qgis_sample_data/ shapefiles directory). 3. Select the files (in our case, alaska. shp and airports.shp). Figure 1 shows the Map Canvas with the Alaska and Airports layers. Layer styles Styling allows us to set fill colours, patterns, borders, icons, etc, for the features in the layer: 1. Right click the Airport layer in the Layers panel and select Properties. 2. Under the Style tab you can change the symbol and colour, the size of the symbol, set transparency, and categorise the features (see Figure 2). Layer labels Figure 3: Feature labels Labels are text identifiers for features in the layer. QGIS allows you to choose the attribute you want to show as the label, and set its style too (see Figure 3): 1. Right click the Airport layer and select Properties. 2. Under the Labels tab, check mark Display Labels. 3. Select the Field Containing Label; this is the text to be shown on the layer. 4. Set the font size, colour, type, and the text position with respect to the feature location. Attributes table Attributes describe the features in a layer. The attribute values can be edited and queried. To view attribute names and data, right click the Airport layer and choose Open Attribute Table. To query features of your interest, add the text to filter the data in the Look Figure 4: Feature selection For text box, and select the desired field. For instance: look for ‘Military’ in the format as ESRI Shapefile and save. publish a map, plot custom data and field ‘Cat’. Then hit Search. You will In Part II, we will learn how to perform geoprocessing. find that all military airports are selected and highlighted in the Attribute Table, By: Sagar Arlekar & Niket Narang as in Figure 4, and on the map. For The authors are researchers at the Center for Study of Science, Technology complex queries, try Advanced Search. and Policy (CSTEP), Bengalore. They work in the fields of GIS and Agent-Based Selected features can be saved as Simulation. At CSTEP they have built a web-based GIS framework to simulate and visualize disaster impact. They love working with open source tools and are active a new shapefile: click Layer > Save contributors to Openstreetmaps. Selection as vector file. Select the 32  |  JUNE 2012  | LINUX For You  |  www.LinuxForU.com