[openstreetmap/openstreetmap-website] ActionView::Template::Error (undefined method `redacted?' for nil:NilClass) in app/views/browse/_relation_member.html.erb (#1988)

Frederik Ramm notifications at github.com
Mon Sep 10 09:11:00 UTC 2018


One way to make a given extract referentially complete is:

    osmosis --read-pbf myfile.osm.pbf --bb left=-180 right=180 top=90 bottom=-90 clipIncompleteEntities=true --write-pbf mynewfile.osm.pbf

or you could simply add the `--bb` into your existing Osmosis pipeline. This will simply remove missing nodes from a way (though Geofabrik extracts are usually reference complete with regards to ways) and missing nodes/ways/relations from a relation. Of course the resulting objects will then not necessarily correspond to what's on OSM itself.

The other method is creating a referentially complete extract to begin with. by starting from a planet file and cutting out the area of interest using either Osmosis with `complete-relations=true` and `complete-ways=true` or the faster approach with `osmium --extract` using the "smart" strategy with `-S types=any`. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1988#issuecomment-419843523
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180910/7a3d0ffd/attachment.html>


More information about the rails-dev mailing list