Module osm.model.change

Format-independent owned OpenStreetMap change operations.

OSM edit operations act on whole element states rather than on XML nodes or individual tags. This module therefore models create/modify/delete semantics independently of OSM XML and osmChange syntax.

A create or modify entry is complete. A delete entry may either carry the complete prior element or an identity-only deletion stub, because the OSM Editing API accepts minimal delete objects containing identity and required upload metadata. Visibility remains ordinary element metadata and is never used to infer the operation.

Array fields follow ordinary D dynamic-array copy semantics. Use deepCopy when an independently mutable change sequence is required.

Date

2026-11-03

Structs

NameDescription
OwnedChangeEntry One format-independent owned OSM change entry.
OwnedChangeSequence Ordered owned sequence of OSM change operations.
UploadResult Authoritative result of one successful diff-upload request.
UploadResultEntry One raw authoritative result entry returned after a successful OSM diff upload.

Enums

NameDescription
ChangeAction Whole-object operation represented by one change entry.
ChangeObjectState Whether the entry contains a complete element state or only delete identity.
UploadResultEffect Request-context interpretation of one OSM API diff-result entry.