The process of downloading planet replication files and update the raw data DB involves several tasks:
Download OsmChanges from planet replication server
Get coordinates for all related Nodes
Identify and get geometries of all involved Ways (a Way's geometry is modified also when a Node's coordinate is changed, even when the Way is not modified and is not present in the OsmChange file)
Get geometries of all involved Relations (a Relation is modified also when a Way's geometry is modified, even when the Way was not modified but a single Node was modified and nor the Way or the Relation is present in the OsmChange file)
Analyze all geospatial and semantic data and update stats and validation tables
Update data in the raw DB (insert, update and delete)
The process of downloading planet replication files and update the raw data DB involves several tasks:
These different cases must have tests.