Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:


vector data model: [data models] A representation of the world using points, lines, and polygons. Vector models are useful for storing data that has discrete boundaries, such as country borders, land parcels, and streets.

raster data model: [data models] A representation of the world as a surface divided into a regular grid of cells. Raster models are useful for storing data that varies continuously, as in an aerial photograph, a satellite image, a surface of chemical concentrations, or an elevation surface.

All I have understood from the above is that both vector and raster data constitute of "latitudes and longitudes", only. The difference is in the way they are displayed.

Latitudes and Longitudes in Vector data are displayed in the form of lines, points, etc.

Latitudes and Longitudes in Raster data are displayed in the form of closed shapes where each pixel has a particular latitude and longitude associated with it.

Is my understanding correct?

share|improve this question

marked as duplicate by RyanDalton, Devdatta Tengshe, Aaron, whuber Apr 4 '13 at 14:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

you can find your answer in : see [What are Raster and Vector data in GIS and when to use?][1] [1]:… – wetland Apr 4 '13 at 13:26
@wetland that thread did not show up in "similar threads". Thanks, I'll look it up. – TheIndependentAquarius Apr 4 '13 at 13:28
up vote 10 down vote accepted

In GIS, vector and raster are two different ways of representing spatial data. However, the distinction between vector and raster data types is not unique to GIS: here is an example from the graphic design world which might be clearer.

Raster data is made up of pixels (or cells), and each pixel has an associated value. Simplifying slightly, a digital photograph is an example of a raster dataset where each pixel value corresponds to a particular colour. In GIS, the pixel values may represent elevation above sea level, or chemical concentrations, or rainfall etc. The key point is that all of this data is represented as a grid of (usually square) cells. The difference between a digital elevation model (DEM) in GIS and a digital photograph is that the DEM includes additional information describing where the edges of the image are located in the real world, together with how big each cell is on the ground. This means that your GIS can position your raster images (DEM, hillshade, slope map etc.) correctly relative to one another, and this allows you to build up your map.

Vector data consists of individual points, which (for 2D data) are stored as pairs of (x, y) co-ordinates. The points may be joined in a particular order to create lines, or joined into closed rings to create polygons, but all vector data fundamentally consists of lists of co-ordinates that define vertices, together with rules to determine whether and how those vertices are joined.

Note that whereas raster data consists of an array of regularly spaced cells, the points in a vector dataset need not be regularly spaced.

In many cases, both vector and raster representations of the same data are possible:

enter image description here

At this scale, there is very little difference between the vector representation and the "fine" (small pixel size) raster representation. However, if you zoomed in closely, you'd see the polygon edges of the fine raster would start to become pixelated, whereas the vector representation would remain crisp. In the "coarse" raster the pixelation is already clearly visible, even at this scale.

Vector and raster datasets have different strengths and weaknesses, some of which are described in the thread linked to by @wetland. When performing GIS analysis, it's important to think about the most appropriate data format for your needs. In particular, careful use of raster algebra can often produce results much, much faster than the equivalent vector workflow.

share|improve this answer
Upvoted for the diagram alone! – Devdatta Tengshe Apr 4 '13 at 14:38
Yours is an answer which can be easily understood by a layman. Thankful to you. – TheIndependentAquarius Apr 11 '13 at 10:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.