Raster and vector data in GIS: what is the difference?

Raster data stores the world as a grid of pixels, where each pixel holds a value such as color or elevation. Vector data stores it as points, lines and polygons defined by coordinates. Raster suits continuous surfaces and imagery, while vector suits features with clear edges, so most GIS projects use both together.
Key takeaways
- Raster data is a grid of pixels, and vector data is points, lines and polygons defined by x, y and sometimes z coordinates.
- Pixel size sets how much detail a raster holds. According to Esri, halving the pixel size can need as much as four times the storage space.
- Orthomosaics, elevation models and satellite images are raster, while contours, boundaries and CAD linework are vector. Point clouds are usually handled as their own type of data.
- A shapefile is a vector format. According to Esri, each of its component files is limited to 2 GB and field names to 10 characters.
- You can convert between raster and vector, but each conversion loses something, so keep the original.
What is the difference between raster and vector data?
The difference between raster and vector data is how each one stores the world. Raster data is a grid of pixels, with each pixel holding one value, such as color, temperature or elevation. Vector data uses points, lines and polygons, defined by coordinates, to draw features. As a result, raster suits continuous surfaces and vector suits distinct objects.
Understanding raster and vector data is fundamental in the world of GIS. These two data formats are the building blocks of spatial analysis, each offering unique advantages for representing and analyzing geographic information.
In short, you can begin to think about them like this: raster data is like a photograph made up of pixels, with each pixel storing specific information such as color, temperature, or elevation. Vector data, on the other hand, is like a drawing where points, lines, and polygons are used to represent features; perfect for mapping discrete elements like roads and property boundaries.
Let's explore what each of these data types are in more detail.
What is raster data?

Raster data is made up of pixels (tiny squares), arranged in rows and columns, each representing a specific area on the Earth's surface. Each pixel has a value that represents information, such as color, elevation or temperature. Because every pixel is the same size, that size decides how much detail the raster can show.
The size of each pixel is called the cell size, or spatial resolution. For imagery captured by a drone, aircraft or satellite, it is usually given as the Ground Sampling Distance (GSD). GSD is the distance on the ground between the centers of two neighboring pixels. A smaller GSD means higher resolution and more detail, while a larger GSD means lower resolution and less detail.
For example, according to the USGS, most Landsat 8 and 9 bands have 30 meter pixels, whereas drone surveys are usually measured in centimeters per pixel. Detail has a cost, however. According to Esri, changing pixels to half their current size can need as much as four times the storage space.
Characteristics of raster data:
- Grid-based: Composed of rows and columns of pixels, similar to a digital photo.
- Continuous data representation: Suitable for representing continuous phenomena like elevation, temperature, and aerial imagery, where values change gradually.
- Discrete data too: A raster can also hold categories, such as land cover or soil type, where each pixel belongs to one class. These are known as discrete, or thematic, rasters.
- Resolution: Defined by the size of the pixels; higher resolution means smaller pixels and more detail.
Types of raster data:
Elevation models (DEM, DSM, DTM): Raster data representing elevation values across a surface. A Digital Elevation Model (DEM) is the general term. A Digital Surface Model (DSM) includes buildings and vegetation, while a Digital Terrain Model (DTM) shows the bare ground. They are used for terrain analysis, flood modeling, and viewshed analysis.
Orthophotos (Orthomosaics): High-resolution, georeferenced raster images created by stitching together aerial photographs. An orthomosaic map is corrected for distortions caused by terrain relief and camera perspective, so it is used for accurate mapping, land use planning, and environmental monitoring.
Satellite imagery: Raster data captured by satellites, providing visual representations of the Earth's surface. Used for monitoring land cover changes, agricultural assessments, and urban planning.
Land cover and land use maps: Raster datasets categorizing types of land cover (e.g., forest, urban, water) or land use (e.g., residential, commercial, agricultural).
Climate and weather data: Raster datasets capturing meteorological variables such as temperature, precipitation, and humidity, used in climate modeling and environmental studies.
Raster data formats:
Raster data formats include:
- GeoTIFF (.tif) - A widely used format for georeferenced raster images, supporting both spatial data and metadata. It has been an Open Geospatial Consortium (OGC) standard since 2019.
- Cloud Optimized GeoTIFF (COG) - A GeoTIFF arranged so that software can read part of a large image over the internet without downloading the whole file. The OGC published it as a standard in 2023.
- JPEG (.jpg) - Commonly used for compressed photographic images, though not typically used for GIS analysis due to lossy compression.
- PNG (.png) - Another raster format that supports transparency and lossless compression, often used for map tiles on the web.
A JPEG or PNG usually carries no position of its own, however. To sit in the right place on a map, it needs a small companion file, called a world file.
What is vector data?

Vector data represents geographic features using points, lines and polygons, defined by x, y and sometimes z coordinates to include elevation or height information. Unlike raster data, which is grid-based, vector data records the exact shape and position of each feature. In addition, every feature can carry attributes, such as a name, type or measurement.
Characteristics of vector data:
- Coordinate-based: Uses x, y, and optionally z coordinates to define the shape and location of features, allowing for three-dimensional representation.
- Discrete data representation: Ideal for representing discrete features like roads, property boundaries, and landmarks.
- Attributes: Each feature can store text or numbers that describe it, such as a road name or a pipe diameter.
- Scalability: Vector data stays sharp at any zoom, making it suitable for maps of various scales. It is only as accurate as the survey or map it was captured from, though, so zooming in does not add detail.
Types of vector data:
Points: Vector data representing discrete locations defined by x, y coordinates. Used for mapping specific features like landmarks, wells, or monitoring stations.
Lines (Polylines): Vector data representing sequences of points connected by straight or curved segments. Used for mapping features such as roads, rivers, and pipelines.
Polygons: Vector data representing enclosed areas defined by a series of connected points. Used for mapping features like administrative boundaries, land parcels, and lakes.
More complex vector datasets are built from these three shapes:
Networks: Interconnected sets of points and lines, used for modeling transportation networks (roads, railways), utility networks (electricity, water), and communication networks.
Contours: Lines connecting points of equal elevation, usually derived from a raster DEM. Used for terrain visualization, engineering design, and landscape analysis.
Vector data formats:
Vector data formats include:
- Shapefile (.shp) - A popular vector format consisting of multiple files. The .shp, .shx and .dbf files store the geometry, index and attributes, and a .prj file stores the coordinate reference system.
- GeoJSON (.geojson) - A format for encoding a variety of geographic data structures using JavaScript Object Notation (JSON). Its 2016 standard uses WGS 84 coordinates in decimal degrees.
- KML/KMZ (.kml, .kmz) - Keyhole Markup Language and its compressed counterpart, used for displaying geographic data in tools such as Google Earth.
- GeoPackage (.gpkg) - A newer OGC standard that stores vector features in a single file, and can hold raster tiles as well.
- DXF (.dxf) - A CAD exchange format, common for design linework such as site plans.
The shapefile is still everywhere, but it shows its age. According to Esri, each component file is limited to 2 GB and field names cannot be longer than 10 characters.
Raster vs vector data: how do they compare?
Raster and vector data formats each have distinct characteristics suited for different types of spatial data and analysis tasks. Raster is best for continuous data, such as elevation and imagery, although files grow quickly with resolution. Vector, on the other hand, is best for precise, discrete features, and it stays compact and sharp at any zoom.
Data structure:
- Raster: Grid-based format with each cell holding a single value, ideal for continuous data like elevation and satellite imagery.
- Vector: Coordinate-based format using points, lines, and polygons, suitable for discrete data such as roads and administrative boundaries.
Best uses:
- Raster: Best for continuous spatial data, offering detailed representations but larger file sizes.
- Vector: Ideal for precise representations of discrete features, scalable without significant file size increase.
Resolution and detail:
- Raster: Resolution determined by pixel size, higher resolution provides more detail but increases file size.
- Vector: No pixels, so features stay sharp at any scale, with detail limited by how accurately they were captured.
Data analysis:
- Raster: Suited for complex spatial analyses like surface modeling and habitat suitability assessments.
- Vector: Effective for network analyses such as shortest path finding and utility network management.
What are the advantages and disadvantages of raster and vector data?
Neither format is better in every case, so it helps to know the trade-offs. Raster data handles imagery and continuous surfaces well and makes cell-by-cell calculations simple, but files are large and edges look blocky when zoomed in. Vector data is precise, compact and rich in attributes, but it represents gradual change poorly.
Raster data:
- Advantages: A natural fit for drone, aerial and satellite imagery. In addition, calculations between surfaces are simple, because every pixel lines up with the one beneath it.
- Disadvantages: High resolution rasters need a lot of storage. Lines and boundaries also look stepped, and a raster layer does not usually carry attributes for individual features.
Vector data:
- Advantages: Precise shapes, small files and an attribute table for every feature. It is also the better choice for measuring distances and for tracing connected networks.
- Disadvantages: A poor fit for surfaces that change gradually, such as elevation or temperature. Editing can also introduce small errors, such as gaps between polygons that should share an edge.
Which drone mapping outputs are raster and which are vector?
Most drone mapping outputs are raster. Orthomosaics, digital elevation models (DSM and DTM) and hillshades are all grids of pixels. Contours, measurements, boundaries and design linework, on the other hand, are vector. Point clouds and 3D meshes are usually handled as a third kind of data, separate from both.
For example, Birdi (birdi.io) exports orthomosaics, DSMs and DTMs as GeoTIFF, contours as GeoJSON and point clouds as LAS or LAZ. That split follows the data itself rather than any one platform, so you will see the same pattern in most mapping software.
A point cloud is a set of millions of individual 3D points, with no grid and no lines or polygons. Because of that, it is usually treated as its own type of data. Our guide to point clouds and textured meshes covers the 3D side in more detail.
Can you convert between raster and vector data?
Yes, you can convert in both directions, and GIS software does it routinely. Turning raster into vector is called vectorization, for instance generating contour lines from an elevation model. Turning vector into raster is called rasterization. However, each conversion loses something, so it is good practice to keep the original data.
Raster to vector:
The most common example in drone mapping is contour lines, which are vector lines generated from a raster elevation model. Tracing building outlines or stockpile edges over an orthomosaic is another. In both cases, the vector result can only be as detailed as the pixels it came from.
Vector to raster:
Rasterization turns points, lines or polygons into pixels, usually so they can be combined with other rasters in a calculation. However, the smooth edges become stepped at the chosen pixel size. In addition, the QGIS documentation notes that the attributes attached to the original vector features are lost.
Why does the difference between raster and vector data matter?
Knowing the difference between raster and vector data is crucial because each one suits different work. The data type decides which analysis is possible, how results are visualized, how much storage a project needs and which files a client or colleague can open. Choosing the wrong type usually means converting later and losing detail.
Having the right output for the job
Different GIS tasks require different types of data. For instance, terrain analysis and remote sensing often use raster data, while urban planning and transportation modeling typically rely on vector data. Understanding which type of data is appropriate for a given task ensures the best results.
Data visualization
The way data is visualized in GIS depends on whether it is raster or vector. Raster data provides detailed images, while vector data offers clear, precise representations of boundaries and networks. Knowing the difference allows you to create more effective and informative visualizations tailored to your needs.
The type of analysis and insights needed
Different types of spatial analysis require different data models. Raster data is suitable for analyses involving continuous surfaces, such as slope or temperature gradient analysis. Vector data is better for network analysis, like finding the shortest path between points or managing utility networks. Using the appropriate data type ensures accurate and relevant analysis outcomes.
Data storage and management
Raster data, due to its pixel-based structure, can become very large, especially at high resolutions. Vector data, on the other hand, tends to be more storage-efficient for mapping discrete features. Knowing the differences helps in managing data storage efficiently and making informed decisions about data resolution.
Using both together
In practice, most site projects end up with both: a raster orthomosaic and elevation model, with vector boundaries, contours and design lines on top. If your team needs to view and share both in one map, Birdi is a sensible option for construction and mining teams whose project managers and clients are not GIS specialists. A GIS analyst who needs full raster and vector analysis will still want a desktop GIS such as QGIS or ArcGIS Pro, however, and Birdi works alongside them.
Both raster and vector data are essential components of GIS, each with their unique strengths and applications. Raster data excels in representing continuous phenomena and providing detailed imagery, while vector data is perfect for mapping discrete features and enabling precise analyses. By understanding the differences between these data types and their best uses, you can analyze and visualize spatial data with more confidence.
Frequently asked questions
Is a shapefile raster or vector?
A shapefile is a vector format. It stores points, lines or polygons, along with a table of attributes for each feature. A shapefile is also several files that travel together: the .shp, .shx and .dbf files are mandatory, and a .prj file holds the coordinate system. It cannot store raster data such as imagery.
Is an orthophoto or orthomosaic raster or vector?
An orthophoto, or orthomosaic, is raster data. It is an aerial image, or many images stitched together, that has been corrected so its scale is uniform like a map. Because it is made of pixels, each with a color value, it is usually stored as a GeoTIFF. Lines traced over it are vector data.
Is a DEM raster or vector?
A digital elevation model (DEM) is usually raster data. Each pixel stores a height value, so the grid forms a continuous surface of the terrain. However, elevation can also be stored as vector data, for example as contour lines or as a triangulated irregular network (TIN) built from points and triangles.
Is raster or vector data better?
Neither is better overall. Raster data is the better choice for imagery and for surfaces that change gradually, such as elevation or temperature. Vector data, on the other hand, is better for features with clear edges, such as roads, boundaries and pipelines. Therefore, most GIS and drone mapping projects use both together.
Is raster data continuous or discrete?
Raster data can be either. Continuous rasters hold values that change gradually from pixel to pixel, such as elevation, temperature or the colors in an aerial image. Discrete rasters, also called thematic rasters, hold categories instead, such as land cover or soil type, where each pixel belongs to one class.
Related reading
- DTM vs DSM explained: the two raster elevation models drone surveys produce, and when to use each.
- Digital elevation models explained: a closer look at the most common raster surface in mapping.
- 2D and 3D photogrammetry outputs: every output a drone survey can produce, for beginners.
- Introduction to geospatial technology: where raster and vector data fit in the wider field, for newcomers.
- The geospatial and GIS glossary: plain definitions of the other terms this guide uses.
Sources
- Esri. "Introduction to raster data." ArcGIS Pro documentation, read November 2026. https://doc.esri.com/en/arcgis-pro/latest/help/data/imagery/introduction-to-raster-data.html
- QGIS Project. "Raster Data." A Gentle Introduction to GIS, read November 2026. https://docs.qgis.org/latest/en/docs/gentle_gis_introduction/raster_data.html
- QGIS Project. "Vector Data." A Gentle Introduction to GIS, read November 2026. https://docs.qgis.org/latest/en/docs/gentle_gis_introduction/vector_data.html
- U.S. Geological Survey. "USGS EROS Archive: Landsat 8-9 OLI and TIRS." Read November 2026. https://www.usgs.gov/centers/eros/science/usgs-eros-archive-landsat-archives-landsat-8-9-operational-land-imager-and
- Lin, G. et al. "A Review on Sensor Spatial Resolution and a Discussion on Geometric Specifications." JACIE Workshop, NASA, March 2024. https://ntrs.nasa.gov/citations/20240003379
- Esri. "Geoprocessing considerations for shapefile output." ArcMap documentation, read November 2026. https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm
- Library of Congress. "ESRI Shapefile." Read November 2026. https://www.loc.gov/preservation/digital/formats/fdd/fdd000280.shtml
- Open Geospatial Consortium. "OGC Cloud Optimized GeoTIFF Standard." 2023. https://www.ogc.org/standards/ogc-cloud-optimized-geotiff/
- Open Geospatial Consortium. "GeoPackage Encoding Standard." Read November 2026. https://www.ogc.org/standard/geopackage/
- Internet Engineering Task Force. "The GeoJSON Format (RFC 7946)." August 2016. https://www.rfc-editor.org/info/rfc7946
- Esri. "World files for raster datasets." ArcGIS Pro documentation, read November 2026. https://doc.esri.com/en/arcgis-pro/latest/help/data/imagery/world-files-for-raster-datasets.html
- Birdi. "Export formats." Birdi help centre, read October 2026. https://help.birdi.io/en/articles/14492980
