Summary

In this chapter, we covered the use of layer definition queries, data frame extents and scales, and layer source replacement to ease the production of maps. By using definition queries, the layers can be modified to new extents, making it easier to zoom into the layer extent and to set the scale of the data frame. The definition queries also limit which members of a layer are displayed within the data frame. Layer source replacement was used as a cartographic control, allowing us to pre-generate the style of a layer and adjust the data that it represented dynamically.

In the next chapter, we will combine the lessons from the last three chapters, allowing us to create a script tool that will run analysis and produce spreadsheets and maps ...

Get ArcPy and ArcGIS – Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.