worldbank / GSS_Census_Tools

Collected tools for improving the EA demarcation workflow
GNU General Public License v3.0
4 stars 3 forks source link

Map Automation via Python Script #2

Open Justin-Q opened 4 years ago

Justin-Q commented 4 years ago

@bpstewar , the GIS team would be glad if you could modify the automation code to be specific to T2 Portrait and T2 Landscape Maps.

bpstewar commented 4 years ago

How do you need the script to be modified? If you have the maps open and copy the code into the python window in ArcMap, it should work. You may need to change the variables (focal_layer, feature_name, labelFields), but the basics of the code should work.

I would also encourage looking into the data driven maps if the automation script doesn't work, as the reported errors are more useful

Justin-Q commented 4 years ago

In the automation process, the code should specifically select only type 2 EA's and export them the map. The code should also end up creating a map document for each EA.

Justin-Q commented 4 years ago

A separate code is also ideal for the type three map automation process, this code should specifically extract the shapes based on SA's (Selected on SA number) from the Dissolve shapefile to create the various pdf's and map documents.

bpstewar commented 4 years ago

So what do you want this to look like - a script to extract the various SAs based on type and orientation? I have some code somewhere to do the orientation calculation, would that be useful?

aspashur commented 4 years ago

Yes it would be. We are currently implementing the data-driven pages for the map creation. https://youtu.be/pBK1Q9SG5dk is a link to the first implementation we did.