Skip to content

Commit

Permalink
Add optional "arrays" with lat/lon to ways
Browse files Browse the repository at this point in the history
This allows storing node locations on the ways.
  • Loading branch information
joto committed Jan 3, 2021
1 parent 1651aa1 commit e7d3201
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/osmformat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ message Way {
optional Info info = 4;

repeated sint64 refs = 8 [packed = true]; // DELTA coded

// The following two fields are optional. They are only used in a special
// format where node locations are also added to the ways. This makes the
// files larger, but allows creating way geometries directly.
//
// If this is used, you MUST set the optional_features tag "LocationsOnWays"
// and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true]; // DELTA coded, optional
repeated sint64 lon = 10 [packed = true]; // DELTA coded, optional
}

message Relation {
Expand Down

2 comments on commit e7d3201

@joto
Copy link
Collaborator Author

@joto joto commented on e7d3201 Jan 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is work in progress. More docs will come.

@joto
Copy link
Collaborator Author

@joto joto commented on e7d3201 Jan 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is not the right place to discuss this, but that functionality has been available in osmium-tool for years.

Please sign in to comment.