As we know each element has element ID assigned to it. On what basis 64 bit element ID's are assigned. Does element IDs have any structure. Where can i find more details about Element ID generation and its structure. asked 27 Sep '19, 06:48 Amruthesha |
The element IDs (node, way, relation IDs) are assigned by the PostgreSQL database on the central OpenStreetMap server. The API code merely tells the database to "save" a new object with an ID of NULL (e.g. for a new node, the relevant code line is https://github.com/openstreetmap/openstreetmap-website/blob/master/app/models/node.rb#L270) and then the database assigns a new ID based on a PostgreSQL "sequence" (cf. https://github.com/openstreetmap/openstreetmap-website/blob/master/db/structure.sql#L1470). These IDs have no structure or meaning altogether. answered 27 Sep '19, 07:33 Frederik Ramm ♦ |