
Because raster data represent square areas, they describe interiors rather than boundaries as is the case with vector data. These squares, also called pixels, cells, and grids, typically are of uniform size, and their size determines the detail that can be maintained in the dataset. Raster data, on the other hand, use a matrix of square areas to define where features are located. As such, vector data tend to define centers and edges of features.

Vector data use X and Y coordinates to define the locations of points, lines, and areas (polygons) that correspond to map features such as fire hydrants, trails, and parcels.

Raster and vector are two very different but common data formats used to store geospatial data.
