Skip to content

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.

L-301 · DEM 28 × 28 · 30 m cellsz × 1.9
301·01

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.

158166166156169175179209193159171181185224204154156160165179167153176172150145117133175177154135108105139142Raster: one z per cellTIN: points and triangles
The same hill two ways. A raster stores a number per square; a TIN stores points and the triangles between them, denser where the ground is steeper.
TRY ITTurn the terrain and read a cell

Drag to orbit, slide the exaggeration, and tap the surface to read the number stored at the nearest cell.

yaw 40° · pitch 40° · z × 2tap the surface
Cell (row, col)
r9 c8
z-value
226.1m
Height within range
100%
  • 102 m
  • 164 m
  • 226 m
301·02

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.

TRY ITSlice the hill

Watch the plane rise and leave a contour behind it; change the interval and see the map fill in or thin out.

z = 102 minterval 10 m
150200300 mN
Contours
12
Index every
50m
Spacing at 8°
71m
Spacing at 25°
21m
301·03

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.

TRY ITMove the sun, pick a cell

Relight the terrain, switch to slope and aspect, then tap a cell to see Horn's formula worked on its nine neighbours.

300 mN
  • Hillshade 40
  • 150
  • 250
Slope
23.5°
Aspect
75° E
Hillshade
129/255
a209.0
b197.6
c186.1
d214.7
e202.4
f188.3
g216.0
h205.0
i190.7
Horn's method on this cell
dz/dx = ((c + 2f + i) − (a + 2d + g)) / (8·30)
= ((186.1 + 2·188.3 + 190.7) − (209.0 + 2·214.7 + 216.0)) / 240
= -0.421
dz/dy = ((g + 2h + i) − (a + 2b + c)) / (8·30)
= ((216.0 + 2·205.0 + 190.7) − (209.0 + 2·197.6 + 186.1)) / 240
= 0.110
slope = atan √(dz/dx² + dz/dy²)
= 23.5° (43.5 %)
aspect = 75° (E)
shade = 255·(cos z·cos s + sin z·sin s·cos(az − asp))
= 129 z = 90 − 45 = 45°, az = 315°
301·04

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.

TRY ITDrop a raindrop

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.

300 mN
  • pit / edge
  • Raindrop path
D8 code at the drop
2 SE
Steps downhill
3
Cells upstream
2cells
D8 codes (the dot is the cell itself)
32
64
128
16
●
1
8
4
2
301·05

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.

TRY ITCan the observer see the target?

Drag the observer (blue) and the target (orange) around the map, then raise the observer on a tower.

ObserverTarget300 mN
1411531650 m607 mground · sight line
Visible
yes
Distance
607m
Ground in the way
0m
301·06

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.

TRY ITFind the shortest route

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.

120131131120130131120131130110110105105184110A0BCDEFGHJKLM
Nodes settled
1 / 12
Route length
603m
Straight line
464m
Route ÷ straight
130%
At 30 km/h
1.2min

Closed streets: 0

301·07

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.

TRY ITLay out and stake the curve

Set R and Δ, pick the station interval, and watch the surveyor turn each deflection while the chainman pulls each chord.

δ = 2°12'57"48+00.0049+50.0051+00.0052+50.00PC 46+53.59PT 52+81.91PI 50+00.00TTLC = 600.00 ftMEL (arc) = 628.32 ft · R = 600 ft · Δ = 60°surveyor at the PC · chainman on the tape
T = R·tan(Δ/2)
346.41ft
L (arc) = R·Δ
628.32ft
LC = 2R·sin(Δ/2)
600.00ft
M = R(1 − cos Δ/2)
80.38ft
E = R(sec Δ/2 − 1)
92.82ft
D (arc def.)
9.5493°
D (chord def.)
9.5604°
Σ deflections = Δ/2
30.0000°
D (arc def.) / D (chord def.)
arc definition: D = 5729.58 / R = 5729.58 / 600 = 9.5493°
chord definition: R = 50 / sin(D/2) → D = 2·asin(50 / 600) = 9.5604°
deflection to a stake l ft along the arc: δ = (l / R) / 2 (radians)
sub-chord between stakes: c = 2R·sin(δ₂ − δ₁)
StationArc from PC (ft)DeflectionChord (ft)
PC46+53.590.000°00'00"—
47+00.0046.412°12'57"46.399
47+50.0096.414°36'12"49.986
48+00.00146.416°59'26"49.986
48+50.00196.419°22'40"49.986
49+00.00246.4111°45'55"49.986
49+50.00296.4114°09'09"49.986
50+00.00346.4116°32'24"49.986
50+50.00396.4118°55'38"49.986
51+00.00446.4121°18'52"49.986
51+50.00496.4123°42'07"49.986
52+00.00546.4126°05'21"49.986
52+50.00596.4128°28'35"49.986
PT52+81.91628.3230°00'00"31.905
Chained chords miss the PT by
0.0000ft
PC → PT
46+53.59 → 52+81.91
Chord vs arc for one station step at this R
StationArc (ft)Chord (ft)Short by
100 ft100.00099.8841.388 in
50 ft50.00049.9860.174 in
25 ft25.00024.9980.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.

301·08

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.

TRY ITDrive the curve

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.

BVC47+00.00PVI50+00.00EVC53+00.00High / low point 50+27.27 · 495.91 ftobject 2.0 fteye 3.5 ftz × 41.2Crest curve
A = |g₂ − g₁|
5.5%
K = L / A
109ft/%
High / low point
50+27.27
AASHTO SSD
360ft
Sight distance provided
485ft
L needed for SSD
327ft

The driver sees the object in time: the curve meets the AASHTO crest sight-distance requirement at this speed.

Crest curve
y(x) = y_BVC + g₁·x/100 + (g₂ − g₁)·x² / (200·L)
A = |-2.5 − (3.0)| = 5.5 % K = 600 / 5.5 = 109.1 ft per %
turning point: x = −g₁·L / (g₂ − g₁) = −(3.0)·600 / (-2.5 − 3.0) = 327.3 ft
AASHTO
crest, eye 3.5 ft, object 2.0 ft, S = 360 ft
S > L: L = 2S − 2158 / A = 2·360 − 2158 / 5.5 = 327 ft
needed 327 ft · have L = 600 ft
StationElevation (ft)Grade
47+00.00491.003.00 %
48+00.00493.542.08 %
49+00.00495.171.17 %
50+00.00495.880.25 %
51+00.00495.67-0.67 %
52+00.00494.54-1.58 %
53+00.00492.50-2.50 %
301·09

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
Maps SDK for JavaScript 5.x
<arcgis-scene basemap="topo-3d" ground="world-elevation">
<arcgis-zoom slot="top-left"></arcgis-zoom>
</arcgis-scene>
import * as geodeticLengthOperator
from "@arcgis/core/geometry/operators/geodeticLengthOperator.js";
import * as densifyOperator
from "@arcgis/core/geometry/operators/densifyOperator.js";
// the road length: along the arc (geodetic operators load first)
await geodeticLengthOperator.load();
const arcFeet = geodeticLengthOperator.execute(alignment, { unit: "feet" });
// the drawing: chords no longer than 25 ft
const chords = densifyOperator.execute(alignment, 25, { unit: "feet" });

Check yourself: GIS 301

  1. 1.A contour map has a 10 m interval. On ground sloping at 20°, how far apart are neighbouring contours on the ground?
  2. 2.A raindrop leaves its cell toward the south-west. Which D8 code does ArcGIS store?
  3. 3.By the arc definition, what is the degree of curve of an R = 1,000 ft curve?
  4. 4.The instrument is on the PC of an R = 800 ft curve. What deflection angle do you turn to a stake 100 ft along the arc?
  5. 5.A crest vertical curve joins g₁ = +3 % to g₂ = −2 % over L = 600 ft. What is K?
  6. 6.On an R = 500 ft curve a crew stakes 100 ft stations by chord. How much shorter is each chord than its 100 ft arc?