| Maptitude for Redistricting | |
| Product Info | |
| • | Overview |
| • | State Edition |
| • | City/County Edition |
| • | Custom Reports |
| • | Other Products and Services |
| • | Our Clients |
|
|
|
| Support & Training | |
| • | Download Base Maps |
| • | Training |
| Tech Corner | |
|
|
|
Many of our current and prospective clients have asked if it is possible
to automate the creation and printing of maps. They would like to print
a map for every district in each plan they create.
The solution requires a copy of the Maptitude Geographic Information
System Development Kit (GISDK™) which costs $395. The GISDK lets you
create add-ins to Maptitude for Redistricting that can be used to
automate repetitive tasks, customize the interface, and add new
features.
The following GISDK script creates a map for each district in a plan,
and prints the map.
Macro "Display and Print Maps of All Districts in a Plan"
// Get the name of the current map
curr_map = GetMap()
// Get the name of the working layer in the map
curr_layer = GetLayer()
// Start a loop over each district
dist_id = GetFirstRecord(curr_layer + "|",
{{"ID","Ascending"}})
while dist_id <> null do
// Find out the geographic area covered by the district
dist_scope = GetRecordScope(dist_id)
// Make sure the map covers the correct area
SetMapScope(curr_map, dist_scope)
// Redraw the map on the screen
RedrawMap()
// Print the map
PrintMap()
// Find the next district. When finished, dist_id will be set to null
dist_id = GetNextRecord(curr_layer + "|", dist_id,
{{"ID","Ascending"}})
end
endMacro