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

Performing an identity function (difference + intersection)

In ESRI geoprocessing terminology, there is an overlay function called identity. This is a very useful function to call when you want to keep all the original geometry boundaries of ONLY the input features combined with an intersection of input features.

Performing an identity function (difference + intersection)

This boils down to a formula that calls for both difference and intersect. We first find the difference (input feature - intersection), then add the intersection to create our results as follows:

               (input feature – intersection) + intersection = result

How to do it...

  1. For all you curious folks who want to learn how to do this, type out the ...

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