![]() |
RiskWare On-line Reference Manual
|
![]() GIS data importGISfilter4, Nodatafilter4, and Cellfilter4 Input and StructuresThis document describes the data structures used in XENVIS and the procedures to add, update, or remove these data sets.Vector MapsFor importing vector data, gisfilter4 converts GRASS coverages into ESS internal formats. gisfilter4 automatically generates new overlays for XENVIS's GIS from Arc/Info export or GRASS output files. The filter will create an entry into the overlay selector, display and extend the legend upon selection, provide for automatic zooming, and access to the overlay editor, etc. The command to filter the data is gisfilter4 config_file (see the description below of the config\file). If no error message occurs, a new overlay will be created in the directory specified in the config_file. To include this new overlay into the AirWareGIS, the file ./defaults/nonlayout has to be edited. To add an overlay to the general GIS,
The config_fileThe config_file should contain the following lines, in the given order (please note that lines starting with a # are ignored and can therefore be used for comments):
The lines xtrafile, mapset and dirpath are restricted to 100 characters, resdirpath to 20 characters. The line with the overlay name can theoretically have up to 100 characters, but considering the limited space available for display in XENVIS's GIS, not more than 26 characters should be used. Thresh expects a float, and the map names can have any length, as their space is allocated dynamically. This is an example of a working config_file for vector data: # # CIA River # # xtra file ../xtra/cia_river # GRASS Mapset or Arc/Info workspace /p/aca/AirWare/maps/ # Output Directory ../cia_riv_hi # Output Sub directory for High resolution HiRes # Name to be displayed in GIS selector Rivers, CIA Database II # Threshold 0.0 # Type 0 # Nonactive Fit 1 # Map tiles criv_afr criv_asi The xtrafileThe xtrafile has 3 main parts:
Lines starting with a # are ignored and can therefore be used for comments, but no comment should occur between curly brackets { and }. Each (color, property, or attribute) specification must start with its respective keyword (COLOR, PROPERTY, ATTRIBUTE) and contains { and }, where } must be in the first column of a line (see syntax and example below). Each color specification consists of 3 lines, where the floats red, green and blue range between 0.0 and 1.0.
COLOR <(integer) color_number> {
<(float) red> <(float) green> <(float) blue>
}
An example to define the color ORANGE:
COLOR 140 {
1.0 0.7 0.0
}
Each property specification consists of 4 lines, where all text strings can have up to 32 characters, except data, which can have up to 80 characters:
PROPERTY <(integer) property_number> `<(text string) property_name>' {
datatype `<(text string) type>'
data `<(text string) data>'
}
An example to define the legend entry Roads:
PROPERTY 225 `roads' { datatype `legend_entry' data `Roads' } An attribute specification can only relate to attributes, colors and properties earlier defined. Styler (for setting the graphics context) and modifier (for non standard drawing) used should already be defined in the styler and the modifier function of the application. All text strings can have up to 32 characters:
ATTRIBUTE <(integer) attribute_number> `<(text string) attribute_name>' {
[property <(integer) number> `<(text string) name>']
...
[property <(integer) number> `<(text string) name>']
[attribute <(integer) number> `<(text string) name>']
...
[attribute <(integer) number> `<(text string) name>']
[color <(integer) number>]
[style <(integer) number>]
[modify <(integer) number>]
}
As an example we relate legend entry Roads (=225), color ORANGE (=140),
style 0 (default: plain line) and modifier 1 (line width gets bigger with
zooming in) to attribute 1 (corresponds to items labeled 1 in coverage):
ATTRIBUTE 1 `roads' {
property 225 `Legend Roads'
color 140
style 0
modify 1
}
A number of examples can be found
in the directory ./data/maps/xtra on the distribution tape.
NoData Overlaysnodatafilter4 will create an overlay without topological data. The corresponding config_file should be in the following format:
Cell GridsDigital Elevation Models, satellite images, and other information in a raster format are provided in a cell grid format as input for AirWare. To import these data, a filter cellfilter4 converts the band interleaved by line (BIL) format into the data representation used in the XENVIS system (a description of the filter is given below). BIL is standard raster format used by GRASS. ArcInfo allows you to export to BIL format.The command to filter the data is cellfilter4 config_file (see below the description of the corresponding config_file). If no error message occurs, a new overlay should be created in the directory specified in the config_file. To include this new overlay into the AirWare GIS, the file ./defaults/nonlayout has to be edited. To add an overlay to the general GIS, increase *general.n_maps: entry in ./defaults/nonlayout by 1 (eg. from 14 to 15) and add the name of the new overlay to the list *general.map15: newmap. The config_fileThe config_file should contain the following lines, in the given order (please note that lines starting with a # are ignored and can therefore be used for comments):
# xtrafile XtraFile=../xtra/etopo5 # cell file directory InputDir=/p/aca/gis1/XENVIS/bil # cell file CellFName=etopo5.bil # main output path OutputPath=../etopo5 # name of overlay OvName=overlay # item name in the overlay structure OvItemName=Hypsography # type number of the overlay OvType=0 # non_active_fit NonActiveFit=0 # name of output data file OutputDataFile=etopo5 # output cell path OutputCellPath=HiRes # cell type CellType=short # number of rows Rows=1415 # number of cols Cols=1886 # x-origin in map coordinates XMin=-7698399.5 # y-origin in map coordinates YMin=-6012901 # width of map Width=17495897.674 # height of map Height=13126560.866 # swap y coordinates (y/n) SwapY=n NoData=10000 xtrafileThe xtrafile for vector maps and cell grids follows the same structure.Changing Overlay Resolutions When ZoomingFor the fastest possible drawing of overlays, you may filter overlays into different resdirpath or OutputCellPath. The file scale2res must be placed in the OutputPath. scale2res acts as a switch from one resolution to another. For example, ./data/maps/general/etopo5/scale2res looks like this:# min scale - max scale - resolution directory #========== - ========= - ==================== 1.0 : 1 - 4.0 : 1 - LowRes 4.0 : 1 - 300.0 : 1 - HiResThe numbers on the left of 1 are the zoom factors. In this example, when you zoom into an area that does not exceed a zoom factor of four (i.e., the max scale of 4.0 : 1 the overlay in the LowRes directory will be drawn. As soon as you zoom into an area more than a zoom factor of four (that is, larger than max scale) the overlays will be switched and the one in HiRes will be drawn. There is no limit to the number of resolutions you may have and you may edit the scales as you wish.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() © Copyright 1995-2012 by: ESS Environmental Software and Services GmbH AUSTRIA | print page | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||