<p>Osm2pgsql relies on the order nodes, then ways, then relations for<br>
correct functioning. Future versions will also need ids to be in order<br>
for efficiency and to allow merging and simplification of input files.</p>
<p>This commits adds a warning output when the order is not correct.</p>
<p>See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="616095345" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/osm2pgsql/issues/1167" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/osm2pgsql/issues/1167/hovercard" href="https://github.com/openstreetmap/osm2pgsql/issues/1167">#1167</a>.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/pnorman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pnorman">@pnorman</a> Can you please review?</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/osm2pgsql/pull/1250'>https://github.com/openstreetmap/osm2pgsql/pull/1250</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Check order of input files and warn if they are out of order</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1250/files#diff-95e351a3805a1dafa85bf20b81d086e6">src/CMakeLists.txt</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1250/files#diff-72a4add88920e264a3bd2b83090933d9">src/check-order.cpp</a>
(79)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1250/files#diff-787985c359b88cd6dc8f6eee29b1c9ab">src/check-order.hpp</a>
(40)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/1250/files#diff-945b0338af91c31d5230475d7275513d">src/osmdata.cpp</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1250.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1250.patch</a></li>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1250.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1250.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1250">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353V52JJTHKY6N3CJF63R3XXH3ANCNFSM4O2ZCAFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353XVMAQWYCOYCKRCN5TR3XXH3A5CNFSM4O2ZCAFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JZRQKAA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1250",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1250",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>