Skip to content

Commit

Permalink
more specific modelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoberon committed Jun 26, 2024
1 parent 8a3823f commit 452ec9c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
all: dsat.py cis.py dsat.pdf cis.pdf
all: dsat.py cis.py dsat.pdf cis.pdf dsat.png cis.png

%.py: %.ksy
ksc -t python $<

%.dot: %.cis
%.dot: %.ksy
ksc -t graphviz $<

%.pdf: %.dot
dot $< -Tpdf -o $@

%.png: %.dot
dot $< -Tpng -o $@
49 changes: 43 additions & 6 deletions src/dsat.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ seq:
doc: list of 13394 cities and their coordinates
- id: unknown3_1
size: 980862
- id: unknown3_2
- id: borders_and_highways
type: polygons
size: 1691200
doc: borders and highways
- id: tiles_zoom2
Expand Down Expand Up @@ -124,8 +125,7 @@ types:
seq:
- id: cities
type: city
repeat: expr
repeat-expr: 13394 # FIXME: how to model?
repeat: eos
city:
seq:
- id: name
Expand All @@ -140,12 +140,49 @@ types:
type: f8
- id: latitude
type: f8
- id: unknown3
# contents: [0x09, 0x00, 0x00, 0x00, 0x00, 0x00]
size: 8
- id: unknown
type: u1
valid:
any-of: [9, 11, 17, 26]
- id: empty
size: 7
contents: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
# image tiles → https://dsat.igada.de/2024/04/22/getting-an-overview-on-the-file-content.html
tiles:
seq:
- id: tiles
type: cis
repeat: eos # FIXME: how to model?
polygons:
seq:
- id: point
type: point
repeat: eos
point:
seq:
- id: longitude
type: f4
- id: latitude
type: f4
- id: unknown1
size: 1
- id: unknown2
type: u1
valid:
any-of: [0, 1, 2, 3, 4, 5, 6]
- id: unknown3
contents: [0xcd, 0xcd]
- id: unknown4
size: 1
- id: point_type
type: u1
valid:
any-of: [0, 1, 2, 3 ]
doc: |
0 seems to encode highways
1 seems to encode state borders
2 seems to (mainly) encode the federal border
- id: unknown5
type: u2
valid:
any-of: [0, 32768]

0 comments on commit 452ec9c

Please sign in to comment.