Back to the on-screen lesson ·

Map layers

A GIS stores the world as vector and raster layers; a raster cell covers its width squared, so resolution sets both detail and size.

Paper packet. Every task here also exists on screen, where it is checked automatically; answers written on paper are not assessed by Nydus. When you are back at a device, enter your answers there.

1. What you will learn

By the end of this lesson you will be able to choose vector or raster layers for a feature and measure ground area from raster cells.

2. What you already have

You can read scale, choropleth and symbol maps, and you know coordinates only line up when they share a system. This lesson opens the geographic information system itself: how it stores the world, and why that choice limits what it can show.

3. Words for this lesson

TermWhat it means
LayerOne set of geographic data of a single kind for an area, such as roads or elevation.
VectorData stored as points, lines and polygons with exact coordinates.
RasterData stored as a grid of square cells, each with one value.
CellOne square of a raster, also called a pixel.
ResolutionThe ground width of one raster cell.
AttributeInformation attached to a feature, such as a road's name or a parcel's owner.

4. The world in layers

A geographic information system, or GIS, stores the world as stacked layers, each holding one kind of data for the same place.

  1. Vector layers store points (hydrants, wells), lines (roads, rivers) and polygons (parcels, counties), each with attributes.
  2. Raster layers divide the area into a grid of square cells, each holding one value, such as elevation or land cover.
  3. A raster's resolution is the width of a cell on the ground.
  4. One cell covers the width squared: a $30$ m cell covers $900$ square meters.
  5. Halving the width makes four times as many cells.

Another way: picture

Picture tracing paper sheets laid over a base map, one for roads, one for rivers, one for parcels. Lift any sheet and the others stay in place. A GIS works the same way, except the sheets are data files that line up by their coordinates, and a raster sheet is ruled into a checkerboard with a number in every square.

Another way: steps

  1. Decide whether the feature is a location, route, area or continuous surface.
  2. Choose points, lines, polygons or a raster.
  3. For a raster, square the cell width to get the area of one cell.
  4. Multiply cells by that area to measure ground covered.
  5. Check that all layers share a coordinate system.

5. Attributes, geometry and reference systems

A layer's geometry answers where; its attributes answer what was recorded there. In a fictional garden inventory, polygon 17 is a boundary, while its ID, land use and inspection date are fields in a row. The ID is a key, not a measured quantity. A separate inspection table can join by that key only after you check missing and duplicate IDs. A one-to-many join can multiply rows and accidentally multiply population totals. Compare row counts and totals before and after a join.

A coordinate reference system (CRS) gives the coordinate numbers their spatial meaning: datum, coordinate axes, units and, for a projected system, projection parameters. A projection trades off properties when flattening the Earth. Choose one suited to the area and measurement: a convenient web display is not automatically an appropriate basis for area or distance. Assigning a missing CRS identifies what the existing numbers mean; transforming converts them. Never guess an unknown system simply to make a layer appear nearby.

6. Worked data plan: an invented orchard survey

Suppose an orchard study provides tree locations, management-plot boundaries and a gridded moisture estimate. First retain trees as points and plots as polygons: the geometries preserve the objects being studied. Next attach plot management records by a verified unique plot ID; check that an unmatched record remains missing rather than becoming zero. Keep moisture as a raster because each cell estimates conditions over part of a surface. Then inspect the source CRS and transform compatible copies into the chosen analysis CRS. Check several surveyed locations before extracting raster values at trees. Finally report both the moisture cell width and tree-position uncertainty. A precise-looking point does not make the moisture estimate precise at that tree. This plan supports a bounded association between management and moisture; it does not by itself prove that management caused it.

7. Vector layers

Vector data is good for features with sharp edges and identities. Each fire hydrant is a point with an address and inspection date; each street is a line with a name and speed limit; each parcel is a polygon with an owner and assessed value.

The U.S. Census Bureau publishes its TIGER/Line files as vector layers of roads, rivers and boundaries, free for anyone to use; many local maps start from them.

8. Raster layers

Raster data is good for things that vary continuously, such as elevation, temperature and rainfall, and for images from satellites and aircraft. Every cell has a value, so there are no gaps.

The U.S. Geological Survey's National Land Cover Database classes every thirty-meter cell of the lower forty-eight states as forest, cropland, developed land, water and other types, and has been updated every few years since 2001.

9. Resolution and cell area

A cell's area is its width squared.

Cell widthArea of one cellCells per square kilometer
10 m100 m²10,000
20 m400 m²2,500
30 m900 m²about 1,111
50 m2,500 m²400

Halve the width and the area of a cell falls to a quarter, so four times as many cells cover the same ground.

10. What resolution hides

A cell can only hold one value. A thirty-meter cell that is half road and half lawn gets one class, perhaps "developed". A creek narrower than a cell may disappear.

Coarse rasters suit broad patterns across states; fine rasters suit a neighborhood. No resolution is right for every question.

11. Measuring with rasters

To measure an area on a raster, count the cells in a class and multiply by the area of one cell. $2000$ forest cells at thirty meters cover $2000 \times 900 = 1800000$ square meters, or $1.8$ square kilometers.

The answer is only as good as the classification: every misclassed cell adds or subtracts nine hundred square meters.

12. Attributes and tables

Every vector feature carries a row in an attribute table. A county polygon might hold its name, population, area and median income. Choropleth maps from the earlier lessons are drawn by coloring polygons by one attribute.

Joining a table of statistics to a layer by a shared code, such as a county's federal code, is one of the most common GIS tasks.

13. Choosing vector or raster

A city's water utility stores pipes as lines and valves as points, because it needs exact locations and attributes. A climate scientist stores temperature as a raster, because it is measured or modeled everywhere.

Many projects use both, and a GIS can convert between them, with some loss each way.

14. The method, step by step, and how to check it

  1. Type: point, line, polygon or raster.
  2. Cell area: width squared.
  3. Ground covered: cells times cell area.
  4. Units: divide square meters by a million for square kilometers.
  5. Resolution change: halving the width multiplies cells by four.

Checking an answer. An area in square meters should be much larger than the cell count when cells are more than a meter wide. A finer raster always has more cells.

15. Why each step is allowed

Squaring the width is allowed because each cell is a square with equal sides. Multiplying cells by cell area is allowed because every cell in a raster has the same size.

Multiplying by four when the width halves is allowed because the count doubles both across and down, and two times two is four.

16. Layers in local government

Most American counties keep a GIS of parcels, zoning, roads, addresses and utilities. Emergency dispatch uses the address layer to route ambulances; the assessor uses parcels to send tax bills; planners overlay zoning with flood zones.

Many counties publish these layers on public map viewers, so residents can look up their own property.

17. Metadata: the label on every layer

A layer without its story is a risk. Metadata records where the data came from, when it was collected, its coordinate system and datum, its resolution or scale, and what each attribute means. The Federal Geographic Data Committee sets a metadata standard that federal agencies follow for the data they publish.

Before overlaying two layers, read their metadata: a parcel layer from last year and a land cover raster from a decade ago may disagree because the land changed, not because either is wrong. A layer that cannot say when and how it was made should be used with care, and its gaps named in any map built from it.

18. Common slips

The most common slip is taking the cell width as its area, forgetting to square it. Another is forgetting that halving the width quadruples the cells, not doubles them.

A third is mixing square meters and square kilometers; a square kilometer is a million square meters, not a thousand. A fourth is treating a raster's classes as exact when each cell may be mixed.

19. Layers as data

Layers are the raw material of every GIS analysis. The next lessons combine them: overlay finds where layers coincide, and buffers find what lies within a distance of a feature.

20. In the world: the National Land Cover Database

The U.S. Geological Survey and partner agencies produce the National Land Cover Database, a raster that classes every thirty-meter cell of the lower forty-eight states into about sixteen types, from open water and deciduous forest to high intensity developed land. Editions from 2001 onward let analysts compare how land cover has changed.

Planners use it to track suburban growth, foresters to measure forest loss after fires, and hydrologists to estimate how much rain will run off paved surfaces. Because each cell covers nine hundred square meters, counting cells turns directly into acres and square miles.

The thirty-meter cells come from Landsat satellite images. They are fine enough to show a new subdivision, but a single house, a narrow creek or a row of street trees may vanish into a cell classed as something else, which is why local studies often add finer data.

21. In the world: county parcel maps

Almost every American county keeps a vector layer of property parcels, with a polygon for every lot and an attribute table of owners, acreage and assessed values. The assessor uses it to send tax bills; buyers and title companies use it to check boundaries.

Laid over parcels are other layers: zoning polygons that say what may be built, flood zone polygons from FEMA, road lines, address points and utility lines. A planner considering a new school can ask which parcels are large enough, zoned for public use, outside the floodplain and near a main road.

That question only works because every layer shares a coordinate system and datum. When one layer is off by a datum shift of a few dozen meters, parcels seem to spill into roads, and the analysis gives wrong answers.

22. Cells are areas, not lengths

It is natural to read a raster's resolution, say thirty meters, as the area each cell covers. But resolution is the width of a cell, and the ground inside it is the width squared, nine hundred square meters.

The same slip shows up when resolution changes: halving the width does not double the cells, it multiplies them by four, and the file grows to match.

23. The area of a cell

  1. A raster has thirty-meter cells. Square the width.

    $30^2 = 900\ \text{m}^2$

    Width times height.

  2. Name the slip of doubling.

    $60\ \text{m}^2$

    Width plus width.

  3. Count cells per square kilometer.

    $1000000 \div 900 \approx 1111$

    A million square meters.

  4. Say what each cell holds.

    $\text{one value}$

    For its whole square.

24. Measuring forest

  1. A thirty-meter land cover raster has $5000$ forest cells. Recall the area of one cell.

    $900\ \text{m}^2$

    Thirty squared.

  2. Multiply by the forest cells.

    $5000 \times 900 = 4500000\ \text{m}^2$

    Square meters.

  3. Convert to square kilometers.

    $4500000 \div 1000000 = 4.5$

    A million per square kilometer.

  4. Convert to acres for a landowner.

    $4.5 \times 247 \approx 1112$

    About 247 acres per square kilometer.

  5. Say what could make it wrong.

    $\text{misclassed cells}$

    Each adds or removes 900 square meters.

25. Changing resolution

  1. A square area $3$ km on a side has thirty-meter cells. Convert the side.

    $3000\ \text{m}$

    Meters.

  2. Count the cells across.

    $3000 \div 30 = 100$

    One row.

  3. Count all the cells.

    $100^2 = 10000$

    Rows times columns.

  4. Halve the cells to fifteen meters and count across.

    $3000 \div 15 = 200$

    Twice as many.

  5. Count all the finer cells.

    $200^2 = 40000$

    Four times as many.

  6. Say the trade-off.

    $\text{more detail, larger file}$

    Four times the storage.

26. Your turn: how many twenty-meter cells cover a square kilometer?

  1. Find the area of one cell.

    $20^2 = 400\ \text{m}^2$

    Width squared.

  2. Divide a square kilometer by it.

    $1000000 \div 400 = 2500$

    Cells.

  3. Your turn: work this step out. Its working is at the end of the packet.

    Compare with ten-meter cells.

27. Guided practice

A raster layer has square cells $10$ m wide. What area of ground does one cell cover, in square meters?

28. Guided practice

Complete the worked solution: a square study area $1.5$ km on a side is covered by a raster with cells $30$ m wide. Find the cells across, the total cells, and the total if the cell width is halved.

  1. Find the cells across.

    $\text{side in meters} \div \text{cell width} =$ c

    One row of the grid.

  2. Find the total cells.

    $\text{cells across squared} =$ t

    Rows times columns.

  3. Find the total with half-width cells.

    $\text{four times as many} =$ f

    Twice across, twice down.

  4. Say what that does to the file.

    $\text{about four times larger}$

    One value per cell.

29. Guided practice

Match each feature to the kind of layer that best stores it.

a point layera line layera polygon layera raster layer
fire hydrants
streets
property parcels
ground elevation

30. Practice

A square kilometer is $1000000$ square meters. Fill in how many raster cells cover it when the cells are 10 m, 20 m and 50 m wide.

cells
10 m cells per square kilometer
20 m cells per square kilometer
50 m cells per square kilometer

31. Practice

A raster has cells $10$ m wide. Write the ground area, in square meters, covered by $x$ cells.

Answer:

32. Practice

In a land cover raster with 30 m cells, $3000$ cells are classed as forest. How much forest is that, in square kilometers?

Answer: unit: m2 / km2

33. Somewhere new

The National Land Cover Database maps the United States in 30 m cells. Suppose a county covers $900$ square kilometers. About how many cells cover it?

Answer: cells

34. Somewhere new

Mark the supported observation, data-link plan and spatial-comparison limit in this fictional garden-study audit. The city supplies 4 proposed gardens, parcel polygons with unique IDs, a land-use table keyed by those IDs and a 10 m elevation grid. Parcels use a local projected CRS in meters; the grid has another known CRS.

This task has no paper form; do it on a device.

35. Lesson test

Lesson test: one question per skill, one attempt each, no hints. Your answers are checked when you submit.

36. Test question

A raster has cells $30$ m wide. Write the ground area, in square meters, covered by $x$ cells.

Answer:

37. What you can do now

You can work with map layers. Explain why halving a raster's cell width makes four times as many cells.

Working for the steps left to you

26. Your turn: how many twenty-meter cells cover a square kilometer?, step 3

$10000$

Four times as many.