A Python script, run with ArcGIS Pro's Python, that builds MapAction map products automatically. No Python knowledge is needed to run it: it asks a few questions, then does the rest. For each map it:
- creates an ArcGIS Pro project (
.aprx) from a template and the chosen layout (.pagx), using the CMF's default geodatabase and toolbox, - adds the layers for that map (styled by
.lyrxlayer files) and links each one to the right dataset in2_Active_Data; the feather layer, which fades everything outside the country, is made fresh from the country's boundary (see below), - sets the projections, label language and country filters (e.g. only the country's own ports), zooms the Main and Location maps to tidy scales, and sizes the scale bar,
- fills in the legend and the title, map number, GLIDE number, data sources, disclaimer and other text, in the map's language (see "Languages"), with white backgrounds behind the legend and text boxes (one shared, partly transparent background for the bottom-right marginalia group), and puts the donors' logos in place of the layout's donor logo placeholder,
- saves the project and exports a JPEG,
- tidies the project (removes clutter inherited from the template) and sets it to open with the Main map, Location map and layout as tabs, the maps at the same view as on the layout.
This repository is where it is developed and tested. It replaces the
Jupyter notebook MapAction_Map_Automation_ArcPro_v29.ipynb. (For a while
it was a notebook again, run inside ArcGIS Pro; that was dropped because
arcpy hangs there while building the maps. See "Running the script".)
Each MapAction disaster response (e.g. 2026-ven-001) has its own Crash
Move Folder (CMF): a folder with a fixed, standard structure. Three folders
are involved in this work:
- This repository (
Documents/repos/Map_Automation): where the script is developed and tested, against cut-down copies of real CMFs incmf_examples/. - The live Venezuela CMF (
Nextcloud/Projects/2026/2026-ven-001): used by MapAction for the response and synced to colleagues through Nextcloud. The Venezuela test copy's files came from it. It is never edited from here. - The standard CMF (
Documents/repos/default-crash-move-folder, themapaction/default-crash-move-folderrepository): the empty CMF that every new response starts from. It is not touched during development.
When the script is ready, it will be copied from this repository into the standard CMF (3), so every future response has it. This is a plain copy, not a git link between the repositories. Because of this, the script must only rely on the standard CMF structure, never on anything specific to this repository or to Venezuela.
map_automation_pro.py the script users run
map_automation_pro_config.py settings: which maps, layers, testing mode...
run_map_automation.bat double-click to run the script
README.md, CLAUDE.md this guide, and notes for Claude Code sessions
tools/ zips an example project for Google Drive;
refreshes the test data from the live project;
tidies the test copy's map template
cmf_examples/README.txt download links and setup steps for the
example projects (not stored in git, see below)
The example projects are too large for git, so they are kept on MapAction's
Google Drive. Git ignores everything in cmf_examples/ except
README.txt, which lists the download links and the setup steps:
- download each zip and unzip it into
cmf_examples/, - check the folder structure (e.g.
cmf_examples/2026-ven-001/event_description.json), - create the symlinks.
Once unzipped, the Venezuela example looks like this:
cmf_examples/2026-ven-001/ test copy of the Venezuela project (see below)
event_description.json event details used by the script
cmf_description.json where the standard folders are
TEST_ENVIRONMENT.txt marks this as a test copy (allows testing mode)
GIS/2_Active_Data/ the GIS data
GIS/3_Mapping/ layer files, templates and layouts; the
script's outputs go in 33_ and 34_
GIS/6_Pro_Default_Files/ empty default geodatabase and toolbox, copied
from the standard CMF; every new project uses them
GIS/7_Python/map_automation/
links (symlinks) to the three script files
The script files are at the top of the repository, so the same script can
be tested against several example projects. Each example project gets
symlinks to them in GIS/7_Python/map_automation/, so it always
runs the current version. On Windows, creating symlinks needs Developer
Mode (Settings › System › For developers); create them with mklink
(the commands are in cmf_examples/README.txt).
Updating an example on Google Drive. After changing an example project
(e.g. a new data file, or a file in the table below), zip it with
python tools/zip_example.py 2026-ven-001. This leaves out the symlinks,
the script's outputs and clutter, and writes ../2026-ven-001.zip next to
the repository. Upload it to Google Drive in place of the old one. If the
link changes, update cmf_examples/README.txt.
The script relies on the standard CMF structure. To test safely,
cmf_examples/2026-ven-001 is a cut-down copy of the live Venezuela CMF
(Nextcloud/Projects/2026/2026-ven-001) with the same folder structure. It
holds only the files the script uses: about 400 MB out of several tens of
GB.
The live project is synced to other users through Nextcloud. Never edit it from here, and never run the script in testing mode against it. All development and test runs happen in the copy.
The copy comes from Google Drive (see above). If you have the live project in Nextcloud, you can also bring its data files up to date (or add a file the script has started using) with:
python tools/copy_test_data.py 2026-ven-001 # copy missing files only
python tools/copy_test_data.py 2026-ven-001 --refresh # also update files changed in the live project
This only reads from the live project. The list of files for each example
is in tools/test_data/<project>.txt; add any new file the script uses.
Then zip and re-upload the example (see above), so others get the change.
cmf_examples/2026-moz-001 and cmf_examples/2026-npl-001 are made the same
way, from the live Mozambique and Nepal projects, to test how well the
script copes with other countries and with CMFs that were filled in
differently. They are copied as they are in live (except Nepal's masked DEM and hillshade and split boundary lines: see "Files deliberately different"),
so the script may not run on them without changes. Their lists of files hold
the datasets the script's layers could match (any source, so several
candidates for most layers), the layer files, symbol sets, 06_source.csv
and the donor logo, as for Venezuela (layer files aside: see below). Things to know:
- Left out for size: Mozambique's SRTM DEM (2.2 GB) and SRTM hillshade
(1.1 GB) and OSM roads (190 MB); Nepal's 30 m DEM (155 MB), OSM roads
(395 MB; a 25 MB main-roads version is included), government rivers (270 MB) and lakes (95 MB), and the
..._govt_pp_affectedsettlements (a copy of the settlements with extra columns). In their place, the test copies have a GMTED DEM for Mozambique and Natural Earth roads for Nepal, made for them (see below). - Layer files come from the standard CMF, not live (see below). Live
Mozambique's own have older descriptive names
(
admin-adm1-line-reference.lyrx...), none of which the script uses. - Mozambique's country language is Portuguese (
pt), Nepal's English; both have English texts only and one donor (the German Federal Foreign Office). - The data uses other suppliers than INE, and other naming: e.g.
INEin capitals,moz__tran_rds_ln...(two underscores),wrl_admn_ad0_...for the world countries (adxelsewhere), Nepal's admin boundary lines all in one file (npl_admn_ad_ln_...) and its DEM from GMTED nameddtm.
2026-moz-001/GIS/2_Active_Data/211_elev/moz_elev_dem_ras_s0_gmted_pp_250m.tif
is not in the live project, which only has a 2.2 GB SRTM 90 m DEM. It is
made like Venezuela's GMTED 250 m DEM: GMTED2010 mean elevation at 7.5 arc
seconds (USGS tile 30S030E_20101117_gmted_mea075.tif, from
edcintl.cr.usgs.gov/downloads/sciweb1/shared/topo/downloads/GMTED/Global_tiles_GMTED/075darcsec/mea/E030/),
cut to Mozambique's bounding box and masked to its admin 0 polygon
(moz_admn_ad0_py_s1_INE_pp.shp) with GDAL, no resampling: outside the
country is nodata, as in Venezuela's. WGS 1984, Int16, LZW, 12.6 MB,
-5 to 2,394 m. The copy tool doesn't list it, so it is never overwritten
or removed. (Venezuela's own DEM has 6.25 arc second cells, so it was
resampled from GMTED's 7.5 at some point.)
2026-npl-001/GIS/2_Active_Data/232_tran/npl_tran_rds_ln_s0_naturalearth_pp.shp
is not in the live project, whose only road lines are a 395 MB OSM file.
It is made like Venezuela's Natural Earth roads: Natural Earth 10 m roads
(ne_10m_roads, version 5.0.0, from
naciscdn.org/naturalearth/10m/cultural/ne_10m_roads.zip), cut to Nepal's
admin 0 polygon (npl_admn_ad0_py_s1_ocha_pp.shp) with GDAL, keeping
Natural Earth's fields. 31 roads, type "Road" (9) or "Unknown" (22): no
"Major Highway", so both road styles draw them all as secondary roads.
Next to it, npl_tran_rds_ln_s0_osm_pp_mainroads.shp (25 MB) is the live
OSM roads file (npl_tran_rds_ln_s0_osm_pp_roads.shp, 395 MB, 580,197
roads) with only its main roads kept: fclass motorway, trunk, primary,
secondary or tertiary, and their links (17,967 roads, all fields). Those are
the classes the standard CMF's tran_rds_ln_osm_prim-sec and
tran_rds_ln_osm_web_prim-sec styles draw. The script doesn't use OSM
roads yet (its road layers match Natural Earth files only).
The copy tool lists neither file, so they are never overwritten or removed.
In every example, 312_Layer_files/3121_arcpro is a copy of the standard
CMF's (default-crash-move-folder/20YYiso3nn), not of the live project's:
future responses start with the standard CMF's layer files, and its names
were made consistent in Nov 2026 (see "Layer file names"). The copy tool
makes the folder the same as the standard CMF's on every run (adding,
replacing and removing files), except Venezuela's two edited files below.
The live projects' own layer files are no longer used: live Venezuela's
still has e.g. tran_air_pt_ourairports_lge-med.lyrx, so the script no
longer runs there as it is.
These are edited in the Venezuela test copy (and so in the Google Drive zip)
and are never overwritten by the copy tool (LOCAL_CHANGES in it):
| File | Change |
|---|---|
event_description.json |
language_iso2 is es (the country language; the live file says en); disclaimer and donor credit translated to English; Spanish versions added (default_disclaimer_text_ES, default_donor_credits_ES, donors_ES); donors set to ["the United States"] (the live file's list is empty, but its maps show the US flag). |
312_Layer_files/3121_arcpro/admn_adx_py_all_reference.lyrx, admn_adx_py_all_location.lyrx |
The standard CMF's files, with Bird Island and Navassa Island not labelled. |
32_Map_Templates/321_arcpro/*.pagx, arcpro_templates_automation.aprx |
From the standard CMF (not live): its 2025 layouts, with room made for the disclaimer and QR caption, and an empty base project. The base project is also tidied with tools/clean_template.py: old tool and notebook history and broken connections (to the project the template was made in) removed; default geodatabase and toolbox set to GIS/6_Pro_Default_Files. The script also tidies every project it makes, whatever the template. |
In the Nepal test copy (Nov 2026), to simulate a better data scramble:
| File | Change |
|---|---|
211_elev/npl_elev_dem_ras_s0_srtm_pp_elevation90m.tif, npl_elev_hsh_ras_s0_srtm_pp_hillshade90m.tif |
Masked to Nepal's admin 0 polygon (npl_admn_ad0_py_s1_ocha_pp.shp) with GDAL, same grid, no resampling. The live files are already cut to Nepal but fill the rest of their rectangle with 0 and set no nodata, so the map drew a green 0 m rectangle around the country. Now 0 and everything outside the polygon is nodata (DEM -32768, 57 to 8,557 m: Everest's top cells fall just outside OCHA's polygon; hillshade 0), LZW. The DEM's .aux.xml (statistics of the old file) is removed from the test copy and its file list. |
202_admn/npl_admn_ad0_ln_s1_ocha_pp.shp to npl_admn_ad3_ln_s1_ocha_pp.shp (new) |
Live has all boundary lines in one file, npl_admn_ad_ln_s1_ocha_pp.shp (2,315 lines, field adm_level 0 to 3), which no layer pattern matches. Split by adm_level with GDAL into one file per level (151, 183, 603 and 1,378 lines), all fields kept. Each level holds only its own lines (admin 1 doesn't repeat the country border), as in Venezuela's files. The combined file stays, as in live. Not in the copy tool's file list, so never overwritten or removed. |
Bird and Navassa Island labels. The labels are hidden with
ROMNAM NOT IN ('Bird Island', 'Navassa Island'). The ISO code alone can't
be used: Bird Island's code is VEN, which would also hide the "Venezuela"
label, and Navassa's is UMI, which it shares with other US islands.
The script finds each layer's style by its name in the config (e.g.
tran_rrd_ln_all → tran_rrd_ln_all.lyrx in
31_Resources/312_Layer_files/3121_arcpro), so the standard CMF must have
a layer file for each. Agreed in Nov 2026 (from the Venezuela response), and
done in the standard CMF:
- The theme part is the three-letter code from
03_theme.csv:por(notport),lak(notlake),shk,lnd. location, notinset, for the Location map's layers.- Airports:
lrg-med(notlge-med). - Separate files where sources have different attributes used in the
styling: roads (
tran_rds_ln_natearth_prim-sec,tran_rds_ln_osm_prim-sec) and lakes (phys_lak_py_natearth, one symbol;phys_lak_py_osm, which only draws features whosefclassis water, river or reservoir). The script uses the Natural Earth ones, so its patterns only match Natural Earth data, as for rivers. - Railways have no styling attributes, so one file:
tran_rrd_ln_all(the old OSM railway symbol, now drawn for every feature, not only those withfclassrail or narrow_gauge).
The feather fades everything outside the affected country. The script makes
its data fresh, in the same way as tool "2.1 Create Feather" in MapAction's
Data Scramble toolbox (GIS/6_Pro_Default_Files/MapAction_Data_Scramble_2023.atbx
in the standard CMF): it erases the admin 0 polygon used for the maps from the
global background polygon
(207_carto/wrl_carto_ext_py_s0_esri_pp_globalBackground.shp). The result is
saved in 2_Active_Data/207_carto with the toolbox's file name, e.g.
ven_carto_fea_py_mapaction_pp_faded_country.shp. It is reused if it is newer
than both inputs; in testing mode it is always remade.
The script also sets the feather's symbol itself, ignoring the layer file's.
The standard carto_fea_py_all.lyrx was made for older feather data (rings
around the country, each with an xpar transparency field), so it draws the
toolbox's single polygon as solid white. The script instead uses the symbol
based on the Venezuela response's maps: 21 stacked white fills at 15%
opacity, each pulled 10 points further from the border, so the fade builds up
gradually and is almost white about 70 mm from the border (the Venezuela maps
used 5-point steps, half as wide). The numbers are FEATHER_STEPS,
FEATHER_STEP_PT and FEATHER_STEP_OPACITY in the config.
The layouts have a donor logo placeholder (a picture of
315_Logos/Placeholder/Placeholder_donor_logo.JPG, reading "Replace with
donor logo"). The script replaces it with the logo of each donor in the
donors list of event_description.json, side by side, as large as fits
in the placeholder's box and aligned as the placeholder was (bottom right on
landscape_a3). Placeholders off the page are left alone.
Each donor's logo is found in GIS/3_Mapping/31_Resources/315_Logos:
the file or folder given in DONOR_LOGOS in the config, or else the folder
with the donor's name (ignoring case, punctuation and a leading "the"). From
a folder, the first .png is used, else .jpg and so on, RGB rather than
CMYK. If there are no donors, the placeholder is removed; if a donor's logo
can't be found, the placeholder stays on the map as a reminder and the
script says so before building.
The data sources text lists the source part of each dataset's file name
(e.g. ourairports), written out from the project's own list,
2_Active_Data/200_data_name_lookup/06_source.csv (e.g. "Our Airports").
Sources missing there come from SOURCE_NAMES in the config (e.g. ine →
INE); sources in neither are shown as they are, with a warning.
The script is in the project's GIS/7_Python/map_automation/
folder, with its settings file. ArcGIS Pro must be installed and signed in.
The easy way: double-click run_map_automation.bat in that folder (in
File Explorer). A window opens; answer the questions there, pressing Enter
after each one. The window stays open at the end so the results can be
read. The .bat finds ArcGIS Pro's Python itself (from the registry, or
C:\Program Files\ArcGIS\Pro) and says so if ArcGIS Pro isn't installed.
From a Command Prompt: go to that folder and run the script with ArcGIS
Pro's Python (propy.bat), e.g.:
cd /d C:\...\2026-ven-001\GIS\7_Python\map_automation
"C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat" map_automation_pro.py
(In PowerShell, put & before the quoted propy.bat path.) The script
finds the project it sits in. To build maps for another project, add
--project <any folder inside that project>.
It prints what it is doing as it goes, including a line before each stage of each map, and lists the project and JPEG of each map at the end. ArcGIS Pro can stay open, but close any of the script's earlier outputs in it.
Don't run it inside ArcGIS Pro (its Python window or a notebook). There, arcpy hangs while it edits the new projects (it stopped at removing the template's maps, with no error), so the script must run in a separate Python, as above. This is also why it isn't a notebook any more.
For testing, pipe in the answers to its questions (PowerShell):
Set-Location cmf_examples\2026-ven-001\GIS\7_Python\map_automation
"2", "19N", "0", "2" | & "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat" map_automation_pro.py --test-datasets
--test-datasets (testing only) answers the "which dataset?" questions
from tools/test_data/preferred_datasets.json in this repository, which
holds a choice for each example project. Leave it out to be asked, as in a
real response (PREFERRED_DATASETS in the config is empty). It only works
in a project with a TEST_ENVIRONMENT.txt file.
It asks three questions:
- Main map projection: ArcGIS Pro default (latitude/longitude, WGS
1984), a UTM zone (e.g.
19N; the project's Data Scramble Sheet lists it), or an EPSG/ESRI code. - Location map projection: the same options, plus
0for "same as the Main map". - Layout: one of the
.pagxfiles inGIS/3_Mapping/32_Map_Templates/321_arcpro: the standard CMF's 2025 layouts,landscape_orportrait_anda0,a3ortabloid. For initial maps, choose a layout matching the country's shape; the script says how wide the country is compared with its height. The layouts' maps still hold layers from the project they were made in; the script removes them.
For the Venezuela test: UTM 19N, 0 (same as Main map), 2
(landscape_a3).
Two languages are involved:
- Map language: the language of the map's audience, set per map
(
languagein itsMapSpecin the config, e.g."ES"). If it is not set, the map is in English. - Country language:
language_iso2inevent_description.json, the main language of the affected country.
The map language sets:
- Marginalia. Title and summary come from the
MapSpec, so write them in the map language. Disclaimer, donor credit and donors (for the logos) come fromevent_description.json:default_disclaimer_text,default_donor_creditsanddonorsfor English, and the same names ending_ES,_FR... for other languages. If a map needs one that is missing, the script stops and lists the fields to add. Legend labels, the "Elevation (m)" heading, "Produced by" and the layout's own fixed text on the page ("Data Sources", "Map created by") are translated withTRANSLATIONSin the config; anything without a translation stays English, with a warning before the maps are built. Admin boundaries in the legend are named fromADMIN_LEVEL_NAMES(per country, by language): English maps show "English (country language)", e.g. "State (Estado)"; other maps show the country language's name, e.g. "Estado". Data source names: English from the project's06_source.csv(elseSOURCE_NAMES), other languages fromSOURCE_NAMES(e.g.unis "UN" in English, "ONU" in Spanish). The off-pagelanguageelement gets the language's own name (English,Español, fromLANGUAGE_NAMES). - Admin names (country name and labels): the
ADM0_xx,ADM1_xx,ADM2_xxfields in the map language where the data has them, else in the country language, elseADM0_NAME... (newer COD data, e.g. Mozambique's: names in the local language); with none of these, the script stops. So an English map of Venezuela has the country name fromADM0_ENbut admin 1 labels fromADM1_ES(there is noADM1_EN), and an English map of Mozambique usesADM0_NAMEandADM1_NAME(Portuguese).
Not translated: map name, the off-page metadata (product type, status, themes, scale, date, time zone...), and labels of non-admin layers (towns, neighbouring countries: these come from their own data fields).
The test runs MA801 in English and MA901 in Spanish.
- Scales: each map frame is zoomed to the country, then its scale is multiplied (Location map: x2, to show the region) and rounded up, so the country is never clipped. The rounding step grows with the scale: about a twentieth of it, from the series 1, 2, 5, 10, 20, 50... (e.g. between 1:100,000 and 1:1,000,000 the step is 5,000, 10,000, 20,000 or 50,000). A map is zoomed out by under 8%. The fitted and rounded scales are printed.
- Scale bar: one division of the smallest "nice" number of km (1-9,
10-90, 100-900...) that makes it at least 5% of the page's long side (the width of a
landscape page, so portrait gets the same bar). It keeps the
layout's alignment; its text is twice the layout's size and reads
km. - Legend: one column on landscape layouts, two on portrait. Layer names
and headings are hidden (layer names are config codes), except for layers
given a heading in
LEGEND_HEADINGS, e.g. "Elevation (m)" for the DEM.
Outputs appear in:
GIS/3_Mapping/33_Map_Projects/<map code>/(the.aprxprojects)GIS/3_Mapping/34_Map_Products_MapAction/<map code>/<version>/(the JPEGs)
Only the Python standard library and what comes with ArcGIS Pro's Python (arcpy, and Pillow to read logo sizes) are used, so
nothing needs installing.
Everything you are likely to change is in map_automation_pro_config.py:
| Setting | What it does |
|---|---|
TEST_MODE |
True deletes all previous outputs of the script before each run. Only works where TEST_ENVIRONMENT.txt exists. Set to False for real use. |
MAPS_TO_RUN |
Map codes to build, e.g. ["MA901"]. None builds all. |
MAIN_MAP_PROJECTION, LOCATION_MAP_PROJECTION, LAYOUT |
Answers to the start-up questions. None asks; e.g. "UTM 19N", "SAME", "landscape_a3" skip the question. |
LANGUAGE_NAMES, TRANSLATIONS |
Languages maps can be made in (with each one's own name), and translations of the fixed English text (legend labels, "Data Sources"...). See "Languages". |
ADMIN_LEVEL_NAMES |
What each country calls its admin levels (Venezuela: State / Estado, Municipality / Municipio, Parish / Parroquia), by language, for the admin boundaries in the legend. |
TEMPLATE_FILE |
Base project each map starts from. |
PRO_DEFAULT_FILES_FOLDER, DEFAULT_GEODATABASE, DEFAULT_TOOLBOX |
Default geodatabase and toolbox of each new project (the empty placeholders in GIS/6_Pro_Default_Files). |
FEATHER_LAYER, FEATHER_BACKGROUND |
The feather layer, and the global background polygon its data is made from. |
FEATHER_STEPS, FEATHER_STEP_PT, FEATHER_STEP_OPACITY |
The feather's fade: how many white fills, how far apart (points), and how opaque each is. |
PREFERRED_SUPPLIER, PREFERRED_DATASETS |
Which dataset to use when several match a layer. Anything still unclear is asked. |
COUNTRY_NAME |
Country name on every map. None reads it from the admin 0 data, in the map language. |
SOURCE_NAMES |
How data sources are written on the map, by language. English only where the project's 06_source.csv lacks them (naturalearth → Natural Earth). |
LOGOS_SUBFOLDER, LOGO_PLACEHOLDER_IMAGE, LOGO_GAP_MM, DONOR_LOGOS |
Donor logos: where they are, the placeholder picture they replace, the space between them, and each donor's logo file or folder. |
FRAME_EXTENTS, SCALE_ROUNDING_FRACTION |
The layer each map frame is zoomed to and its scale multiplier; the size of the rounding step. |
SCALE_BAR_NAME, SCALE_BAR_MIN_WIDTH, SCALE_BAR_TEXT_SIZE_FACTOR, SCALE_BAR_UNIT_LABEL |
The scale bar: minimum width (fraction of the page's long side), text size and unit label. |
LEGEND_EXCLUDE, LEGEND_HEADINGS, LEGEND_COLUMNS_LANDSCAPE, LEGEND_COLUMNS_PORTRAIT |
Main map layers left out of the legend; headings shown for some layers; legend columns. |
GROUP_BACKGROUNDS |
Layout groups that share one white background (with its opacity) instead of one per text box. |
FIT_TEXT_BOXES |
Text boxes made taller (upwards) when their text needs more lines; the elements above them in their layout group move up. |
FIT_STRETCH_LAYERS |
Raster layers (the DEM) whose colour stretch and legend labels are fitted to the chosen data; the fitted layer file is saved next to the map's project. |
LAYERS, MAPS |
Every layer that can be used, and the map products made from them (each with its map language). A LayerSpec can hide the affected country (exclude_affected_country), show only it (only_affected_country, a field with the lower-case ISO3 code) or turn labels off (labels=False). A map's layers list is its drawing order, top first; the feather is on top. |
Event details (GLIDE number, time zone, country language, contact email,
disclaimer, donor credit and donors in each map language, JPEG resolution) come from the project's
event_description.json, not from the config.
- MA801 (English) and MA901 (the same map in Spanish) build cleanly from the test data (about 60 seconds each).
- The script has only been run in the test copy so far. A run as a notebook inside ArcGIS Pro (in the live Venezuela project and the test copy) hung while building the first map, which is why it is a script again.
- The feather, default geodatabase and toolbox, project tidying and opening tabs are new; the tabs and tidying are checked with arcpy but not yet confirmed by opening the project in ArcGIS Pro.
- The feather is not yet added to the Location map.
- MA002, MA003 and MA004 are defined but not tested yet.
- Only
landscape_a3(Venezuela, Nepal) andportrait_a3(Mozambique) have been tested since the scale bar, legend column and group background changes; the other layouts have not. - Map items may cover part of the country. The layouts place the legend, Location map and other items in fixed positions, so they can cover part of the Main map (on Mozambique's portrait A3 map, the Location map covers Cabo Delgado). This is accepted: the user moves them in ArcGIS Pro after the script has run.
- Text boxes in
FIT_TEXT_BOXES(thedata_sourceslist) grow upwards when their text needs more lines, moving the elements above them in their layout group up. The space needed is a cautious estimate from a character count, so there may be a small gap below the text; move things in ArcGIS Pro if it matters. - Venezuela's admin 1 and 2 data only has Spanish names (
ADM1_ES), so the English map's admin labels are in Spanish (the country language). - The Spanish translations in
TRANSLATIONSandSOURCE_NAMESwere written by Claude and need checking by a Spanish speaker.
Work by Darren Connaghan, Harry Matchette-Downes, and possibly others in the unpublished ArcMap version.