Book Image

Learning R for Geospatial Analysis

By : Michael Dorman
Book Image

Learning R for Geospatial Analysis

By: Michael Dorman

Overview of this book

Table of Contents (18 chapters)
Learning R for Geospatial Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
External Datasets Used in Examples
Cited References
Index

Spatial relations between vector layers


In this section, you will learn how to perform operations involving pairs of vector layers. These types of operations are very common in spatial data analysis. We often want to know, for instance:

  • What are the distances of different resorts from the nearest coastline?

  • Which houses are within a radius x of the epicenter of an earthquake?

  • Which parts of the habitat of an endangered species are contained within protected nature reserves?

All of these operations require the overlay of features from two distinct layers, although, as we have seen earlier, the result can be:

  • A numeric value (the distance from a resort to the nearest coastline is 50 meters)

  • A logical value (the house is within a distance of 10 kilometers of the earthquake epicenter)

  • A spatial layer (a polygon defining the intersecting area between the natural distribution of the endangered species and nature reserves)

In this section, we will see examples of all three kinds of operations.

Querying...