-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipolygon missing #260
Comments
In addition,the relation is present in cache: |
Same - I'm seeing a few multipolygons with tagging that is matched by the mapping show up in the cache, but not the imported tables. |
We are also experiencing something similar, see our ticket bug for more context if you're interested https://phabricator.wikimedia.org/T288897#7288008 |
We saw the same effect, and in our case it was actually caused by a bug in the Osmium command line tool: In versions before 1.8.0, the derive-changes command produces node deletions instead of other elements. I.e. if way 123 is deleted, the changes file marks the node with id 123 as deleted. The problem manifests itself most visibly in multipolygons since they have lots of nodes. Imposm doesn't flag missing polygon nodes in the log, so while the polygons are present in the cache, they are silently skipped in the database. In case Osmium's derive-changes is the problem, you can add the --keep-details command line flag as a workaround (produces slightly larger files, but doesn't suffer from the node bug), or you can update to a newer version (at least 1.8.0). In other cases, it may simply be a problem in OSM data (see #209). I think it would be useful if missing nodes were logged by Imposm - however, I don't know if that would flood the log (depending on how common the problem is). |
This is unlikely the issue in my case:
|
Any ideas are welcome for a workflow detecting those missing MPs: I keep finding them from time to time browsing the map, but I can't find relevant errors in Postgresql logs nor Imposm output. |
Relation 1622434 missing from database.
Context
My database is running updates every 10 minutes since 2019-12-05T00:52:02Z with this config opensnowmap.yml.
A user pointed to me a few forest multi-polygons missing from the rendering.
Expected Behavior
imposm=# select count(*) from osm_landusages where osm_id = -1622434;
should return '1', I get '0'
Possible Fix
Tested locally with imposm-0.11.1-linux-x86-64:
Re-importing the actual relation from an Overpass API extract makes it in the database without trouble.
Re-importing the old version of the relation and references extracted with osmium from the old planet file makes it in the database without trouble. JOSM shows no complaint on this old relation extract.
Your Environment
The text was updated successfully, but these errors were encountered: