GIS1 File Formats

From $1

Table of contents
No headers

 

At initial stage GIS reads global data from a XML-file which name is pased to OutOfCoreGIS constructor. This file has the following format:

<?xml version="1.0" encoding="utf-8"?>
<TerrainSettings>
<PlanetRadius>#.#</PlanetRadius>
<CoType>WGS84</CoType>
<MinHeight>#.#</MinHeight>
<MaxHeight>#.#</MaxHeight>
<MinHC>#.#</MinHC>
<MaxHC>#.#</MaxHC>
  <MinVC>#.#</MinVC>
<MaxVC>#.#</MaxVC>
<UnitQuadExtRatio>#</UnitQuadExtRatio>
<PreloadRadius>#</PreloadRadius>
<RepositoryXml>filename.xml</RepositoryXml>
</TerrainSettings>

Parameters have the following meaning:

PlanetRadius

Planet radius in metres

CoType

Type of co-ordinate system of input datas. Values «FLAT» - plane co-ordinate system and «WGS84» - geographical co-ordinate system will be recognised. Now the plane co-ordinate system is not supported

MinHeight

The minimum elevation for a planet, in metres

MaxHeight

The maximum elevation for a planet, in metres

MinHC

Range of values of co-ordinates in input datas

MaxHC

MinVC

MaxVC

UnitQuadExtRatio

The linear ratio of a unit of measure and the size of GIS quad.

PreloadRadius

Width of rectangular "ring" of quads, for preload system

RepositoryXml

Name of file with description of a repository of input datas


The repository description file has the following format:

<?xml version="1.0" encoding="utf-8"?>

<Repository>

<Mapping>

<WorldPoint X="#.#" Z="#.#"/>

<GISPoint Long="#.#" Lat="#.#"/>

</Mapping>

<Heightmaps>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">hmap_filename1.ext</file>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">hmap_filename2.ext</file>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">hmap_filename3.ext</file>

<!-- ... etc ... -->

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">hmap_filenameN.ext</file>

</Heightmaps>

<Textures>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">tex_filename1.ext</file>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">tex_filename2.ext</file>

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">tex_filename3.ext</file>

<!-- ... etc ... -->

<file minLong="#.#" maxLong="#.#" minLat="#.#"maxLat="#.#">tex_filenameN.ext</file>

</Textures>

<CoverGen>cg_filename.xml</CoverGen>

<Marking>mk_filename.xml</Marking>

<Shapemapping>sm_filename.xml</Shapemapping>

<Tuning>

<OptionName1>value_1</OptionName1>

<OptionName2>value_2</OptionName2>

<OptionName3>value_3</OptionName3>

<!-- ... etc ... -->

<OptionNameK>value_K</OptionNameK>

</Tuning>

</Repository>

Blue color selects optional nodes of the xml-document. Remaining knots are mandatory and should follow in a specified order.

Section of Mapping controls mapping between the world co-ordinate system and the GIS co-ordinate system. The point with co-ordinates (X, Z) specified in appropriate attributes of WorldPoint node is mapped to a point (Long, Lat) in the GIS co-ordinate system, set by attributes of GISPoint node.

The Heightmaps section contains the enumeration of elevation maps used for generation of cache of GIS geometrical data. It consists of an arbitrary gang of nodes like this: <file minLong = "#. #" maxLong = "#. #" minLat = "#. #" maxLat = "#. #"> hmap_filename.ext </file>, thus attributes minLong, maxLong, minLat, maxLat define a binding of a raster with a elevation map to a rectangle in GIS co-ordinate system and the file with the specified name is used as a source of raster data. It is most recommended to use files in GeoTiff format, containing 32-bit float point values.

Similarly, the Textures section contains the enumeration of the textures used for generation of cache of GIS textural data. The section format completely coincides with a format of Heightmaps section. The recommended type of raster files are files with the JPEG- or PNG-compressed images.

Optional CoverGen section contains a name of a xml-file with the data used at generation of splatting atlases. The file format is described further.

Optional Marking section Marking contains a name of a xml-file with the information used for loading of static vector data. The file format is described further.

Optional Shapemapping section contains a name of a xml-file with the information used for drawing of static vector data on cache-stored textures. The file format is described further.

Optional Tuning section contains the enumeration of the options which are for thin customisation of functioning GIS. The enumeration of options and their admissible values is next:

Option name

Possible values

By default

Description

GenerateAtlas

Yes[1] | No

Yes

If it is “yes”, at a cache creation stage the splatting atlas for all scene is generated. This atlas is used for pseudotexturing and not used by splatting over raster textures implementation.

ShowSurfaceProgress

Yes | No

Yes

If it is “yes”, at generation of texture for everyone quad the progress bar is indicated.

CreateSyntheticTextures

Yes | No

Yes

If it is “yes”, for quads, not covered with raster textures, it is generated pseudo-textures based on thesplatting atlases

ConvertZeroElevationToDefaultElevation

Yes | No

No

If it is “yes”, zero elevations in maps of elevation replacing by default value

MinQuadRasterSize

Int > 8

128

Sets the minimum size of raster data for a quad

ScalableDataMinElevation, ScalableDataMaxElevation

Float

MinHeight, MaxHeight

Defines a range of real elevation for dimensionless input data of maps of elevations, for example, for maps in a 8-bit format. The range of values of bit map is mapped in the specified altitude range by LERP function

CraterRadius

Float > 0

20,0

The crater size in world co-ordinates for round craters

CraterDepth

Float > 0

15,0

Depth of a crater for round craters

DefaultElevation

Float

0,0

Height by default for the areas which have been not covered with raster maps of elevations

TintColor

Rr:gg:bb

206:173:115

Color for tint of surfaces of craters and levelled sites

The file with data for generation of splatting atlases has the following format:

<CoverGen>

<Layer no="0" resolution="#">filename.ext</Layer>

<Layer no="1" resolution="#" random_seed="#" alt_ange="range" slope_range="range" red_range="range" green_range="range" blue_range="range" random_min="#.#" random_max="#.#" glaciating="#" smoothing="#.#" locality="#.#">filename.ext</Layer>

<Layer no="2" resolution="#" random_seed="#" alt_ange="range" slope_range="range" red_range="range" green_range="range" blue_range="range" random_min="#.#" random_max="#.#" glaciating="#" smoothing="#.#" locality="#.#">filename.ext</Layer>

<Layer no="3" resolution="#" random_seed="#" alt_ange="range" slope_range="range" red_range="range" green_range="range" blue_range="range" random_min="#.#" random_max="#.#" glaciating="#" smoothing="#.#" locality="#.#">filename.ext</Layer>

<Layer no="4" resolution="#" random_seed="#" alt_ange="range" slope_range="range" red_range="range" green_range="range" blue_range="range" random_min="#.#" random_max="#.#" glaciating="#" smoothing="#.#" locality="#.#">filename.ext</Layer>

</CoverGen>

In GIS1 5-layered splatting with usage of coefficients of reflexion of layers is implemented. Local value of coefficient of reflexion for each layer, except for 0th is defined proceeding from layer parameters; for a zero layer the reflexion coefficient is equal 1.

The evaluation of coefficient of reflexion for a surface site happens under the following scheme:

./noise.PNG

Parameters of splatting have the following sense:

Parameter

Possible Values

Description

no

Int 0..4

Layer number — a required parameter. 0th layer is lower, 4th — upper

resolution

int >0

The resolution for splatted texture, in points on metre

random_seed

int >0

Thesimplexnoiseseed

alt_range

Range

Altitude range

slope_range

Range

Range of angles

red_range

Range

Range for a red component of texture (at usage together with raster textures)

green_range

Range

Range for a green component of texture (at usage together with raster textures)

blue_range

Range

Range for a dark blue component of texture (at usage together with raster textures)

random_min

Float 0..random_max

Minimum value for the noise generator

random_max

Float random_min..1

Maximum value for the noise generator

glaciating

int >0

Defines the upper octave of the generator of noise

smoothing

Float 0..100

Defines space scale of noise

locality

Float 0..100

Defines expressiveness of passages in noise

filename.ext

string

Filename with texture for splatting or color in a format rr:gg:bb

The range can be set in one of three sorts:

(xx[yy-the range opened from above

xx]yy)-The range opened from below

(xx[yy:zz]tt)-Double-sided range

For example, when parametrs are as next: alt_range ="(100 [200:500] 600)" slope_range ="45] 50)" red_range = "(100 [120" the appropriate splatting layer will appear at heights from 100 to 600, accepting the greatest values at heights from 200 to 500, angles of declination to 50, accepting the greatest values at angles to 40, and on the sites covered with texture with the red component from above 100, accepting greatest of value for sites with the red component above 120.

The ranges not specified explicitly are considered as the infinite. For example, if the range alt_range is not specified, the coefficient of reflexion of a layer does not depend on height and is defined by other factors.

The file with description of static vectorial data has the following format:

<?xml version="1.0" encoding="utf-8"?>

<Marking>

<Linestrings layername="Roads">filename.shp</Linestrings>

<Linestrings layername="Rivers">filename.shp</Linestrings>

<Polygons layername="Frontier">filename.shp</Polygons>

<Polygons layername="Regions">filename.shp</Polygons>

<Polygons layername="WaterAreas">filename.shp</Polygons>

<Points layername="Samples" namefield="Label" colorfield="Color">filename.shp</Points>

</Marking>

The node name (Linestrings, Polygons, Points) defines a data type which will be read from a file with data.

The layername parameter defines a name of a layer for the reference when static vector data drawing and inquiries to the manager of vector data processing.

Optional namefield parameter defines a field name from which the object name of vector data will be extracted.

Optional colorfield parameter defines a field name from which color of the object will be extracted when drawing.

The file with data for drawing static vector data on textural cache GIS1 has a format:

<?xml version="1.0" encoding="utf-8"?>

<Shapemapping>

<Linestrings source="Roads" style="." width="200" color="Road.png/1"/>

<Polygons source="Frontier" width="10" style="-.."color="Red"/>

<Polygons source="Regions" width="5" style="-." color="Yellow"/>

<Linestrings source="Rivers" width="15" color="Water.jpg/2"/>

<Polygons source="WaterAreas" width="10" color="Water.jpg/2" ink="Water.jpg/1"/>

<DefColor deflayer="Roads" color="Violet"/>

<DefColor deflayer="Regions" color="100:100:200"/>

</Shapemapping>

The node name (Linestrings, Polygons) defines a data type will be draw. Drawing of points is not supported.

The source parameter specifies a layer name from which data for drawing are extracted.

The width parameter defines width of drawn lines.

The style parameter defines style of lines will be draw, possible values are "-", ".", "-.", ".".

The parameter color sets draw color in a format "rr:gg:bb", a name of color or a filename with texture for mapping.

The ink parameter similarly sets color of outline for polygons.



[1]+\-, true\false can be used instead

Tags:
none
Comments (1)
Viewing 1 of 1 comments: view all
Good to see this up. It has already answered some of the questions I had.
Posted 12:51, 29 Aug 2008 (4 months ago)
Viewing 1 of 1 comments: view all
You must Login to post a comment.
 
Images (1)
Viewing 1 - 1 of 1 images | View All
No description
noise.PNG  Actions