Data Driven Pages: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Created page with "This is a feature of ArcGIS Desktop that lets you create a map series based on an index. The index has polygons that define the extent of each page in the series. The index ca..."
 
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
This is a feature of ArcGIS Desktop that lets you create a map series based
This is a feature of ArcGIS Desktop.
on an index. The index has polygons that define the extent of each page in the series.
The index can be a grid or a strip (eg following a river channel) or really any random series of rectangles defining each page.


Let's say I want to create a map series for a long bike ride. I'd do a common layout and then define the extent of each leg of the ride.
Use Data Driven Pages when you want to create a map series (printed or pdf or ?)


# I create a route in Garmin's BaseCamp. Make sure you create enough via points.
# Create a layout to be used for each map in the series.
# Create an index to define the extent of each page along with things like the page title
# Generate the maps by running the tool
 
I want to create a map series for a long bike ride. Page one should show the whole route. Successive pages will each show a segment of the ride. I will generate a PDF file containing all maps.
 
# I create a route in Garmin's BaseCamp.
# Select the route and then File->Export "Selected User Data"
# Select the route and then File->Export "Selected User Data"
# Save the route as a GPX file
# Save the route as a GPX file
Line 11: Line 15:
# File->Export "Selected User Data"
# File->Export "Selected User Data"
# Save the track as another GPX file
# Save the track as another GPX file
# In ArcGIS, use tool "GPX to features (Conversion)" to convert the route and track.
# Jump over to ArcGIS.
# Use tool "GPX to features (Conversion)" to convert the route and track to feature classes.
# Convert the track to a line.
# Use the line as input in the Strip Map Index Features tool. I made the box on my map 8"x8" so I build an index for that. I set the scale to 1:48000 to give a reasonable map for bicycling.
# Use the setup wizard in the Data Driven Pages toolbar to turn on DDP and use the index fc.
 
I had to add a TrackUp field to the index and calculate angle + 180 to get the maps to show Track Up instead of Track Down.
 
An exercise: Python script, to make a bookmark for each page (instead of using DDP toolbar).
For each feature in the index feature class:
  Find centroid for each feature
  Generate a bookmark matching it
 
Anoteher exercise: Write python to generate the strip index, and then have it insert the first row as an extent that covers the entire route with Angle set to 0 so that we have a north up overview as page 1 in the map book.


The track is for a visual reference. The route is for creating the index.
The track is for a visual reference. The route is for creating the index.


== Creating the index ==
The maps will just use the ESRI [http://www.esri.com/software/arcgis/arcgisonline/features/maps
ArcGIS Online] [https://www.arcgis.com/home/gallery.html#c=esri&t=maps&o=modified&f=basemaps-current Basemap] US topo for now. In ArcMap, use "Add Basemap" in the "add data" list.


== Page definition queries ==


A page definition query allows you to control what shows up on a given page.
Can I have an elevation profile for the segment appear on each page?


Can I have an overview dataframe appear on each map?
Can I have an overview dataframe appear on each map?
Line 30: Line 47:


Can I have a block of text appear on only certain pages? For example, attribution for a layer.
Can I have a block of text appear on only certain pages? For example, attribution for a layer.
== Creating the index ==
== Page definition queries ==
A page definition query allows you to control what shows up on a given page.





Revision as of 00:52, 3 September 2015

This is a feature of ArcGIS Desktop.

Use Data Driven Pages when you want to create a map series (printed or pdf or ?)

  1. Create a layout to be used for each map in the series.
  2. Create an index to define the extent of each page along with things like the page title
  3. Generate the maps by running the tool

I want to create a map series for a long bike ride. Page one should show the whole route. Successive pages will each show a segment of the ride. I will generate a PDF file containing all maps.

  1. I create a route in Garmin's BaseCamp.
  2. Select the route and then File->Export "Selected User Data"
  3. Save the route as a GPX file
  4. Convert the route to a track and then select the track.
  5. File->Export "Selected User Data"
  6. Save the track as another GPX file
  7. Jump over to ArcGIS.
  8. Use tool "GPX to features (Conversion)" to convert the route and track to feature classes.
  9. Convert the track to a line.
  10. Use the line as input in the Strip Map Index Features tool. I made the box on my map 8"x8" so I build an index for that. I set the scale to 1:48000 to give a reasonable map for bicycling.
  11. Use the setup wizard in the Data Driven Pages toolbar to turn on DDP and use the index fc.

I had to add a TrackUp field to the index and calculate angle + 180 to get the maps to show Track Up instead of Track Down.

An exercise: Python script, to make a bookmark for each page (instead of using DDP toolbar).

For each feature in the index feature class:
  Find centroid for each feature
  Generate a bookmark matching it

Anoteher exercise: Write python to generate the strip index, and then have it insert the first row as an extent that covers the entire route with Angle set to 0 so that we have a north up overview as page 1 in the map book.

The track is for a visual reference. The route is for creating the index.

The maps will just use the ESRI [http://www.esri.com/software/arcgis/arcgisonline/features/maps

ArcGIS Online] Basemap US topo for now. In ArcMap, use "Add Basemap" in the "add data" list.


Can I have an elevation profile for the segment appear on each page?

Can I have an overview dataframe appear on each map?

Can I rotate each map so that I have direction of travel instead of north up?

Can I turn layers on or off on a page?

Can I turn on or off features like north arrows or scale bars?

Can I have a block of text appear on only certain pages? For example, attribution for a layer.

Creating the index

Page definition queries

A page definition query allows you to control what shows up on a given page.