MapInfo
Description
Provides information about a map raster.
A map raster is a lattice of evenly spaced data points (the spacing is defined as 1):
(0|0) O---O---O---O---O | | | | | O---O---O---O---O O := data point | | | | | w := raster width (here: 4) O---O---O---O---O h := raster height (here: 3) | | | | | O---O---O---O---O (w|h)
The raster width resp. height always refers to the edge length of the map (in spacing units), regardless of the Coverage semantic of the underlying dataset; which can be a geocoded image (see IImage), a heightmap (see IHeightmap) or a pyramid (see IPyramid).
The raster size may differ from the number of dataset samples along each axis: A dataset with countX
resp. countY
samples along the X-axis resp. Y-axis will have these raster dimensions:
-
PixelCoverage.PixelIsArea:
The raster width will becountX
and the raster height will becountY
. A dataset sample identified by the coordinates(x,y)
represents a unit square in raster space, covering the area(x,y)
to(x+1,y+1)
. -
PixelCoverage.PixelIsPoint:
The raster width will becountX-1
and the raster height will becountY-1
. A dataset sample identified by the coordinates(x,y)
represents a point in raster space at(x,y)
.
The minimum resp. maximum raster size for a map is MappingUtil.MinSize resp. MappingUtil.MaxSize.
Map rasters can be rectangular or cubic (see MapType).
(0|0) (w|0) (s|0) +-------------+-----+ Y- | | | | | | | | | | | X- ---O--- X+ | | | | | | | | (0|h) +-------------+ | Y+ | (w|h) | | | w := raster width | | h := raster height +-------------------+ s := internal raster size (power of two) (0|s) (s|s)
The raster width w
and height h
of rectangular maps can have arbitrary values. The internal size s
however is always a power of two and is greater than or equal to both w
and h
.
(0|0|s) (s|0|s) +-------------+ Y- | / Z+ /| /| | / / | / | |/ (0|0|0)/ | (s|0|0)/ | X- ----O---- X+ +-------------+ | /| | | | | / | | +---------|---+ Z- / | Y+ | /(0|s|s) | /(s|s|s) | / | / s := cubemap raster size (power of two) |/ |/ w := s +-------------+ h := s (0|s|0) (s|s|0)
The raster size s
of a cubemap is always a power of two, and the raster width w
and raster height h
are equal to s
.
Public / Attributes
Coverage
The pixel coverage semantic of the underlying dataset.
For PixelCoverage.PixelIsPoint, dataset coordinates and raster coordinates are equivalent.
For PixelCoverage.PixelIsArea, the following relationship between dataset coordinates and raster coordinates exists:
raster = dataset + 0.5 dataset = raster - 0.5
where dataset
resp. raster
is a component of the dataset coordinates resp. raster coordinates.