[Talk-us] Redaction affected ways map

Martijn van Exel m at rtijn.org
Sat Aug 4 14:35:48 BST 2012


Hi,

On Sat, Aug 4, 2012 at 4:05 AM, Stellan Lagerström <stellan at zezame.com> wrote:
> On 2012-08-04 08:27, Martijn van Exel wrote:
>>
>> I was curious how much of the road network in the US has been touched
>> by the redaction process. So I made this map:
>>
>> http://lima.schaaltreinen.nl/redaction/
>>
>> I would like to know if this is useful to anybody, or what I can do to
>> make it more so.
>>
> Nice. What do the colors signify?
> And I would suggest adding "Show in OSM" and/or "Edit in Potlatch/JOSM"
> links.

The colors mimic and signify Motorway / Trunk / Primary / Secondary / Other.

You can click on the features to get a popup with those links. It's a
GeoJSON-fed vector layer.

Let me give some background on how the data is prepared (and kept up
to date if I get it to work reliably):

1 A local us.o5m[1] file is updated using osmupdate[2]
2 From that, a file with just those objects last edited by the
redaction bot is filtered using osmfilter[3].
3 This file is compared with the previous run, an osc is derived using
osmconvert[4].
4 The osc is applied to a PostGIS database that was initially
populated with the result of the first run of step 2.

The script can be found at https://gist.github.com/3257796 if you're interested.

[1] http://wiki.openstreetmap.org/wiki/O5m
[2] https://wiki.openstreetmap.org/wiki/Osmupdate
[3] https://wiki.openstreetmap.org/wiki/Osmfilter
[4] https://wiki.openstreetmap.org/wiki/Osmconvert
-- 
martijn van exel
http://oegeo.wordpress.com



More information about the Talk-us mailing list