Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
QGIS 2 Cookbook

You're reading from   QGIS 2 Cookbook Become a QGIS power user and master QGIS data management, visualization, and spatial analysis techniques

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781783984961
Length 390 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
 Mandel Mandel
Author Profile Icon Mandel
Mandel
 Olaya Ferrero Olaya Ferrero
Author Profile Icon Olaya Ferrero
Olaya Ferrero
Anita Graser Anita Graser
Author Profile Icon Anita Graser
Anita Graser
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

QGIS 2 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Data Input and Output FREE CHAPTER 2. Data Management 3. Common Data Preprocessing Steps 4. Data Exploration 5. Classic Vector Analysis 6. Network Analysis 7. Raster Analysis I 8. Raster Analysis II 9. QGIS and the Web 10. Cartography Tips 11. Extending QGIS 12. Up and Coming Index

Clipping vectors


Like rasters, occasionally you only need vector data to cover a certain area of study (area of interest). Also, like rasters, you can use a layer defining the extent that you want to select only for a portion of a vector layer to make a new layer. The tool that is used for this job is Clip; that is, 'Cookie Cutter' because of how the results look afterwards.

Getting ready

For the example in this recipe, we will use geology.shp and clip it to the extent of Wake County using census_wake2000.shp. Any vector layer with the aggregation of polygons covering all of the county will work.

How to do it…

  1. Load the two, geology.shp and census_wake2000.shp, layers.

  2. Open the clipping tool from Vector | Geoprocessing Tools | Clip:

  3. Input layer is the layer that has to be cut; this is geology.shp.

  4. Clip layer defines the boundaries that have to be cut.

    Tip

    There is no requirement that clip layer be contiguous. You can cut any combination of shapes that you want, circles, squares, triangles, and so...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images