Skip to main content

Understanding GIS Data

Geospatial data is data linked to a location on the Earth's surface. In addition to describing what something is, it also describes where it is, using a coordinate system such as latitude and longitude (WGS 84) or the UTM grid system.

Geospatial data typically has three components:

  • Location: The coordinates or geometry of the feature.
  • Attributes: Information that describes the feature, such as a road name, population, or rainfall amount.
  • Time: When the data was collected. This is especially important for data that changes frequently, such as rain radar or satellite imagery.

A good place to start learning GIS is coordinate systems. Understanding where coordinate values come from helps you use geospatial data correctly.

Coordinate Reference System (CRS)​

To describe a location on Earth in a way everyone understands, we need a shared set of rules: where to measure from and which units to use. It is similar to a postal address, which follows a set order of house number, street, district, and province. If people use different rules, the same location can end up in different places on a map.

The two most commonly used systems are WGS 84 and UTM.

WGS84 vs UTM WGS84 vs UTM

WGS 84: Coordinates on a Globe​

WGS 84 (World Geodetic System 1984) models the Earth as an ellipsoid (a slightly flattened sphere) and describes locations using two angles:

  • Latitude: The number of degrees north or south of the equator.
  • Longitude: The number of degrees east or west of the prime meridian, which passes through Greenwich, England.

Because latitude and longitude are angles, not distances, they are not convenient for measuring lengths or areas directly.

UTM: A Grid in Meters​

UTM (Universal Transverse Mercator) solves this problem by flattening the Earth's surface onto a grid. Think of peeling an orange into long segments and pressing each one flat.

  • The Earth is divided into 60 zones, each 6 degrees of longitude wide.
  • Within each zone, locations are given as distances in meters east (Easting) and north (Northing).
Measure WGS 84 data in meters without converting to UTM (Web Map)

Although WGS 84 coordinates (EPSG:4326) are stored in degrees, you can calculate distances and areas in meters directly using geodesic calculations. These calculations are performed on the curved surface of the Earth instead of on a flat plane.

On the web, you can use Turf.js (turf.distance, turf.length, turf.area) to calculate directly from map coordinates. Turf.js uses a spherical model of the Earth, which is accurate enough for most web mapping use cases. For higher accuracy on the WGS 84 ellipsoid, use geographiclib-geodesic.

Geospatial Data Type​

There are two main types of geospatial data. Let's look at how they differ and how each one is used.

Vector vs Raster Vector vs Raster

Geospatial Vector data​

Geospatial vector data represents real-world features on the Earth's surface using three basic geometry types: points, lines, and polygons. Their locations are defined by coordinates in a coordinate reference system (CRS). Each feature also has attributes attached to it, such as a name, type, or population.

Vector data can be divided into three types: points, lines, and polygons.

  • Point: A single location with no length or area, defined by one coordinate pair [X, Y].
  • Line: A series of connected coordinates with length, defined by two or more coordinate pairs.
  • Polygon: A closed shape with area, defined by four or more coordinate pairs, where the first and last pairs are the same.

Common Vector File Formats​

FormatExtensionStrengths / Limitations
Shapefile.shp, .shx, .dbf, .prjSupported almost everywhere; field names ≤10 chars, files ≤2 GB, one geometry type per file, encoding issues with non-Latin text
GeoPackage.gpkgOGC standard on SQLite; single file, multiple layers (incl. raster); recommended Shapefile replacement
GeoJSON.geojson, .jsonHuman-readable, web-friendly (requires WGS84); large and slow for big datasets
FlatGeobuf.fgbBinary with built-in spatial index; supports HTTP range requests for streaming
GeoParquet.parquetColumnar, suited to large-scale analytics; works with DuckDB, GeoPandas, BigQuery
KML / KMZ.kml, .kmzFrom Google Earth, focused on display and styling; KMZ is zipped KML
GML.gmlXML-based OGC standard for government data exchange and WFS; verbose
CSV + WKT / lat-lon.csvSimplest option; no built-in CRS

Geospatial Raster data​

Raster data represents continuous geospatial data as a grid of pixels. Each pixel covers a specific area and stores a value. Examples include satellite imagery and elevation data.

Common Raster File Formats​

FormatExtensionStrengths / Limitations
GeoTIFF.tif, .tiffDe facto standard; georeferencing embedded in TIFF tags; supports many data types, compression, and multiple bands
JPEG 2000.jp2, .j2kHigh compression ratios; used by Sentinel-2 L1C/L2A; decoding can be slow