Here's the output of one-way converter for sea_grids.esf
poi.esf uses very similar technique for encoding data,
so I should be able to convert both.
How data is organized is reasonably certain.
On the other hand labels are pure guesswork, I have only very faint idea of what they mean.
Structure is:
- Count of grids, each being:
- Name (string)
- min x, min y (v2)
- max x, max y (v2) - bounding box is a good guess
- x size (uint32)
- y size (uint32) - all data following is a X*Y cells
- x*y bounding boxes, each being (outer iteration by y, inner by x):
- x index from 0 to x-1 (uint32)
- y index from 0 to y-1 (uint32)
- min x, min y (v2)
- max x, max y (v2) - seems like bounding box as well
- x*y areas each being:
- consecutive id (uint32)
- uint32 count of land region names
- that many land region names, each being a string
- uint32 count of sea names
- that many sea names, each being a string
- uint32 count of port names
- that many port names, each being a string
- uint32 count of some numbers
- that many numbers, each uint32 - no idea what they mean
- uint32 number of connections (???), each being:
- id of one of area from current grid (uint32)
- id of another area from current grid (uint32)
- float with entirely unknown meaning (probably not distance, these are identically spaced cells)
Does anybody has any clue what these things mean?
I want to integrate this (and upcoming poi.esf converter) with esfxml,
but I'd like to avoid a bunch of <unknown> tags.
Also, is this or poi.esf useful to anyone? I mostly did this because I had sea_grids.esf in my
test set, and found blatant undecoded structure too annoying.





Reply With Quote





