Struct OwnedDataset

Durable in-memory OSM semantic dataset.

struct OwnedDataset;

Elements are grouped by type because cross-type PBF wire ordering is a codec representation detail rather than an OSM semantic contract. Ordering inside each element and inside each tag/reference/member array is preserved exactly.

.init is a valid empty dataset.

Fields

NameTypeDescription
nodes OwnedNode[]
relations OwnedRelation[]
ways OwnedWay[]

Properties

NameTypeDescription
empty[get] boolReturn true when the dataset contains no OSM elements.

Methods

NameDescription
deepCopy () Create an independently mutable dataset snapshot.