![]() Vector and Raster RepresentationAlthough the Spring process data in the raster and vector format, sometimes it is required to convert data from one format to another because some operation can only by applied in an specific format. To use a thematic information layer in a geographic analysis, that is, a fields algebra for example, it is required that the IL is represented in the raster format or raster or even a Thematic Image. Therefore it has to execute a Conversion Vector-Raster. In other cases it is required to make a Conversion Raster-Vector. For example, when it is desirable to change a class or edit lines from a polygon present in an IL that has just a thematic image, resulting from satellite image classification. Vector and raster representations were designed for different data models, but the Conversion between raster and vector implemented in the Spring depends on the data model being considered.
Vector RepresentationAn object vector representation is a way to represent the object as close as possible from the real object, trying to define precisely all the positions, lengths and dimensions of the geographic entities. This format is, in general, a result from the maps digitization. It consists, normally, of lists with 2D coordinates limiting thematic regions, or representing networks that can have associated to it a third measure. Examples: vegetation cover map format and terrain elevation map format (contour lines). The vector representation uses the following basic elements:
These elements are better defined in Vector Data Editing. In the Spring the categories, from different data models, that can have representations in the vector format are presented in the table below:
Raster RepresentationThe raster or raster format is defined as a set of cells located in sequential coordinates, implemented in a 2D matrix. Each cell, also called image element, matrix element or pixel, is referenced by row and column indexes and has a number representing the type or value of the mapped attribute. These matrix values can be limited in a certain numerical interval, as an example the 0 to 255 interval for 8 bits images, or numbers associated to classes in the thematic image case, or even real values obtained through mathematical interpolation in numerical modeling analysis. The satellite image acquisition mechanics, such as the Landsat and Spot, allow that the image are captured in the raster format and stored in the digital format. Lately, in a laboratory, these digital images can be processed and printed in photographic paper. The opposite process happens with analogical photographic images, obtained by aerophotogrammetric methods, that can be discretized using scanners and stored in the digital format. The raster (or raster) and vector representations are not exactly equivalent for the same data. Normally there is a lost of precision when converting from the vector format to the raster format, because continuous boundaries are discretized according to the output image resolution. This lost can be compensated because the geographic analysis operations are more efficient in the raster domain. The vector representation is the most adequate to identify objects, individualized in the terrain, where precision is required. The raster representation is more adequate to phenomena and measures that continuously change in space.
In the Spring only the thematic maps, as an example, soil map, vegetation, geology, etc.., can be represented using either the vector or the raster representation. Considering that the vector is the closest representation of the entities mapped, in order to get the required precision in the raster, mainly in analysis process, the used resolution has to be smaller than the scale precision in a given project. However the smaller the resolution, the larger the disk space required to store the thematic image.
![]() |