This was a fun personal project based around my eBird life list. While the project admittedly has an air of data navel-gazing, my goal was to practice implementing a spatial database using PostgreSQL with PostGIS, host it on a server, and develop a functional application that interacts with the database.
I first worked out the database structure and schema using
dbdiagram.io (see image above). I then used R to prepare the data tables
that would make up the database and utilized the RPostgres
and DBI packages to execute SQL commands directly within
the R environment. I made use of the pgAdmin GUI for setting up an
instance on Amazon Web Services RDS, then executed the actual import of
the database backup .sql file via the command line. The process was a
bit of a challenge, but rewarding, as it tested my ability to integrate
various tools, methods, and platforms.
To enrich the database and flesh out the tables with additional
information, I worked with some cool packages in R. Specifically, I used
rebird for accessing eBird data and openmeteo
to pull in weather data. rebird provides some great
functionality, but there is no direct way to access individual eBird
checklist attributes, some of which I needed (e.g, time, outing
duration, total number of species seen) in order to achieve my desired
database schema. To work around this, I created a custom function to
make an API call and return a given checklist’s attributes as a list
object that could be teased apart. Another challenge that required some
creative problem solving was deriving spatial coordinates from
observation locations that weren’t tied to recognized hotspots. I took a
two-pronged approach, first leveraging regular expressions for
extracting coordinates embedded in location names, and then relying on
manual data entry for coordinates not available through programmatic
means. The project is still ongoing, and when time permits I will work
on building out a Shiny application to interact with database.
Colima Warbler (Leiothlypis crissalis) is a migratory songbird whose breeding habitat is limited to parts of the rugged, mountainous terrain of Mexico’s Sierra Madre Occidental and the Chisos Mountains of Big Bend National Park. Range maps for this species tend to significantly overstate its extant distribution within the United States. To get a sense of species’ ‘official’ range, check out the map I created below, based on the distributions recognized by the United States Geological Survey and BirdLife International.
Breeding birds have been shown to inhabit areas dominated by oak, pinyon, juniper, and Arizona cypress, and demonstrate a clear preference for elevations above 1,500 m, with individuals most frequently observed at elevations ≥ 1,800 m. They employ a ground-nesting strategy and prefers steep (≥35°), north-facing slopes, and sites that are shaded from direct sunlight for 70% of daylight hours.
I used these attributes to derive a model of probable species distribution within the US that radically reduces the area of likely occurrence as compared with the official USGS species range polygon. The project primarily involved raster analysis: deriving slope and aspect from digital elevation models, extracting raster cells based on specified attributes and mask polygons, reclassifying cells to standardized values, and overlaying raster layers to calculte the sum of their cells.
While working with the City of Newport News GIS team, I was tasked with developing a tree inventory system that could be used to support the city’s sustainability and resource conservation goals and facilitate more efficient and modernized tree care management. The project involved creating a spatial database in ArcGIS Online to manage tree data, building out a Field Maps application for tree data collection, integrating USDA’s i-Tree Eco workflow for calculating ecosystem benefits, and developing an application using Experience Builder that could be used to explore the city’s trees and interact with the collected data.
In addition to the main ‘Trees’ point layer, I incorporated a functionally related reference table into the ‘City Trees’ feature class. When a user selects a common name in the Field Maps app, the app utilizes Arcade expressions to cross-reference the table for a matching common name. It then automatically populates the fields ‘species’, ‘genus’, ‘functional group’, and ‘native’ within the app based on the retrieved data.
This project gave me the opportunity to leverage Python using Jupyter Notebooks in ArcGIS Pro in order to automate some important data management processes. One notebook assigns unique tree identifiers to each tree. Every new tree entry in the database is automatically assigned a Global ID, but for day-to-day operations and easier reference, this identifier is not practical. Something shorter and more intuitive was needed. So, instead of a 36 character alphanumeric ID, each tree is assigned a unique ID of the form, e.g., ’NNTREE-10`. I created another Notebook to handle the renaming of fields in the data set returned by i-Tree. The process of getting ecosystem services and benefits calculated by i-Tree involves importing your collected field data and sending it off to the i-Tree web application. The data is then processed and returned as a CSV file. Unfortunately, the returned field names are not consistent with database best practices (e.g., they contain spaces and special characters).The script ensures that these field names are renamed in accordance with the established tree database schema.
As of this writing (May 2024), the tree inventory project is still in its nascent stage, and as a result the application I built is not publicly available. But you can see a short video demo of the application below.
A significant part of my time working with the City of Newport News GIS team involved processing, geocoding, mapping, and analyzing five years (2018-2022) worth of gun crime data as part of the city’s Gun Violence Intervention Program.
Given the size and complexity of the data sets received from the Newport News Police Department, a good bit of wrangling was required to prepare them to be mapped and analyzed. Because this project was carried out with the intention of being able to re-run the analysis in the future as new data is receied, I developed a script in R to streamline the data preprocessing tasks. This automation not only facilitated the initial data preparation but also ensured the project’s adaptability and longevity. Once prepared, I utilized ArcGIS Pro for geocoding, mapping, and subsequent analysis.
I employed a variety of analyses and visualization techniques to better understand the spatial patterns underlying gun crime in the city, each of which were used in a presentation to city officials, decision makers and community leaders in the fall of 2023.
Bivariate Choropleth (Population Density vs. Incident Rate): This map combines two key variables—population density and gun crime incident rate—into a single visualization. By doing so, it indicates how the frequency of gun crimes correlates with the concentration of people across different areas.
Hotspots: This visualization identifies geographical areas with significantly higher occurrences of gun crimes by aggregating points into hexagonal bins 1,000 ft. across.
Hot Streets: Similar to the hotspots map but more specific. This map pinpoints street segments with high frequencies of gun crime.
Victim Binning: This map displays the spatial distribution of gun crime victims, with victims aggregated into 1,000 x 1,000 foot cells. It focuses exclusively on individuals directly affected by gun crime incidents, explicitly excluding victim categories such as ‘Business’ and ‘Government’ from the analysis. I employed a threshold to enhance clarity and focus, where only cells containing two or more victims are visualized.
Click on a layout below to see it as a high resolution pdf.
I found the hot streets analysis especially insightful. By combining the derived gun crime point layer with the city’s street centerline layer, I was able to identify street segments with the highest density of gun crime incidents by assigning each point to the nearest feature.
The result? Of nearly 10,000 street segments that comprise Newport News’ road network fully 80% of incidents occurred on just over 9% of those segments. More than a quarter of all incidents took place on fewer than 1% of all segments. This analysis helped to highlight the spatial concentration of gun crime incidents in the city, and to identify areas where the city’s resources might be most effectively deployed

Saltmarsh Sparrow (Ammospiza caudacuta) perched on marsh reed. Photo credit: Mike Kilpatrick
In this project, I carried out an analysis to produce a habitat suitability index (HSI) aimed at identifying potential saltmarsh sparrow winter habitat in southeast Virginia - effectively the southern most extent of their winter range - in areas not already protected under a biodiversity or conservation mandate.
Confronted with the combined effects of sea-level rise and human coastline modification, the saltmarsh sparrow’s continued survival is by no means guaranteed. The North American Bird Conservation Initiative’s 2022 ‘State of the Birds’ report estimates that the species’ population has declined by more than half since 1970. The report anticipates a further 50% decline over the next half century. Similarly, researchers have demonstrated a staggering 9% annual rate of population decline since the mid-1990s. If that trend continues, they predict a collapse of the global population within 50 years, with as few as 500 individuals left by mid-century.
These birds demonstrate a strong affinity for high marsh vegetation. Research on migratory songbirds has demonstrated that occupying inadequate wintering habitat can affect the physical condition of birds during migration, their arrival date on nesting grounds, and their condition at breeding sites. Working to ensure access to high marsh throughout the entirety of the species’ range is therefore critical.
Generating the HSI required integrating vector and raster data from multiple sources, including the U.S. Geological Survey (USGS), eBird (Cornell Lab of Ornithology), the Protected Area Database (PAD), and the National Land Cover Database (NLCD). To read the full project report, including a more detailed discussion of analysis methods, click here.
I created the map below as part of an ArcGIS Story Map. It is here embedded as an ArcGIS Instant App. You can also click here to view in full screen as an ArcGIS Experience.
The map represents observations of Saltmarsh Sparrow during the breeding and non-breeding seasons since 2012. I pulled observation data into R using the eBird API, filtered by year and month, and brought the data into ArcGIS Pro to publish as a feature layer. You can click on the map to view it in full screen