O'Reilly logo

Python Geospatial Analysis Cookbook by Michael Diener

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

Union polygons without merging

To demonstrate what merging is all about, we will take an example from the National Oceanic and Atmospheric Administration (NOAA) weather data. It provides an awesome minute-by-minute update of Shapefiles for your desire to download data. We will look at a one-week collection of weather warnings, and combine these with state boundaries to see where exactly warnings occurred within a state boundary.

Union polygons without merging

The preceding screenshot shows us the polygons before the union operation in QGIS.

Getting ready

Make sure your virtual environment is, as always, fired up and run the following command:

$ source venvs/pygeo_analysis_cookbook/bin/activate ...

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