Battle Analysis: Terrain Data


Geocoding: Terrain information must be saved in a data format that has cartesian x,y coordinates


This terrain needs to be converted to data with x,y values

0101 Clear
0102 Woods
0301 Road, 0301-0302 Road, 0302 Road, 0302-0303 Road
0301-0401 River, 0302-0401 River


The solution is hexagon grid geocoding.

Geocoding in GIS is the process of taking a text-based description of a location, such as an address or place name,
   and returning a coordinate → hexagon grid coordinate

terrain examples


3 types of coordinate points used to reference terrain data.


terrain database Library

Movement point costs are calculated according to the terrain.


Geocoding examples


Hexagon: Hexagon name → wargame coordinate x, y

text x  yterrain
0102 Woods →412Woods
0301 Road →8 8Road
0302 Road →812Road

Hexside: Bounding Hexagon coordinates → wargame midpoint coordinate x, y

text x  yterrain
0301-0302 Road →810Road     use midpoint: 0301(8,8) → (8,10) ← 0302(8,12)
0301-0401 River →9 9River     use midpoint: 0301(8,8) → (9,9) ← 0401(10,10)

Edge: Bounding Hexagon/Hexside coordinates → wargame midpoint coordinate x, y

text x  yterrain
0402\0502 Slope →10.513.5Slope     use midpoint: 0402(10,14) → (10.5,13.5) ← 0402\0502(11,13)

CAUTION: DO NOT USE terrain with hexagon label and direction number format. Subject to data errors.

text x  yterrain
0301 4 Road →810Road     0301(8,   8) → (+0,+2) → (8,10)
0301 3 River →9 9River     0301(8,   8) → (+1,+1) → (9,9)
0401 6 River →9 9River     0301(10,10) → (-1,-1) → (9,9) (duplicate entry)

Let's say 0301 3 River needs to be changed to 0301 4 River and gets updated.

If that River hexside had a second text based description 0401 6 River, it did not get updated.

text x  yterrain
0301 4 River →810River entry corrected
0401 6 River →99River entry did not get updated

Example terrain types with a point type. (note: dots are color-coded by number of neighbors, green:0 blue:1 cyan:2 brown:3)

map