Colorado High Park Fire Map
There haven’t been any new blog posts recently, because a small team including myself has been volunteering most of our time to the Colorado High Park Fire interactive map. The fire was close to home, literally.
The map is updated as continuously as we can with the latest evacuation information (both issues and lifts), shelter locations and status, and the latest infrared layers–which tend to be flown daily. I’ll write a longer post about the making of the map and some lessons learned once things settle down. In the meantime, it is time to catch up on existing client work and…sleep
Calculating Variable Width Buffers on a Stream Segment Based on Elevation
GOAL: variable width buffer based on elevation
RESULT: What we’ve got is mostly correct, but with the following issue.
METHODS
In the example below, the stream line is shown in blue and some retention ponds are visible in the aerial photo near that stream:

Next, we take that stream segment and make it into a grid with the same extent as our elevation grid. It looks like this, where each cell has a slightly different elevation value (streams generally go downhill!):

Then we create a Euclidean allocation grid from those stream elevations. It just assigns the elevation of the nearest source stream pixel to all of the other cells. For example, the yellow area is all assigned pixel values of 148817 (meters X 100, since I have also multiplied the elevation grid by 100 to make it into an integer). That stream pixel value that the yellow is emanating out from has a value of 148817.

The next step is to subtract the Euclidean grid from the true elevation grid so that, for each pixel, we determine how much higher that pixel is than the elevation of the closest stream pixel. Ideally, this would produce a variable width buffer once you set a threshold for how high you want to go. For example, if I set the threshold at 1/2′ (which is 15 units in my data, remember it is meters and multiplied by 100), then the resulting “buffer” looks like this, in green:

The area shaded in green is a model of where the locations around the stream are within a half-foot elevation rise of the stream. Areas that are not in green are higher than half a foot of the stream. Note that I’ve left out some of the details which involve subtracting the Euc grid from the elevation grid, then testing (with a con statement in ArcMap in this case) whether or not the result is above 15 or lower than 15, where it is lower than 15, we assign the pixel a 1 and where it is above 15 we assign a NoData value.
THE ISSUE
The model works pretty well in many areas. As can be expected, it looks even better when we use less fine increments. So if we calculate the 7′ elevation rise, for example, the resulting buffer does not have a lot of strange “jogs” out from the stream line. I’ve chosen this particular example location to illustrate the problem that these retention ponds make very clear. One would expect that the entire retention pond, which has a completely even elevation surface, would be in the buffer if part of it is. However, in this case, the anomaly lies with the Euclidean distance raster. Since it is allocating the closest stream elevation to each pixel, if a stream changes in elevation enough from one neighboring pixel to another to cause the subtraction of the grids to cause one part of the pond to be “in” the buffer and one “out” of the buffer, then this will happen.
STEP BY STEP EXAMPLE
In this case, the pink part of the Euclidean distance calculation, in the upper left quadrant, comes from a source pixel having elevation equal to 148,987.
The purple area of the Euclidean grid just below that pink area has an elevation value equal to 148,801.
The retention pond has an elevation of 148,990 throughout its area (well, at least until you get to the slight rise at its edges).
For the pink part then, 148,990 – 148,987 = 3. Clearly, 3 is within out threshold of half-foot (which is 15 units)
For the purple part, 148,990 – 148,801 = 189. Clearly, 189 is not in our half-foot threshold. Thus, it doesn’t show up, even though the retention pond has an even elevation throughout!
At this stage in the analysis we must quantify the effect of this anomaly on the overall model’s accuracy.
(I noted at the end of How To Create an Inside Buffer Based on Elevation, that a cost distance raster could be used to do what I describe above. However, cost distance works only for local areas where the stream elevation remains constant–in this case, the stream elevations change from mountain elevations on down to plains elevations)
Cartography: Art or Science?
My first book, GIS Cartography: A Guide to Effective Map Design, lays out the methods for creating great maps in terms of creativity, color, typefaces, layout, and data-specific recommendations (geology, political boundaries, elevation, to name a few). It has received a lot of praise. There’s also been a few naysayers out there who are mostly hung-up on its practicality and who would rather see cartography highly systematized.
There are always a few people at the very ends of the spectrum: those who feel cartography is primarily an art and those who feel it is a science. Those on the art-side think that teaching cartography or receiving degrees in it is ridiculous, let alone PhDs. Those on the science side would rather that nobody practice cartography without a thorough understanding (read: traditional learning) and application of the rules and theory.
The majority of map makers today are in-between these two camps both in their allegiance and their practices. Cartographers really need to remain open-minded about both the art and the science sides of cartography. To be receptive of the art-side is to accept that the best innovations spring from unforeseen places. To learn the science is to make life easier for both yourself and your map readers by applying common standards.
The book makes this distinction, encouraging the blending of both camps into your professional life for superior outputs.
Recent Praise for GIS Cartography: A Guide to Effective Map Design
Authors love to get feedback on their work. Here, I reprint a few from the other day.
Did you know it took 9 months, 20 hours per week, for a total of 720 hours to write GIS Cartography: A Guide to Effective Map Design? And more than that, the concept was simmering for many years prior, at the beginning of my GIS analyst career, when I realized there was an extreme dearth of accessible cartographic design guides available.
@kbrennangisp That’s one of the best cartography books available. Very practical.Great choice! @PetersonGIS
— Timothy Hales (@GISpathway) June 5, 2012
@kbrennangisp It’s a great book, Keri! I have it and love it. @PetersonGIS
— Amanda Taub (@amandahstaub) June 5, 2012
Kindergarten Lessons for Cartography
Posted by Gretchen in Inspiration on May 21, 2012
Inspired by Robert Fulghum’s All I Really Needed to Know I Learned in Kindergarten:
- Repetition is key to learning.
- Don’t be afraid to make a mess. But clean it up at some point.
- No throwing your map, whether it is finished or not.
- If you make up a new way to map or create data, share it.
- You can build on an idea that’s not yours if you modify enough that it becomes yours.
- Take a nap if your first attempts fail. A well-rested mind may be just the ticket.
- If you are still stuck, ask a pal for help.
- Learn from others sometimes, make up your own solutions other times.
- Don’t let the loud-mouths/critics get you down.
- Don’t put things where they don’t go: the spatial accuracy police is omnipotent.
- When you are finally finished and satisfied with the results, go ahead and pat yourself on the back.
Global Patterns, Local Exceptions
Yesterday a graduate student asked about my farmers’ market analysis, because she is TA-ing a university course on data collection methods and research. Her questions reminded me to alert her to the fact that data patterns are not necessarily constant across scales. For example, farmers’ market correlations may be seen in a global or national dataset but may not be prevalent at the local city level. Conversely, patterns seen at the local city level may not be seen in the national or global map.
Furthermore, focusing on local exceptions instead of global or national regularities, may be more meaningful, especially if the data are a high enough resolution to provide adequate insight. While I’m not sure if the farmers’ market dataset from the USDA will show patterns at a local level, I’m sure that it is a good thing to try. This approach also allows a more intricate data quality assurance, because with fewer datapoints (less than 20 per city), they can easily be verified and added to as needed if one is looking at just a single city.
This discussion reminds all of us analysts that “it might be incorrect to assume that the results obtained from the whole data set represent the situation in all parts of the study area.”* I’d be happy to hear your thoughts on this.
*See Quantitative Geography by A. Stewart Fotheringham, Chris Brunsdon, and Martin Charlton for further reading (p11 especially).
Recent Comments