O'Reilly logo

Python Geospatial Analysis Essentials by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spatial analysis recipes

Now that we have a full set of geospatial analysis libraries available to us, let's see how we can use them to solve some real-world problems. We will look at how we can calculate and work with locations, lengths, and areas, as well as how we can use NetworkX to calculate the shortest available path between two points.

Calculating and comparing coordinates

As we saw earlier, PyProj can be used to calculate the real-world distance between two locations. It can also be used to measure the angle of a line going between two points, and calculate new points based on a starting point, a distance, and a heading.

Let's use PyProj to calculate the distance between two points. We will then use it to calculate a location at a certain ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required