Every GIS layer is stored in one of two basic ways. Vector data represents features as points, lines and polygons with exact coordinates. Raster data divides the area into a grid of cells and stores a value in each one. Knowing which is which explains why some maps look crisp and others look pixelated, why some files are huge, and which analysis each one suits.
Vector data: points, lines and polygons
Vector data describes discrete features with clear edges:
- Points: wells, bus stops, trees, addresses
- Lines: roads, rivers, pipes, transit routes
- Polygons: parcels, buildings, lakes, zoning districts, census tracts
Each feature has a row of attributes: a parcel's owner and zoning, a road's name and speed limit. Common formats are GeoPackage, shapefile, file geodatabase and GeoJSON.
Raster data: a grid of cells
Raster data describes continuous surfaces and images. Each cell (pixel) holds one value, such as elevation, temperature, a satellite band or a land cover class. The cell size, or resolution, sets the detail: a 1 m raster can show a driveway, a 30 m raster cannot. GeoTIFF, and its web-friendly Cloud Optimized GeoTIFF version, is the standard format.
Side by side
| Aspect | Vector | Raster |
|---|---|---|
| Best for | Features with clear edges | Continuous surfaces and imagery |
| Examples | Parcels, roads, buildings, boundaries | Elevation, satellite images, land cover, temperature |
| Precision | Exact coordinates | Limited by cell size |
| Attributes | Many fields per feature | Usually one value per cell |
| Typical analysis | Overlay, network routing, joins, counts | Map algebra, slope, terrain, image classification |
| File size | Small for most features | Grows fast with area and resolution |
Converting between them
Data often has to switch form. Rasterizing turns vectors into a grid, for example parcels into a cost surface. Vectorizing turns a raster into shapes, for example a classified land cover image into polygons. Both lose something: rasterizing turns smooth edges into steps and forces small features to a whole cell; vectorizing creates jagged outlines and many tiny slivers that need cleaning up. The cell size you choose controls how much is lost.
Which should you use?
- Use vector when features have legal or physical edges and you need their attributes: parcels, utilities, zoning, addresses.
- Use raster for things that vary continuously or come from sensors: terrain, imagery, heat, rainfall, vegetation.
- Use both for most real projects. A suitability analysis might score raster slope and land cover, then summarise the result by vector parcels.
Frequently asked questions
Is a satellite image raster or vector?
Raster. Each pixel stores the brightness measured in one or more bands of light.
Are web map tiles raster?
Traditionally yes, as pre-drawn images. Many modern web maps use vector tiles, which send the shapes and draw them in the browser.
Why does my raster look blocky when I zoom in?
You've reached its cell size. Zooming can't add detail that the data doesn't contain.
Working with mixed GIS data?
We'll get your data into shape for the job.
From geodatabase design to raster analysis, we make data that works together.
