Friday, 6 April 2018

arcgis desktop - How to change the dynamic information in data driven pages


enter image description here



I want to ask one question about data driven pages.


I plan to create data driven pages to show each parish’s information in Louisiana. Followed is the template I am going to use. I downloaded it from ATSDR.
See there is Demographic Statistics in the plate? I wish the statistics could change when the county changes.
For example, when the map demonstrates county A, county A’s information would appear; while in next page, the map showed county B, and county B’s information come out. I tried to insert dynamic elements, but it failed. Because dynamic elements only include page number, date, etc.
Is there anyone know how to deal with that? If you need further information, please let me know.



Answer



In ArcMap 10.2 and above, you can use Data Driven Pages so that your attribute information (such as the demographic text listed above) changes when the page changes.


You can display any attribute in your attribute table as dynamic text in the map. If the attributes you want to display are not in your feature class, consider doing a join from a table with the attributes into your feature class.


To do this, on the Data Driven Pages toolbar, click on "Page Text" and choose "Data Driven Page Attribute." In the pop-up window that appears, use the drop down menu to choose the field you want to display.
enter image description here



This will insert a text box in your map that contains text something like this:




To recreate the statistics like they are in your sample image, you can position the text boxes with the statistics and other text boxes accordingly. In my example, I kept each piece of text in its own text box and used the Align and Distribute tools to line them up. I used a hollow rectangle to make my outline. Here is a screenshot with everything selected, so you can see all of the text box borders and the rectangle border.


(You could combine the dynamic text code all into one text box but I find the spacing is easier this way.) enter image description here


Here is a quick sample I did to show that it works (also showing a snapshot of the attribute table).
enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...