From the course: Geospatial Data Analytics Essential Training
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Geometry operations - Python Tutorial
From the course: Geospatial Data Analytics Essential Training
Geometry operations
- [Instructor] After learning about how to create different types of geometries in Python using shapely, we'll now dive into the topic of geometry operations. In this topic, we'll learn about the most important functions that transform a single geometry into a new one, and how to combine two geometries in different ways. The first operation we learn about is buffering, which simply means extending an existing geometry by a buffer zone of a given size. Buffering as we will see it in later examples is particularly useful when we want to compute statistics in the surroundings of a given geometry. We will need geometries to do geometry operations, so first import the relevant classes from shapely. The most simple geometry we can buffer is a point, so let's try buffering with a point placed at the origin. After creating the point, we'll create the buffer geometry with a buffer zone size of 0.2. As the output shows, the result of buffering a point is a circle with the radius of 0.2. We can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.