One of the hardest things about writing a blog is deciding on a title for the article… I’m still not convinced this is the right title to describe this article…. But anyway….
Apart from talking about Python and ArcPy I also teach anything and everything about ArcGIS for Desktop and on a recent course I was asked this question:
“I know that Data Driven Pages can be used to create a map based upon the extent of each feature in the index layer…. But how can I display just that feature from my Data Driven Pages index layer, and not any other features? And can I choose what layers are clipped by the outline of the index layer?
It has been ages since I wrote a blog post (apologies but work and life have gotten in the way in the latter part of 2016 / early 2017 ) and this question has stimulated me to finally write something – Action this Day if you like…
In my map document I have a basemap from ArcGIS Online and three feature layers, made up of building outlines, ward boundaries and the road network. My wards layer is my Data Driven Pages index layer and is currently displaying Grange Ward.
My map is shown below – apologies to any cartographers who might have stumbled across this blog entry. Please leave your carto-criticisms in the comments section where they will be dealt with in the traditional way by most complaints departments….
So let’s answer the second question first – “How can I display just that feature from my Data Driven Pages index layer, and not any other features?”
This is achieved by working with the Data Frame Properties dialog box. So:
- Click the Data Frame tab and notice the area called “Clip Options”.
By default it is set to No Clipping.
- Click on the drop-down and choose “Clip to current data driven page extent” and press the OK button.
When the changes have been applied you will then see that the current Data Driven Page feature is used to clip all of the layers (including raster layers) in your map. Notice that only the current index layer feature is displayed (Grange Ward) and it is used to clip all features and pixels within the active Data Frame.
Pressing the Next Page button on the Data Driven Pages toolbar will display the next Data Driven Page feature in the index layer and will also clip the data accordingly.
Now that the current feature in the index layer is clipping the data it is quite straightforward to control what layers are clipped and what ones are not clipped. The second question – “And can I choose what layers are clipped by the outline of the index layer?” can now be answered.
Once again this is done from within the Data Frame Properties > Data Frame tab.
- Locate the Clip Options area (the Clip to current data driven page extent option should still be chosen).
Notice the Exclude Layers… button.
- Click the Exclude Layers… button.
- Choose the layers which are no longer to be clipped. In the example below the basemap and the roads are chosen and will no longer be clipped to the current index layer feature.
The result is that the OS Lines are clipped to the single Grange Ward index feature. The roads and the basemap are no longer clipped to the index feature.
To highlight your particular clipping feature a border style can be applied:
The map below shows the clipping feature with a “Single, Nautical Dash”:
So, you probably knew this anyway: I didn’t and thought it was a nice feature I wanted to share.
I wonder if ArcGIS Pro 2.0 has this built into it yet? Something to look at as and when…