Where Spatial Data Comes From and How Good It Is
Learn how spatial data is created through GPS, remote sensing, digitizing, geocoding and open data, and how to judge accuracy, precision, scale and metadata.
Welcome back!
Step 1 of 12Learn
Sources of spatial data
Where does all this data come from? There are two broad routes: creating it yourself (primary data) or obtaining it from others (secondary data).
Primary data collection:
- Field surveys with GNSS receivers: walk or drive to features and record positions, from smartphone apps for rough mapping to survey-grade receivers accurate to centimeters.
- Remote sensing: images from satellites, aircraft and drones, processed into maps of land cover, vegetation or change.
- Lidar: laser pulses from aircraft or drones measure the ground surface and objects in 3D, producing detailed elevation models even beneath forest canopy.
- Digitizing: tracing features from imagery or scanned maps, either manually or with automated tools.
- Geocoding: converting addresses into coordinates using a reference road or address layer.
Secondary data:
- Government agencies: national mapping agencies, census bureaus and environmental agencies publish boundaries, roads, elevation, land cover and demographic data, often free. In the U.S., examples include the Census Bureau's TIGER/Line files and USGS elevation data.
- Open data portals: many cities publish parcels, zoning, transit and service requests.
- OpenStreetMap: a global map built by volunteers, with roads, buildings, points of interest and more, free to use with attribution.
- Commercial providers: high-resolution imagery, business locations and traffic data.
Using someone else's data saves enormous time, but you inherit its strengths, errors and assumptions, which is why data quality matters so much.
Step 2 of 12Practice · Sort into groups
Sort each method into primary or secondary data.
Tap an item, then tap its group (or drag it there).
Step 3 of 12Diagram
Where spatial data comes from
Tap a shape with to see more.
- Spatial data
- Primary: you create it
- Secondary: others made it
- GNSS field survey
- Satellite, aerial, drone images
- Lidar
- Digitizing and geocoding
- Government agencies
For example US Census TIGER/Line files and USGS elevation.
- Open data portals
- OpenStreetMap
- Commercial providers
Step 4 of 12Note
Step 5 of 12Learn
Geocoding: from address to point
Geocoding is one of the most common GIS tasks: turning a list of addresses into points on a map. A geocoder compares each address with a reference dataset, often a street layer where each segment knows its address range on each side.
Suppose a street segment runs from 100 to 198 on one side. To place "150 Oak Street," the geocoder interpolates: 150 is about halfway along the range, so it puts the point about halfway along the segment, offset to the correct side. Some geocoders instead match to building footprints or parcel centroids, which is usually more accurate.
Things that go wrong:
- Spelling and format variations: "St." vs "Street," "N Main" vs "North Main," missing ZIP codes.
- New developments not yet in the reference data.
- Rural addresses and post office boxes that do not correspond to a physical location.
- Interpolation error: houses are not evenly spaced, so interpolated points can be tens of meters off.
Geocoders report a match score or match type for each address. Good practice is to review low-scoring and unmatched records rather than accepting them blindly. A geocoded dataset with 15% unmatched addresses could seriously bias an analysis if the unmatched records cluster in particular neighborhoods, such as newer or poorer areas.
Geocoding also raises privacy concerns: points for individual homes, such as patient addresses, can identify people. Analysts often aggregate to areas or slightly displace points before sharing maps.
Step 6 of 12Practice · Work it out
A street segment has addresses 200 to 298 on one side, evenly spaced along a 500 m segment. Using simple interpolation, about how many meters from the 200 end would a geocoder place number 250?
Step 7 of 12Diagram
How a geocoder places an address
Tap a shape with to see more.
- Address list
For example "150 Oak Street".
- Standardize spelling
"St." and "Street", "N" and "North" made consistent.
- Match to reference streets
- Interpolate along the segment
150 in a 100–198 range goes about halfway along, on the correct side.
- Point plus match score
Review low scores and unmatched records before analysis.
Step 8 of 12Learn
Accuracy, precision, scale and metadata
Two words are often confused in spatial data. Accuracy is how close a measurement is to the true value. Precision is how consistent or detailed measurements are. A GPS reading recorded to eight decimal places looks very precise, but if the receiver was accurate only to 5 meters, the extra digits are meaningless. Coordinates with many decimals can be precisely wrong.
Quality has several dimensions:
- Positional accuracy: are features in the right place?
- Attribute accuracy: are the descriptions correct? (Is that polygon really forest?)
- Completeness: are any features missing?
- Logical consistency: do polygons overlap where they should not, or do roads fail to connect?
- Currency: how up to date is it?
Source scale limits accuracy. Data digitized from a 1:250,000 map was generalized for that scale, so rivers are smoothed and small features omitted. Zooming in on a screen does not add detail; it only magnifies the generalization. Combining it with 1:5,000 parcel data will produce mismatches that look like errors but are really scale differences.
Metadata, data about data, records who created a dataset, when, from what sources, with what methods, in which coordinate system, what each field means and what accuracy to expect. Without metadata, even good data is risky to use. Standards such as ISO 19115 define what metadata should include, but even a short readme with source, date, CRS and field descriptions is a huge help.
Step 9 of 12Compare
Accuracy and precision
| Aspect | Accurate | Not accurate |
|---|---|---|
| Precise | Tightly clustered readings around the true location | Tightly clustered readings, but all offset from the true location |
| Not precise | Readings scattered widely but centered on the true location | Readings scattered widely and off-center |
| Typical cause | Good equipment and method | Systematic error such as a wrong datum, or random error such as weak signals |
Step 10 of 12Note
Step 11 of 12Practice · What would you do?
What would you do?
You find a free online layer of wetlands that looks perfect for your project, but it has no metadata. What should you do?
Step 12 of 12Practice · Choose one
A dataset gives coordinates to 8 decimal places, but it was collected with a phone GPS accurate to about 5 m. Which statement is correct?
Lesson complete!