GIS automation
Alberta Land Mapping Automation
I mapped the township surrounding a supplied GPS point south of Carseland, then used ModelBuilder and Python to prepare land and topographic layers for the same area.
- Role
- Cartography, geoprocessing model design and ArcPy scripting
- Project
- Individual SAIT student project, Carseland, Alberta · 2026
Which township contains the point?
The project began with a supplied GPS point and a land trust field-mapping scenario. I used the point to identify Township 21, Range 25, west of the Fourth Meridian. I then combined Alberta Township System boundaries with topographic data from two map sheets in NAD83 UTM Zone 12N.
The finished layout lets a reader trace the point from township to section, quarter-section and legal subdivision, then locate it relative to roads and waterways.

Use the township as the clipping boundary
In ModelBuilder, I connected the GPS table to point creation and spatial selection. The selected township then supplied one clipping boundary for several branches of the model. Roads, contours and other features could be merged across map sheets before being clipped to the same extent.

From source layers to a legal land description
These excerpts follow one path through my ArcPy script, from locating the inputs to querying the finished land dataset. Calls to messages() print ArcPy processing messages.
Find the input shapefiles
I walked the input folders once, collecting each shapefile’s name and full path for the preparation steps.
shapefile_list = []
shapefile_path = []
for root, dirs, files in os.walk(main_folder):
for file in files:
if file.endswith(".shp"):
shapefile_list.append(file)
shapefile_path.append(os.path.join(root, file))Select the township around the GPS point
Once the layers shared a coordinate system, I selected the township containing the GPS point and saved it as Study_Area. The script also reports how many townships the selection returned.
gps_point = os.path.join(staging_gdb, "GSP_Pointe_UTM")
township = os.path.join(staging_gdb, "FC_82I_TWP_UTM")
study_area = os.path.join(ats_dataset, "Study_Area")
arcpy.management.MakeFeatureLayer(township, "Township_Layer")
messages()
arcpy.management.SelectLayerByLocation("Township_Layer","CONTAINS",gps_point)
messages()
arcpy.management.CopyFeatures("Township_Layer", study_area)
messages()
study_count = arcpy.management.GetCount(study_area)
print("\nStudy_Area created.")
print("Number of townships selected:", study_count)Merge the roads across map sheets
The road features came from multiple sheets. I matched the road layers by name and merged them in the staging geodatabase.
roads = arcpy.ListFeatureClasses("*BF_ROAD*")
print("Road Layers Found:", roads)
road_merge = os.path.join(staging_gdb, "Road_Merge")
arcpy.management.Merge(roads, road_merge)
messages()
print("Road layers merged.")Clip the merged roads to the township
I used the saved township boundary to cut the merged roads to the study area and wrote the result to the topographic dataset.
road_clip = os.path.join(nts_dataset, "Road")
arcpy.analysis.Clip(road_merge, study_area, road_clip)
messages()
print("Road clipped.")Read the legal land description
I selected the legal subdivision containing the point, then used a search cursor to read its township, range, meridian and subdivision fields in the order needed for the printed description.
fc = arcpy.management.SelectLayerByLocation(
"LSD",
"CONTAINS",
"GPS_Point"
)
with arcpy.da.SearchCursor(
fc,
['LSD', 'QTR', 'SEC', 'TWP', 'RGE', 'MER']) as cursor:
for row in cursor:
print(
f"LSD{row[0]} - {row[1]}{row[2]} - "
f"TWP{row[3]} - RGE{row[4]} - W{row[5]}"
)The map and model include hydrology. The script covers powerlines and trails and omits the hydrology branch. For inputs with an unknown coordinate system, it assigns an assumed source reference before projection. Reusing that step requires checking the source metadata.
