Point, Line, Polygon, and Raster Explained
Points, lines, polygons and rasters are different ways of modelling geographic phenomena, each preserving different kinds of spatial information.
Serve as the canonical introductory guide to the four basic GIS data models and define the boundaries delegated to the cluster's supporting articles.
Point, Line, Polygon, and Raster Explained
GIS represents the world through simplified data models. Points represent locations, lines represent paths or linear features, polygons represent bounded areas, and rasters represent space as a grid of cells. None of these is the phenomenon itself. Each is a model chosen because it preserves the parts of the phenomenon that matter for a particular task.
A hospital can be stored as a point when its address or entrance is sufficient, as a polygon when the building footprint matters, or as one or more raster cells in imagery. A river can be a line for network tracing, a polygon when channel width or flood extent matters, and part of a raster when modelling elevation or flow. The same place can therefore appear in several legitimate forms without any of them being universally "more correct".
The useful question is: what must this dataset allow you to know or calculate?
Points represent discrete locations
A point stores one coordinate position. It is the simplest vector geometry and is appropriate when the feature's location matters more than its physical extent at the working scale.
Common examples include wells, bus stops, sensors, incident locations, city reference points and sampling sites. Points are compact, easy to count, and well suited to proximity analysis, nearest-neighbour searches and network origins or destinations.
Using a point does not mean the real object has no size. It means that its size is not being represented. A hospital shown as a point may occupy an entire block; the model says that one representative location is sufficient for the current question.
That distinction becomes important when the representative location itself has meaning. A building centroid, front entrance and geocoded street address may all produce different distances even though they refer to the same facility. How Do You Choose Between Points and Polygons? deals with that decision directly.
Lines represent paths and linear relationships
A line is an ordered sequence of coordinates. Roads, rivers, pipelines, routes, coastlines and administrative boundaries are commonly represented as lines.
Lines support measurements such as length and operations that depend on connectivity. In a road network, for example, it is not enough for two segments to look as though they meet. Their endpoints must connect correctly if routing is expected to pass from one segment to the next.
A line usually does not encode width. A road centreline and a road-surface polygon are therefore different models of the same infrastructure. The centreline is suitable for routing and reference; the polygon is more appropriate when land occupation, setback or surface area matters.
Direction can matter as well. A river line may be stored from upstream to downstream, and a one-way road network may attach directional rules to otherwise ordinary line geometry.
Polygons represent bounded areas
A polygon encloses an area. Administrative units, parcels, lakes, protected areas, building footprints and land-cover zones are typical examples.
Polygons make area, containment and boundary-based relationships explicit. They let you ask which points fall inside a district, how much forest lies within a protected area, or where two zones overlap.
The boundary carries meaning, however, and that meaning depends on the dataset. A "city" polygon might represent a legal municipality, a continuously built-up area or a metropolitan labour market. These can occupy different extents even though they share the same name.
Polygons can also be multipart, contain holes, or become invalid when their rings intersect or are structured incorrectly. Those questions belong to narrower guides such as Polygon vs MultiPolygon and the Topology & Validity cluster.
Rasters represent space as cells
A raster divides a geographic extent into a regular grid. Each cell stores a value or set of values. Elevation models, satellite imagery, temperature surfaces, rainfall estimates and classified land cover are commonly stored as rasters.
The model is especially natural for phenomena that vary continuously across space. Elevation does not exist only at a set of isolated points; every location has some elevation. A raster approximates that surface at a chosen cell size.
Raster resolution describes the dimensions of those cells. Although a smaller cell can represent finer spatial variation, it does not automatically make the underlying observation more accurate: a one-metre raster generated from uncertain input data can still be less reliable than a coarser dataset measured carefully.
Rasters can also represent discrete classes. A land-cover raster might assign each cell a category such as forest, water or built-up area. The grid remains continuous even though the values are categorical.
Vector and raster answer different questions
Points, lines and polygons are vector geometries: they describe objects using coordinates and ordered structures. Rasters describe a field or image using cells.
The distinction is not simply "objects versus pixels". Discrete phenomena can be rasterised, and continuous phenomena can be sampled into vector points. The important difference is what each representation makes explicit.
A polygon preserves a boundary as a geometric object, whereas a raster preserves values over a grid. Likewise, a road line preserves connectivity along a centreline, while a set of traffic-density raster cells represents the same road system through a very different analytical support.
This means the representation can change the operations that make sense. Counting polygon features is not the same as counting raster cells. Measuring a vector boundary is different from estimating perimeter from a cell grid. A raster surface can support map algebra naturally, while vector features retain individual identities and attributes more directly.
Scale can change the appropriate model
A feature can change geometry type when the working scale changes.
A building may be a polygon in a neighbourhood map and a point in a national facility inventory. A river may need a polygon at local scale but only a line on a continental reference map. A city can be a point on a world map and a polygon in an urban land-use analysis.
This is not necessarily an inconsistency; it reflects generalisation, or the decision about which properties remain meaningful at a given scale.
Problems arise when the simplified representation is later used for an operation it was never intended to support. A city reference point is not a substitute for a municipal boundary when calculating population density. A road centreline is not enough to determine the land area occupied by a highway corridor.
Converting between models changes information
GIS tools can convert between points, lines, polygons and rasters, but conversion is not neutral.
Turning a polygon into a centroid discards its shape and extent. Rasterising a narrow line assigns it to cells whose size may widen, fragment or even omit parts of the feature. Vectorising a classified raster constructs boundaries from cell patterns and can create stair-stepped edges or many small polygons.
A conversion therefore creates a derived representation. It may be exactly what an analysis needs, but it should not be confused with newly observed detail.
When the original geometry remains valuable, keep it and record how the derived form was created.
Choose the model from the analytical unit
A reliable choice begins by defining what one feature or cell is meant to represent.
Ask:
Is the phenomenon discrete or continuous?
Does its physical extent matter?
Does its boundary matter?
Is connectivity important?
Do individual entities need stable identities and attributes?
What measurements or relationships must the analysis support?
At what scale will the data be used?
What uncertainty does the representation hide or simplify?
Those questions usually lead to the correct model more reliably than the file format you happened to receive.
The model is part of the geographic claim
A GIS dataset is not simply a collection of coordinates. Its geometry model states what counts as an object, what counts as extent and which relationships are available for analysis.
Choosing points, lines, polygons or rasters therefore determines part of what the resulting map can say. The same phenomenon may legitimately require several models across one workflow. The important discipline is to keep the analytical unit explicit and avoid treating a convenient representation as though it were the phenomenon itself.
Related content
How Do You Choose Between Points and Polygons? — choosing between location and extent
Polygon vs MultiPolygon — polygon structure
Multipart Features vs Multiple Features — geometry parts versus feature identity