<p>I'm updating OSM data using osmosis and osm2pgsql. The updates work fine. There is only one issue for relation update.<br>
If a relation has been modified only inverting its members order, the osm update does not take this into account. So the relation is not updated in the database.</p>
<p>Here below is the command I use for updates:</p>
<p>`<br>
osmosis <br>
--read-replication-interval workingDirectory=$WORKDIR_OSM <br>
--simplify-change <br>
--write-xml-change update.osm</p>
<p>osm2pgsql <br>
--append <br>
--cache 10000 <br>
--number-processes 6 <br>
--hstore <br>
--multi-geometry <br>
-r xml <br>
--database gis <br>
--slim <br>
--style $HOME/openstreetmap-carto/openstreetmap-carto.style <br>
--tag-transform-script $HOME/openstreetmap-carto/openstreetmap-carto.lua <br>
--flat-nodes $HOME/mapdata/nodes.flat <br>
update.osm<br>
`</p>
<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/issues/984?email_source=notifications&email_token=AA6353TSAQZOJZC4FQFCJ7TQUQG4PA5CNFSM4JPF2XC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2MT2XA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XLZD4WTPH6XNA56O3QUQG4PANCNFSM4JPF2XCQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353R2GBBFN6MINC7B7ILQUQG4PA5CNFSM4JPF2XC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2MT2XA.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/issues/984?email_source=notifications\u0026email_token=AA6353TSAQZOJZC4FQFCJ7TQUQG4PA5CNFSM4JPF2XC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2MT2XA",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/984?email_source=notifications\u0026email_token=AA6353TSAQZOJZC4FQFCJ7TQUQG4PA5CNFSM4JPF2XC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2MT2XA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>