This specification outlines the structure of the output directory for a single map.
├── dem.asc.gz
├── geojson
│ ├── bush.geojson.gz
│ ├── [...]
│ └── house.geojson.gz
├── meta.json
├── preview.png
└── sat
├── 0
│ ├── [...]
│ └── 0.png
└── 3
├── [...]
└── 0.png
The geojson/
directory holds the vector data of all objects and locations as multiple gzipped geojson files. Specifics can be found here.
The meta.json
includes all important meta data of the map. The format of this file is further specified here.
The sat/
directory includes the satellite image. Because the full image can easily get over 200MB in size (and large files are always a pain in the ass to deal with) it is always split in 16 tiles.
Each tile within the sat/
directory has the following nomenclature {col}/{row}.png
with {col}
being the column number and {row}
the row number of the tile. Row/column numbers start at 0 and the origin is in the top left corner of the sat-image. So the image sat/0/0.png
is the most top left tile of the satellite image.
Take a look at the following image for a visual representation:
The dem.asc.gz
includes the digital elevation model of the map. The file is a gzipped ascii file and in the ESRI ASCII Raster Format.
The preview.png
is the map's preview image (shown in the in-game map selection screen of the editor).