|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
DummyProgressListener | A dummy progress listener. |
GrassBinaryImageReader | ImageIO reader for the grass binary raster format. |
GrassBinaryImageWriter | |
GrassCoverageReader | Coverage Reader class for reading GRASS raster maps. |
GrassCoverageReadParam | Represents the read parameters in the geotools space, as opposed to GrassBinaryImageReadParam that are for the imageio space. |
GrassCoverageWriter | Coverage Writer class for writing GRASS raster maps. |
JGrassConstants | Constants used by the JGrass engine |
JGrassMapEnvironment | Represents the structure around a map inside a grass database. |
JGrassRegion | Represents the geographic region used in the jGrass engines. |
JGrassUtilities | A facade of often used methods by the JGrass engine |
In this package the I/O drivers for reading and writing GRASS raster maps are placed.
To better understand the code a good overview should be taken on the GRASS database-Location-Mapset structure, of which a short introduction is given below.
A typical grass map header looks like the following:
proj: 1
zone: 13
north: 4928000
south: 4914000
east: 609000
west: 590000
cols: 950
rows: 700
e-w resol: 20
n-s resol: 20
format: 0
compressed: 1
reclass
name: soils
mapset: PERMANENT
#1 5 3 8 .... ....
Colortables for GRASS 5 and greater are supported.
The format of the color file, which is located in location/mapset/colr/mapname is the following:
The first line is a % character and two numbers indicating the minimum and maximum data values which have colors. Note that in JGrass after the range values we add a third value for alpha support.
After the first line, the list of color rules appears, that can be of the following formats:
value1:r:g:b value2:r:g:b
interpolation of colors between
the two values with the two colorsvalue1:grey value2:grey
value1:r:g:b
assumption that it means that value1 ==
value2nv:r:g:b
novalues could also have color with such a rule.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |