City Nodes (.nodes)

The polyline data of a town is stored in ./iso/towns/<id>.nodes (NodesFormat=nodes in iso.ini).

It is a list of sections, each holding a number of nodes (polylines), each holding a number of points. All values are uint32. The file format is defined as:

File    := Section[]
Section := { SectionID, NodeCount, Node[NodeCount] }
Node    := { PointCount, Point[PointCount] }
Point   := { X, Y }

A sample file holds 5 sections (60 nodes, 303 points):

SectionNodesDescription
024ships town docking path (polylines starting near y = 10)
1, 23 + 3citizen route paths (those boundaries have to be 22pixel apart)
31small 4 point region
429detail features

The coordinates use a pixel/unit space (observed X 17..4352, Y 10..2353), not the tile grid.