← Geographic Information Systems

Geographic data types: vector and raster

Geographic data types: vector and raster

Introduction

Geospatial data represents the location and attributes of features, events, or processes on Earth. In GIS, it is stored mainly in two models: vector and raster. The vector model represents distinct features using coordinates, while the raster model portrays an area through a grid of cells.

A data model is more than a file format. It dictates how features are portrayed, which analytical operations can run, detail level, and storage requirements. For example, a highway is best represented as a linear vector, whereas continuous phenomena like surface temperature are depicted naturally as rasters.

Vector model: discrete features

In the vector model, a geographic feature is constructed from coordinate sequences. Three primary geometry types exist:

  • point — features without surface area at scale (wells, trees, bus stops);
  • line — linear features with length (roads, rivers, utility lines);
  • polygon — closed boundaries defining area (parcels, lakes, districts).

Each geometry links to an attribute table record. Users can select features on a map, inspect attributes, filter values, and edit geometry. Vector data excels for features with definite borders, cadastres, and networks. However, complex borders increase file size, and dividing continuous surfaces into polygons yields artificial boundaries.

Vector model of a landscape showing well points, road lines, and land parcel polygon geometries

Raster model: continuous grid surfaces

In the raster model, an area is partitioned into rows and columns of uniform cells. Each cell holds a single value: elevation, temperature, land cover, or brightness. Satellite scenes may contain multiple spectral bands, while digital elevation models store terrain height per cell.

A key raster parameter is cell size, representing ground distance covered by a pixel. Smaller cells resolve finer detail, but increase file size and processing load. Unobserved cells receive a NoData value. Before overlay analysis, cell size, grid alignment, coordinate reference systems, and NoData definitions must be checked to prevent calculation errors.

Raster surface cells showing assigned values, pixel size resolution, and NoData cell representation

Key differences between vector and raster

CriterionVectorRaster
StructureCoordinate-based points, lines, and polygonsRegular grid of value-bearing cells
Best suited forDiscrete features with well-defined bordersContinuous surfaces and satellite imagery
Detail levelDependent on geometry vertices and scaleDependent on cell size (resolution)
Core analysisNetwork routing, topology, feature queryingSurface modeling, spectral analysis, map algebra
Main hazardGeometry and topological errorsInappropriate cell size or mishandled NoData

The same phenomenon can often be modeled in either format. For instance, a river can be delineated as a line or polygon in vector format, or as contiguous water cells on satellite imagery. While conversion between vector and raster is common, doing so can smooth discrete edges or sacrifice subtle source detail.

Comparison of a river and terrain showing smooth vector geometries on the left and a gridded raster model on the right

How to select the right model?

Selection is guided by task objectives, not format preferences. Before starting, assess:

  1. Is the feature discrete with clear borders or a continuous surface?
  2. Does the workflow require feature queries or cell-based calculations?
  3. What level of detail, accuracy, and scale is needed?
  4. What is the source quality, volume, and update frequency?

Vector is chosen for legal parcel boundaries, while raster suits classifying land cover from satellite imagery. Real projects often use both: rasters determine conditions, and results are summarized by vector zones. Specialists assess coordinate systems, scale, resolution, topology, and metadata rather than file extensions.

Conclusion

Vectors portray discrete objects via points, lines, and polygons, while rasters represent landscapes through value-bearing cells. Neither holds a universal advantage: the proper choice depends on physical phenomenon, analysis method, and required detail. Reliable GIS results require verifying coordinate systems, geometry, resolution, and data quality alongside model selection.

You may also like