12

I have a question about GIS terminology - what is the difference between grid and raster and grid and lattice - in theory??

I thought, that raster is regular network and value is in the cell and the grid have its value in node. In this case I don´t understand what meaning have a lattice? Is the same as a grid?

Or grid is raster with value in one of the corner??

What is more confusing are some pictures, which describes difference between grid and lattice - http://www.geog.ubc.ca/courses/geob370/notes/interpolation/grid_vs_lattice.png or http://www.innovativegis.com/basis/mapanalysis/Topic18/Topic18_files/image005.jpg

In case of MATLAB example: http://www.mathworks.com/help/releases/R2013b/matlab/ref/meshgrid_ex.gif grid looks like lattice!

1
  • Regarding pictures attached, I would ask what is the difference between various data types (ie. continous, categorized) rather then ask about container that carries the data.
    – Tomek
    Commented Jan 23, 2014 at 14:25

1 Answer 1

11

The problem is that the names sometimes change depending on the software. Below you find the definitions from ESRI.

RASTER = A spatial data model that defines space as an array of equally sized cells arranged in rows and columns, and composed of single or multiple bands. Each cell contains an attribute value and location coordinates. Unlike a vector structure, which stores coordinates explicitly, raster coordinates are contained in the ordering of the matrix. Groups of cells that share the same value represent the same type of geographic feature.

-> In other words, it is a grid of pixels (used for most of the "field" represention).

LATTICE = A representation of a surface using an array of regularly spaced sample points (mesh points) that are referenced to a common origin and have a constant sampling distance in the x and y directions. Each mesh point contains the z-value at that location, which is referenced to a common base z-value, such as sea level. Z-values for locations between lattice mesh points can be approximated by interpolation based on neighboring mesh points.

-> In other words, it is a grid of points (often used for LIDAR data).

note that GRID is also the native raster format of ESRI. And rasters are called GRID in QGIS.

In any case, they are all based on array of regularly spaced items, so there representation is very similar. The big difference is that raster is of "matrix" type while lattice is of "vector" type.

To generalize a little bit, within Matlab, the container is always of matrix type. And a vector in Matlab is only a subtype of matrix, while in GIS it means something completely different ("vector is something you can draw with a pen").

Concerning the location of the value, for points it is obvious, and for raster it is either at the center of the cell or defined for the entire cell. BUT the extent definition may vary depending on the software (again). The upper left coordinate is sometimes the upper left of the pixel, and sometimes the center of the pixel: this can cause shifts of 1/2 pixels if you are not aware.

2
  • 3
    +1. However, the interpretation of raster values is not as clear cut as suggested in the last paragraph. The cells of rasters representing images typically do contain the average or total values of illumination within the corresponding pixel. However, many rasters are computed by interpolating or spreading data across the map (as in kriging or density calculations), and in these the values almost always represent the interpolated value at the exact center of each cell rather than an average or total over each cell. Land cover values often are majority values in each cell.
    – whuber
    Commented Jan 23, 2014 at 20:19
  • 1
    you are right, I've edited my answer.
    – radouxju
    Commented Jan 23, 2014 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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