L-301 · GIS 301
GIS 301: Surfaces, networks, and curves
How does the ground shape what we build on it?
A surface is a layer with a height everywhere. Once the ground has a z-value, a GIS can slice it into contours, light it, pour water down it, test what a tower can see, route a truck around it, and hand a survey crew the numbers to stake a curve on it. We build each of those from one small synthetic terrain, 0.84 km on a side.
After GIS 201. Some trigonometry helps; every formula is worked for you.
Elevation surfaces in 3D
BIG IDEAA digital elevation model (DEM) is a raster whose only attribute is height: one z-value per cell, and nothing in between.
The terrain in every figure on this page is a DEM of 28 × 28 = 784 cells, each 30 m across, holding elevations from 102 m to 226 m. That is the whole dataset: a grid of numbers. The hills you see are what a renderer makes of those numbers by lifting each cell to its z-value and shading the little facets between them.
Two things follow. First, a DEM has no idea what happens inside a cell; a ${dem.cell} m cell cannot hold a ${fmt(dem.cell / 10, 0)} m ditch. The cell size is the resolution of everything you compute from it. Second, the ground is never as dramatic as a 3D view suggests, because almost every terrain picture is vertically exaggerated. Set the slider to 1× and the real relief is modest; surveyors call that a sobering view.
There is a second way to store a surface. A TIN (triangulated irregular network) keeps measured points where they fall and joins them into triangles, so it can be dense on a steep bank and sparse across a flat field. Rasters are simpler to compute on; TINs honour breaklines such as curb edges and ridge tops. Engineering design surfaces are usually TINs; regional terrain is usually a raster.
Drag to orbit, slide the exaggeration, and tap the surface to read the number stored at the nearest cell.
- 102 m
- 164 m
- 226 m
Contours: slicing the terrain
BIG IDEAA contour is where a horizontal plane cuts the surface. Equal height, one line; and the closer the lines, the steeper the ground.
Lift a flat plane up through the terrain and trace where it meets the ground: that is a contour line, a curve of constant elevation. Do it every 10 m and you have a contour map, the oldest way to put a third dimension on paper. Every fifth line is drawn bolder and labelled, the index contour, so a reader can count by 50 instead of by 10.
Spacing is slope. On a 8° hillside with a 10 m interval the lines sit 71 m apart on the ground; on a 25° face they crowd to 21 m. Closed rings are summits (or pits); V shapes point upstream where a line crosses a valley.
Software draws contours with marching squares: it looks at each 2 × 2 block of cells, notes which corners are above the level and which below, and draws the short segment that separates them, placing the ends by linear interpolation. The figure on the right is nothing but those segments.
Watch the plane rise and leave a contour behind it; change the interval and see the map fill in or thin out.
Slope, aspect, and hillshade
BIG IDEASlope is how steep, aspect is which way it faces, and hillshade is how bright a cell would be under a sun you choose. All three come from the same 3 × 3 window.
Lay a 3 × 3 window over a cell and label the neighbours a to i, north row first. Horn's method estimates how fast height changes going east (dz/dx) and north-to-south (dz/dy), giving the middle neighbours double weight. Slope is the steepness of that gradient; aspect is the compass direction it falls toward; and hillshade is the brightness of a surface tilted that way under a sun at a given azimuth and altitude.
The default cartographic sun sits in the north-west at 315° and 45° up, which is physically impossible in the northern hemisphere but makes ridges read as ridges; light from the south makes hills look like craters. Drag the azimuth around and watch the illusion flip.
Slope and aspect are not decoration. Slope drives runoff, erosion, cut-and-fill volumes, and ADA ramp limits; aspect drives snowmelt and solar panels. Both are in degrees or percent, and the percent form (rise ÷ run × 100) is the one on road plans.
Relight the terrain, switch to slope and aspect, then tap a cell to see Horn's formula worked on its nine neighbours.
- Hillshade 40
- 150
- 250
Where the water goes
BIG IDEAWater leaves a cell by its steepest downhill edge. Chain those choices and you get streams; count them and you get watersheds.
The D8 rule gives each cell one of eight exits, the neighbour with the steepest drop (diagonals divided by √2 for their longer distance). ArcGIS stores the exit as a power of two, 1, 2, 4, 8, 16, 32, 64, 128, clockwise from east, so a direction raster is just small integers. A cell with no lower neighbour is a sink; real DEMs are usually "filled" first so every drop can reach an edge.
Flow accumulation counts how many cells drain through each cell. Most cells collect a handful; on this 784-cell terrain the busiest collects 141, and those high counts are where a stream would be. A threshold on that count draws the drainage network without anyone tracing a blue line.
A watershed is every cell whose water passes a chosen pour point. Pick a culvert, trace every upstream path, and the area you get, times the rainfall, is the design flow that culvert must pass.
Tap anywhere to drop water and watch it run downhill cell by cell. Switch views to see every cell's D8 code and the accumulation that reveals the streams.
- pit / edge
- Raindrop path
Line of sight: who can see the tower?
BIG IDEAA line of sight is a straight segment between two eyes; it is blocked wherever the ground rises above it. Height buys visibility.
Put an observer on the ground and a target somewhere else. Sample the ground along the straight line between them and compare each sample with the sight line at that distance: any ground above the line blocks it, and the target is visible only if nothing does. Raise the observer on a tower and the sight line pivots up and clears the ridge.
That is one line. Sweep it around to every cell in the raster and you have a viewshed: the set of places the observer can see. Cell towers, fire lookouts, wind-turbine visual impact, and the sign placement on a curve are all viewsheds. The profile below is the same computation seen from the side.
Two details matter at scale. Over a few kilometres the Earth's curvature and refraction lower distant ground, which real tools correct for. And the target usually has a height too: a sign is seen at its top, a driver's eye is 3.5 ft up, a deer is not.
Drag the observer (blue) and the target (orange) around the map, then raise the observer on a tower.
Networks: the shortest route is not a straight line
BIG IDEAOn a network, distance is measured along the edges, never across the map, and the shortest route is found by growing a frontier outward from the start.
Streets are a graph: intersections are nodes, street segments are edges, and each edge carries a cost (its length, or the minutes it takes). Dijkstra's algorithm keeps a frontier of reached nodes, always settles the closest one next, and relaxes its neighbours. When the destination is settled, the chain of previous nodes is the shortest path. Close a street and the frontier simply flows around it.
Length is the simplest impedance. Real routing uses travel time, which depends on speed limits, turns, one-way streets, and traffic by time of day; the algorithm does not care, it only sums a cost. A service area is the same frontier stopped at a budget: every street reachable within 5 minutes of a fire station.
The straight-line distance is still useful: it is the lower bound. A route much longer than the straight line means the network is bent by a river, a railway, or a missing connection, which is often the finding.
Tap streets to close them and watch the search grow out from the start. Switch the mode to move the start and the end. Only the bridge crosses the river.
Closed streets: 0
Horizontal curves: staking an arc with chords
BIG IDEAA road bends on a circular arc, but a crew lays it out with chords: turn a deflection angle at the PC, pull a chord to the next station, repeat. The stakes follow the chords; the road length is the arc.
Two tangents meet at the PI (point of intersection) with a deflection angle Δ. A circle of radius R fitted between them touches the back tangent at the PC (point of curvature) and the forward tangent at the PT (point of tangency). Everything else follows from R and Δ: the tangent length T, the arc length L, the long chord LC, the middle ordinate M from chord to arc, and the external E from PI to arc.
American practice also names a curve by its degree of curve D. By the arc definition, D is the central angle that subtends a 100 ft arc, so D = 5729.58 / R. By the older chord definition (railroads), D subtends a 100 ft chord, so R = 50 / sin(D/2). For R = 1,000 ft the two give 5.7296° and 5.7320°; close, but not the same curve.
Staking uses the deflection angle method. Set the instrument on the PC and sight the PI. For a stake l feet along the arc the central angle is l / R and the deflection from the tangent is half that. Turn it, have the chainman pull the chord from the previous stake, and set the stake where the tape meets the line of sight. The deflections add up to Δ/2 at the PT, and the chained chords land exactly on the PT; the lab checks both.
Chords are shorter than arcs. On an R = 800 ft curve a 100 ft station arc has a 99.935 ft chord, 0.8 in short; at 50 ft stations the shortfall is 0.10 in and at 25 ft it is 0.012 in. That is why sharp curves are staked at closer stations, and why "100 ft along the road" and "100 ft on the tape" are two different numbers. It is also where our name comes from.
Set R and Δ, pick the station interval, and watch the surveyor turn each deflection while the chainman pulls each chord.
| Station | Arc from PC (ft) | Deflection | Chord (ft) |
|---|---|---|---|
| PC46+53.59 | 0.00 | 0°00'00" | — |
| 47+00.00 | 46.41 | 2°12'57" | 46.399 |
| 47+50.00 | 96.41 | 4°36'12" | 49.986 |
| 48+00.00 | 146.41 | 6°59'26" | 49.986 |
| 48+50.00 | 196.41 | 9°22'40" | 49.986 |
| 49+00.00 | 246.41 | 11°45'55" | 49.986 |
| 49+50.00 | 296.41 | 14°09'09" | 49.986 |
| 50+00.00 | 346.41 | 16°32'24" | 49.986 |
| 50+50.00 | 396.41 | 18°55'38" | 49.986 |
| 51+00.00 | 446.41 | 21°18'52" | 49.986 |
| 51+50.00 | 496.41 | 23°42'07" | 49.986 |
| 52+00.00 | 546.41 | 26°05'21" | 49.986 |
| 52+50.00 | 596.41 | 28°28'35" | 49.986 |
| PT52+81.91 | 628.32 | 30°00'00" | 31.905 |
| Station | Arc (ft) | Chord (ft) | Short by |
|---|---|---|---|
| 100 ft | 100.000 | 99.884 | 1.388 in |
| 50 ft | 50.000 | 49.986 | 0.174 in |
| 25 ft | 25.000 | 24.998 | 0.022 in |
Stakes are set by chords; the road is measured along the arc. The deflection to the PT is always Δ/2, and the chained chords close on the PT to within rounding, which is how a crew checks its own work. PI station 50+00.00.
Vertical curves: hills you can see over
BIG IDEAGrades change on a parabola, not a circle, because a parabola's grade changes at a constant rate. Its length is set by how far a driver must be able to see.
In profile a road is a chain of straight grades (g, in percent) joined by vertical curves. The curve is an equal-tangent parabola centred on the PVI (point of vertical intersection), running from the BVC to the EVC. Its only shape parameter is its length L, because the parabola's rate of grade change, (g₂ − g₁) / L, is constant along it. A crest has g₂ < g₁; a sag has g₂ > g₁.
Two numbers every designer quotes: A = |g₂ − g₁|, the algebraic difference in percent, and K = L / A, the feet of curve per percent of grade change. Bigger K means a flatter, longer curve. The high or low point sits x = −g₁·L / (g₂ − g₁) past the BVC, which is where the drainage inlet goes on a sag.
The length is governed by stopping sight distance. AASHTO's crest formula, with a driver's eye 3.5 ft above the road and an object 2.0 ft high, is L = A·S² / 2158 when S < L. A longer S (a faster road) needs a longer curve; a bigger A needs one too. Sag curves are governed by headlight reach at night instead, with a different formula.
Set the two grades and the length. Watch the car, the high or low point, and whether the driver can see a 2 ft object in time to stop at the design speed.
The driver sees the object in time: the curve meets the AASHTO crest sight-distance requirement at this speed.
Too short: the crest hides the object until the driver is inside the stopping distance. Lengthen the curve or flatten the grades.
| Station | Elevation (ft) | Grade |
|---|---|---|
| 47+00.00 | 491.00 | 3.00 % |
| 48+00.00 | 493.54 | 2.08 % |
| 49+00.00 | 495.17 | 1.17 % |
| 50+00.00 | 495.88 | 0.25 % |
| 51+00.00 | 495.67 | -0.67 % |
| 52+00.00 | 494.54 | -1.58 % |
| 53+00.00 | 492.50 | -2.50 % |
Engineering GIS in ArcGIS
BIG IDEAEvery lesson on this page is a tool, a layer type, or an operator in ArcGIS. Knowing the plain idea is what lets you pick the right one.
The map below is the course in ArcGIS vocabulary. Surfaces live in scenes and elevation layers; the raster analysis is Spatial Analyst; sight lines are 3D Analyst; routing is Network Analyst; curve geometry is COGO in ArcGIS Pro; and in the browser, the Maps SDK for JavaScript 5.x exposes the same ideas as web components and geometry operators.
Two habits carry over from the labs. First, check the units and the cell size before you trust a slope or a volume. Second, remember which numbers are chords and which are arcs: a densified line measures short, and a long chord is not a road length.
Scenes and elevation layers
Terrain as the ground of a 3D scene; any raster of heights, or a TIN, can be that ground.
- ARCGIS
- LESSON
- arcgis-scene
- Terrain in 3D
- Elevation layer
- The DEM
- TIN / Terrain dataset
- TIN vs raster
Spatial Analyst: surface tools
The raster toolbox for everything derived from a DEM.
- ARCGIS
- LESSON
- Contour
- Contours
- Slope / Aspect
- Steepness, facing
- Hillshade
- Shaded relief
Spatial Analyst: hydrology
From a filled DEM to streams and drainage areas.
- ARCGIS
- LESSON
- Fill, Flow Direction
- D8 codes
- Flow Accumulation
- Streams
- Watershed
- Drainage area
3D Analyst: visibility
Lines and viewsheds over the surface, with observer and target offsets.
- ARCGIS
- LESSON
- Line Of Sight
- One sight line
- Viewshed 2
- Everything visible
- Interpolate Shape
- Drape and profile
Network Analyst
Routing on a network dataset with impedance and barriers.
- ARCGIS
- LESSON
- Route
- Dijkstra
- Service Area
- Frontier at a budget
- Barriers
- Closed streets
COGO and curves in ArcGIS Pro
Curve parameters as attributes; true arcs in the geometry.
- ARCGIS
- LESSON
- COGO: Radius, Arc, Chord, Delta
- Horizontal curve
- Traverse tool
- PC, PI, PT by station
- Routes and M-values
- Stations, profiles
Maps SDK for JavaScript 5.x
Web components and geometry operators in the browser.
- ARCGIS
- LESSON
- <arcgis-scene>
- 3D terrain
- geodeticLengthOperator
- True length (arc)
- densifyOperator
- Arc to chords