1984 historical land use map from Kern County
This repository contains scripts to digitize hand-drawn, georeferenced historical land use maps from Kern County, California. The maps are from the California Department of Water Resources (DWR). The ultimate goal is to identify lands that were once used for agriculture but have since been retired, and analyze how those areas may have revegetated over time. The digitization process involves several steps:
- Georeferencing: Historical maps from 1958, 1969, 1977, and 1984 are georeferenced using Quad-G+ to align them with real-world coordinates
- Digitization: The
polygon_digitization.ipynbnotebook processes the georeferenced maps to create polygons for each field and outputs each quad into a shapefile - Processing: The
plotting.ipynbnotebook combines individual quads into a single shapefile for analysis and visualization - Cleaning: The
clean_up_testing/folder contains initial explorations of polygon cleaning methods to remove noise and artifacts from digitized field boundaries
The excel_map_info folder contains Excel sheets with coordinate and metadata information for each map, which is used during both georeferencing and digitization to ensure spatial accuracy.
This repository uses hand-drawn land use maps from the California Department of Water Resources (DWR) for the years 1958, 1969, 1977, and 1984. More information about these mapping efforts can be found in this ArcGIS StoryMap.
The historical maps were scanned and georeferenced outside of this repository using Quad-G+. Once georeferenced, the maps are digitized in Python and the output is used for visual inspection and future analysis. Coordinate information for each map quad is stored in Excel files within the excel_map_info folder.
historic_lulc_ag_lab/
├── polygon_digitization.ipynb # Main digitizing workflow
├── plotting.ipynb # Plotting
├── excel_map_info/ # Coordinate and map metadata (excel files)
| ├── quad_maps_1958.xlsx
| ├── quad_maps_1969.xlsx
| ├── quad_maps_1977.xlsx
| └── quad_maps_1984.xlsx
├── clean_up_testing/ # Testing different methods for cleaning field polygons
| ├── comparison_test.ipynb # Comparison between digitized maps and 1990 maps
| ├── line_cleaning.ipynb # Filter out diagonal lines
├── .gitignore # Files/folders excluded from Git
└── README.md
Before using this repository, the original hand-drawn maps must be georeferenced using Quad-G+. Both the application and detailed documentation can be found at this Box folder.
To use Quad-G+, you need CSV files containing information about each individual quad. These CSV files are located in the excel_map_info folder of this repository. Below is an example of the required file structure:
Use the following settings under the Preferences tab:
Customize the Output Setup tab to your desired file locations. The settings used for this project are shown below:
- Set GCP Text Info (bottom right) to CSV
- Mode can be set to either automatic or manual
- For this project, automatic mode was used first, with manual troubleshooting as needed
- Upload the CSV file: File > Open Batch File
- Start georeferencing by clicking:
- "Run Batch" (automatic mode)
- "Find Corners" (manual mode)
- Output GeoTIFF files will be saved to the folder specified in Output Setup
- Ensure historical maps are georeferenced using Quad-G+ (see above)
- Run
polygon_digitization.ipynbto digitize the georeferenced maps - Use
plotting.ipynbto visualize and combine individual quad shapefiles into a single shapefile - Reference Excel files in excel_map_info/ for coordinate and metadata information on maps
The digitized field polygons contain noise and artifacts from the original hand-drawn maps that need to be filtered out. The clean_up_testing/ folder contains preliminary explorations of different cleaning methods:
- Compares digitized historical maps against an already digitized 1990 reference map
- Identifies matching and non-matching line segments between datasets
- Status: Preliminary exploration - requires further development
- Filters out diagonal lines that are likely map artifacts rather than field boundaries
- Status: Preliminary exploration - requires further development
Both cleaning methods are in early stages and require significant improvement. Other cleaning methods should also be explored.
Thank you to Dr. Ashley Larsen for bringing me onto this project.