Vector Data: Geometry of the Real World

What is Vector Data?

A Vector data feature it represents shape using Geometry. The geometry is made up of one or more interconnected vertices. A vertex describes a position in space using an X, Y and optionally Z axis. Geometries which have vertices with a Z axis are often referred to as 3D since they describe height or depth at each vertex, but not both.

Vector Database is simply XY coordinates. Generally, they are a Latitude and Longitude value. The Vector data represents are points, lines, and polygons.

  • A series of x,y coordinates
  • For discrete data represented as points, lines, polygons

Vector data is a powerful way to represent real-world objects within a GIS. If you are standing on a hill, the buildings, trees, rivers, and roads that you see below can each be modeled as vector features within a GIS. These features are more than just their shape; they also contain other information, referred to as attributes, which can be words or numbers that characterize the feature.

vector features within a GIS

Vector Analysis Examples:

  • Buffering: Create zones around points/lines (e.g., schools within 1 km of a road)
  • Overlay: Intersect forests with administrative boundaries
  • Network Analysis: Shortest path, service area (fire station coverage)

How Geometry Explains Vector Attributes

All vector features are of a shape, and the shape is defined by one or more points. A point is a location with X and Y coordinates, sometimes Z (depth or height), so the feature is 2.5 D when Z is present.

Point

A single dot. Convenient for representing features such as trees, poles, or even cities (on small maps).

Polyline

Two or more vertices linked that do not form a loop, utilized for linear features such as roads and rivers.

Polygon

A shape where the first and last points are the same. It is utilized to depict areas like buildings or lakes. Each geometry can store attributes: like the name of a city or the length of a road.

Think of vector like your school drawing — sharp, clear shapes with labels.

Choosing the right Geometry Type

The choice of geometry generally depends on scale and usage. A city could be represented as a point on a small map, but as a polygon on a large map. More small objects, like light poles, are better represented as points, but roads or rivers are better represented with polylines.

Vector Geometry Type

Points and coordinate systems

All point features are based on a Coordinate Reference System (CRS) in order to position it on the Earth’s surface. The most common CRS uses Latitude and Longitude, where Latitude denotes the north-south position and Longitude the east-west. By adding a Z value (height), we can now define the height of features such as hills or buildings.

Polyline Data

Polylines are especially well designed to depict networks or continuous features such as roads, rivers, or contour lines. These are created by linking several vertices. Yet, if the vertices get too far apart, curved features become ragged. Therefore, when digitizing polylines, vertices must be positioned close enough to depict them accurately at the intended map scale.

Polygon Data

Polygon features include enclosed areas like dams, islands, national boundaries etc. Like polyline features, polygons are defined by a list of vertices enclosed by a continuous line. But because a polygon is always defining an enclosed area, the first and last vertices will always be in the same location! Polygons have shared geometry –– boundaries they share adjoining polygon. A polygon can also possess attributes. Attributes characterize a polygon. For example, a dam can possess attributes to describe depth and water quality.

Vector File Formats

  • .shp (Shapefile) – still widely used
  • .geojson – perfect for web maps
  • .kml – used in Google Earth
  • .gml – XML-based, for data exchange
File FormatsFull Form
E00Arc Export
COVERAGEArc/INFO Coverage
CGMComputer Graphics Metafile
DWGAutoCAD Drawing file
DXFData Interchange File
HPGLHewlett Packard Graphic Language
GDBGeodatabase
MDBPersonal Geodatabase
MIF/MIDMapinfo Data Transfer Files
SVGScalable Vector Graphics
ODGOpenDocument Graphics
DGNMicroStation Design File
SDTSSpatial Data Transfer System
TIGERTopological Integrated Geographic Encoding and Referencing
SHPShapefile
VPFVector Product Format
VMLVector Markup Language
CDRCorelDRAW
HVIFHaiku Vector Icon Format
AMFAdditive Manufacturing File Format

Why Use Vector Data?

  • Compact storage of data
  • High level of detail and precision
  • Scalable for high-resolution output
  • Ideal for detailed analysis

Aside from basic visualization, vector data can be used to perform spatial analysis — asking and answering complex questions like:

What are the houses in the flood-risk area?

Where would a hospital be ideally located to reach most people effectively?

Which pupils live in a specific suburb?

These kinds of queries demonstrate the analytical power of GIS.

The Role of Scale in Vector Data

Scale is also crucial in the case of approximating vector features. Map information on a small scale can be insufficient for local detailed planning. For instance, in detailed planning of a wetland reserve, coarse-scale information used might not include important components of the ecosystem. Always ensure the data scale is compatible with application needs.

Challenges and Common Mistakes

Working with vector data is not without challenges. Precision relies on accurate data gathering. There are chances of errors with poor instruments, human error, or insufficient detail in digitizing. Geometric errors more frequently encountered are:

Overshoots:  Lines that go beyond where they meet.

Undershoots:  Lines that do not intersect where they are supposed to. These types of errors can interfere with analysis and should be corrected during the process of topology validation, which we will elaborate on later.

Converting Vector to Raster: From Shapes to Grids

Sometimes in GIS, we need to change the way we store and use data—especially when working with models that need a grid-like format. That’s where vector to raster conversion comes in.

Vector data is great for showing exact locations and shapes. But when you’re running certain types of analysis—like modeling water flow, analyzing land use patterns, or overlaying layers—it’s often easier to use Raster data, where the world is divided into a grid and each cell has a value.

Converting Vector to Raster

Why Convert to Raster?

Let’s say you have a land use map made of polygons showing forests, farms, and urban areas. Converting that into a raster means every small square (pixel) on the map will hold a value like “forest” or “urban.” This makes it much easier for a computer to process in things like environmental or surface modeling.

A few examples:

  • In environmental studies, converting land cover to raster helps with tasks like calculating water runoff.
  • In urban analysis, it can help show population density or access to services more clearly.

How Does the Conversion Work?

How Vector Conversion Work

Vector conversion in QGIS

Step: 1Load the Sentinel-2 Image

Open QGIS, Go to Layer > Add Layer > Add Raster Layer.

Load bands 4 (red), 3 (green), and 2 (blue).

Use the “Built Virtual Raster” tool to combine them.

Step: 2Zoom into Your Area of Interest

Pick a small, clearly visible feature like a lake, forest patch, or built-up area.

Zoom in enough so you can easily trace its shape.

Step: 3Create a New Vector Layer

Go to Layer > Create Layer > New Shapefile Layer.

Choose the geometry type (Polygon, for example).

Set the coordinate reference system (match it to your raster, e.g., EPSG: 32643 for Sentinel-2 in India).

Add an attribute (e.g., “Feature Type”).

Step: 4Start Digitizing (Vectorization)

Right-click on the new shapefile > Toggle Editing.

Click the Add Polygon Feature tool.

Carefully trace the feature (click to add vertices, right-click to finish).

In the pop-up, enter a name or label (e.g., “Water Bodies”).

Pro Tip: You can digitize multiple features (e.g., multiple patches of urban area, forest) and give each a separate label in the attribute table.

Step: 5Save Your Work

Click Toggle Editing again and choose Save Changes. You now have a vector layer extracted manually from your Sentinel-2 raster!

Here you can see a side-by-side comparison of the original raster image and the digitized vector version.

Vector Data vs Raster Data

Raster DataVector Data
Advantages
Easy and efficient overlaying.
Compatible with remote sensing imagery.
Efficient to represents continuous data.
Simple data structure.
Smaller file size
Editing is very Easy.
Proper identity for discrete objects, like point, line or polygon.
Efficient Topological relationship.
Accurate projection transformation.
Disadvantages
Difficult overlay operations.
Not Compatible with remote sensing imagery.
That is Not proper represents continuous data.
Complex data structure.
Larger file size.
Difficult to edit.
It’s a pixel series, so not accurate identity the objects.
Did not build Topological relationship.
Inefficient projection transformation.
Vector Data vs Raster Data - Geometry of the Real World

Tools You’ll Use:

ToolRaster or Vector?Purpose
QGISBothEditing, visualizing, converting
Google Earth EngineRasterCloud-based analysis
PostGISVectorDatabase analysis
SNAPRasterRemote sensing
GDALBothFormat conversions

When to Use What?

SituationUse Vector If…Use Raster If…
Land records?✔ Precise boundaries❌  Not needed
Forest fire detection?❌  Not exact shapes✔ Satellite image analysis
Route planning?✔ Network of roads❌  Overkill
Crop health monitoring?✔ NDVI from satellite imagery

Advantages of Vector Models

For the purpose of depicting linear lines and feature boundaries, vector models are the clear best choice.

First, the visual model tends to be far more aesthetically pleasing, especially considering the fact that raster models can actually look very pixelated if resized.

Vector objects like points, lines, and polygons, however, may be enlarged or minimized without sacrificing quality.

Second, if several data fields and attributes must be accommodated, vector models are once more the best choice, as vector data points may hold an enormously high number of attributes as required.

Vector Data’s Contribution to City Planning and Management:

The most important use of vector data is in urban management and planning.

Cities and municipalities rely on vector data to generate high-resolution maps indicating property lines, zoning districts, and infrastructure networks. To illustrate, when they redevelop an overpopulated downtown site, planners employ vector-based GIS to delineate current buildings (as polygons), road networks (as lines), and public facilities such as parks and fountains (as points).

The level of detail presented allows for effective land use, infrastructure, and resource allocation planning. By analyzing vector data, urban planners are able to predict traffic flow impact of new constructions, compute the need for more public facilities, and maximize compliance with sustainable development principles.

Scroll to Top