A flat map changes distance

A map projection puts the curved earth on a flat surface. This step makes some distances longer and some shorter. The amount changes from place to place.

Elevation also changes distance. A coordinate system measures distance on the ellipsoid, a smooth model of the earth near sea level. A surveyor measures distance on the ground, which is higher. In Utah, elevation alone makes a mapped mile 0.6 to 3.2 feet shorter than the ground mile.

I multiply the projection's scale factor by the elevation factor. The result is the combined factor. The posters give it as feet per mile:

  • A negative number means that the mapped mile is shorter than the ground mile.
  • A positive number means that the mapped mile is longer.
  • One foot per mile is about 189 parts per million, or 19 cm per km.

The 79 low-distortion zones

The National Geodetic Survey (NGS) at NOAA published a beta design of SPCS2022. For Utah, the design has 11 regional zones that cover the state. It also has 79 smaller low-distortion zones. The Utah Geospatial Resource Center (UGRC) data names NGS as the designer of the regional zones and the State of Utah as the designer of the 79 zones.

The 79 zones use three types of projection:

  • 48 zones use a Lambert conformal conic projection with one standard parallel.
  • 29 zones use a Transverse Mercator projection.
  • 2 zones use an Oblique Mercator projection. One follows I-70 from Floy to the Colorado line, tilted 51°. The other covers Glen Canyon National Recreation Area, tilted 50°.

The 79 zones cover 39.9% of Utah, and no two zones overlap.

The hatch lines show the line that each projection is built along. Lambert zones have lines along a parallel. Transverse Mercator zones have lines along a meridian. Oblique Mercator zones have lines along their tilted center line.

The chart at the left gives the range of each zone, map against ground, on a 500 m grid. Every zone stays between −1.5 and +0.6 feet per mile.

Three inset maps show the tilted zones. The third, the Escalante Desert, is a regional zone, tilted 20°. In each inset, the dashed line is the center line, where the projection scale is lowest. In these three zones, the projection alone makes a mapped mile 0.9 to 1.8 feet longer. Elevation cancels most of that.

How long is a mile on your map?

The second poster puts several coordinate systems on one color scale. The main map shows the 11 regional zones, with a number and a name for each. A table gives the projection and the range of each zone.

Poster titled How long is a mile on your map?, on sand-colored paper, over a one-mile ruler marked in feet. A shaded-relief map of Utah shows the 11 SPCS2022 regional zones, each numbered and named. Colors show how many feet a mapped mile gains or loses against the ground, from dark teal for shorter to dark brown for longer. Most of the state falls within a foot. Beside the map, a chart follows 112 degrees west from south to north. It compares UTM zone 12N, State Plane 1983 and the regional zones, with a ground profile at the side. A table lists the 11 regional zones with their projections and ranges. Five small maps show UTM zone 12N, State Plane 1983, the SPCS2022 statewide zone, the low-distortion zones and the Navajo Nation Coordinate System on the same color scale.
How long is a mile on your map?, in the sandstone colors. Open the poster.

On a 1 km grid, each system gives these ranges in feet per mile:

  • UTM zone 12N: −5.2 to +2.0. It is within 1 foot on 17% of Utah.
  • State Plane 1983, with its North, Central and South zones: −3.5 to −0.1. It is within 1 foot on 9% of Utah.
  • The SPCS2022 statewide zone: −2.9 to +2.3. It is within 1 foot on 51% of Utah.
  • The SPCS2022 regional zones: −1.9 to +0.9. They are within 1 foot on 97% of Utah.
  • The SPCS2022 low-distortion zones, where they exist: −1.4 to +0.5. They are within 1 foot on 99.8% of their area.

The regional zones are scaled a little long. Their projection alone adds 0.6 to 2.1 feet per mile. Elevation removes 0.6 to 3.2 feet per mile, so the two effects mostly cancel.

The poster also shows the Navajo Nation Coordinate System, a Lambert projection. In Utah, its range is −0.5 to +1.7 feet per mile.

A line north along 112° W

The chart follows 112° W from the Arizona line to the Idaho line. This meridian is about 5.6 miles (9 km) west of downtown Salt Lake City. The chart has three lines: UTM zone 12N, State Plane 1983 and the SPCS2022 regional zones.

The lines jump where they cross a zone boundary:

  • State Plane 1983 changes zone at 38.50° N and 40.92° N.
  • The regional zones change at 37.53° N, 38.50° N and 39.80° N.

Between the jumps, the changes come from the ground. The largest is just north of 38.5° N. There, the ground rises to about 11,000 feet at 38.61° N. The regional line goes down to −1.44 feet per mile at that point.

The tilt of the Glen Canyon zone makes a difference along Lake Powell. On the projection alone, that zone has less than a third of the distortion of the best upright Transverse Mercator that I could fit.

The glacier colors

Each poster also has a dark version on navy. On the zone map, amber is Transverse Mercator, ice blue is Lambert and rose is Oblique Mercator. On the mile map, ice blue is shorter and amber is longer.

The poster 79 ways to flatten Utah in dark colors on navy. A large blue 79 sits at the top left, with the words beside it squashed flatter line by line. A shaded-relief map of Utah shows the 79 SPCS2022 low-distortion zones. Ice-blue zones with east-west hatching use a Lambert conformal conic projection. Amber zones with north-south hatching use a Transverse Mercator projection. Two rose zones with tilted hatching use an Oblique Mercator projection. Dashed lines mark the 11 regional zones, and Great Salt Lake is a navy cutout with a pale outline. A chart at the left gives the range of each zone. Three inset maps show the tilted zones along I-70, around Glen Canyon and in the Escalante Desert.
79 ways to flatten Utah, in the glacier colors. Open the poster.
The poster How long is a mile on your map? in dark colors on navy, over a one-mile ruler marked in feet. A shaded-relief map of Utah shows the 11 SPCS2022 regional zones, each numbered and named. Colors show how many feet a mapped mile gains or loses against the ground, from ice blue for shorter to amber for longer. Beside the map, a chart follows 112 degrees west from south to north and compares UTM zone 12N, State Plane 1983 and the regional zones. A table lists the 11 regional zones. Five small maps compare the other systems on the same color scale.
How long is a mile on your map?, in the glacier colors. Open the poster.

Inside the scripts

The final script, day22_v7.py, draws all four posters. It uses functions from earlier scripts in the series. The distortion math is in day22_scale.py.

The excerpts below come from day22_scale.py. That script passes the default checks of the ruff linter and uses its code format.

This function gets the projection's scale factor at each grid point. PROJ, the open-source projection library, calculates it through pyproj.

def scale(epsg, lon, lat):
    f = Proj(CRS.from_epsg(epsg)).get_factors(lon, lat)
    return np.asarray(f.meridional_scale)
From day22_scale.py. A conformal projection has the same scale in all directions at a point, so the scale along the meridian is the scale factor. The SPCS2022 zones use the same call with a PROJ definition that the script writes from the NGS zone parameters.

This function gets the elevation factor at each grid point. It samples the elevation, then divides the radius of the earth by the radius plus the height.

def elevation_factor(lon, lat, gx, gy):
    to5070 = Transformer.from_crs(ALBERS, 5070, always_xy=True)
    ex, ey = to5070.transform(gx.ravel(), gy.ravel())
    with rasterio.open(DEM) as src:
        h = np.fromiter((v[0] for v in src.sample(zip(ex, ey))), float, count=ex.size)
    h = h.reshape(gx.shape) + GEOID_M
    s2 = np.sin(np.radians(lat)) ** 2
    m = A * (1 - E2) / (1 - E2 * s2) ** 1.5
    n = A / np.sqrt(1 - E2 * s2)
    r = np.sqrt(m * n)
    return r / (r + h), h - GEOID_M
From day22_scale.py. r is the mean radius of curvature of the GRS80 ellipsoid at the latitude of the point. GEOID_M is a constant geoid height of −16 m. This simplification changes the result by about 0.01 foot per mile.

Method

  • The regional and low-distortion zones come from the UGRC copies of the NGS layers in the State Geographic Information Database (SGID). The statewide zone comes from the NGS beta site.
  • The PROJ definition of every zone agrees with the NGS example point within 2 × 10⁻⁹ in scale and 0.8 mm in position.
  • For State Plane 1983, each county uses its zone from the UGRC county boundaries.
  • The elevation is USGS 3D Elevation Program (3DEP) data at 400 m. The relief shading is 3DEP data at 250 m.
  • The statewide maps and the chart use a 1 km grid. The range chart and the inset maps use a 500 m grid.
  • The posters are drawn in an Albers equal-area conic projection on NAD83, with standard parallels at 37.5° N and 41.5° N and a central meridian at 111.5° W.
  • The lakes come from Esri USA Water Bodies. The Glen Canyon boundary comes from the National Park Service. I-70 and I-15 come from UGRC roads. The Navajo Nation boundary comes from U.S. Census TIGER data.

Limits

  • SPCS2022 is a beta design. It uses NATRF2022, a new reference frame that is not in use yet. The comparison uses only the projections, so the reference frame does not change the numbers.
  • The 400 m elevation data smooths the peaks. The true range of each zone is a little wider.
  • The Lake Powell comparison uses the lake and 2 km of shore, with my own fitting method. It is not the NGS design method.
  • The Navajo Nation Coordinate System comes from Esri's projection list (ESRI:103592).

Data and credit

NGS and the State of Utah designed the SPCS2022 zones. UGRC publishes the zones and the county boundaries in the SGID. USGS provides the 3DEP elevation data. The U.S. Census Bureau provides the TIGER boundaries. The National Park Service provides the Glen Canyon boundary.