<br><br><div class="gmail_quote">On 17 February 2012 17:35, Andrew Chadwick <span dir="ltr"><<a href="mailto:a.t.chadwick@gmail.com">a.t.chadwick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">I'd still love to see some areas with big outbreaks of</div>
highway=path+designation-only, or highway=path+access-tags-only as<br>
representations of public paths. Must throw down some overpass-api<br>
quadrats around the country to see what people are doing in various<br>
areas, before we completely throw highway=path to the Germans.<br>
Statistically, would highway=path + designation=public_footpath vs.<br>
highway=footway + designation=public_footpath be a worthwhile<br>
comparison? Should get around the legacy issue with h=footway.<br>
<br></blockquote><div>I have just had a play with my shiny new British Isles database import with a hstore, so that I can get to the 'designation' tag.   The following queries are looking at highway = footway v's highway=path, with or without some sort of designation (ie designation or foot not null).</div>
<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div><div><font face="'courier new', monospace">osm_gb_hs=# --total with a designation</font></div></div>
</div><div class="gmail_quote"><div><div><font face="'courier new', monospace">osm_gb_hs=# select highway, count(way) as count,cast(sum(st_length2d(way)/1000.) as int) as totLen from planet_osm_line where (highway='footway' or highway='path') and (((tags->'designation') is not null) or (foot is not null)) group by highway order by highway, totLen desc;</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> highway | count  | totlen </font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">---------+--------+--------</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> footway | 124970 |  66566</font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> path    |  27154 |  17313</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">(2 rows)</font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"><br></font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">osm_gb_hs=# </font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">osm_gb_hs=# --total without a designation</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">osm_gb_hs=# select highway, count(way) as count,cast(sum(st_length2d(way)/1000.) as int) as totLen from planet_osm_line where (highway='footway' or highway='path') and (((tags->'designation') is  null) and (foot is null)) group by highway order by highway, totLen desc;</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> highway | count  | totlen </font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">---------+--------+--------</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> footway | 224678 |  59942</font></div></div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace"> path    |  28628 |  14235</font></div>
</div></div><div class="gmail_quote"><div><div><font face="'courier new', monospace">(2 rows)</font></div></div></div></blockquote><div class="gmail_quote"><div>You can see that there are many more highway=footway rather than highway=path in the british isles.   I think the totlen column is the total length in km, but my postgis is not very good so this could be wrong.</div>
<div><br></div><div>Basically this says that there are 224k footways without a designation of some sort, and 125k with a designation.</div><div>Similarly, there are 28k paths without a designation and 27k with a designation.  [there are also over 20k highway=bridleway, which is an odd one].</div>
<div><br></div><div>Is this the sort of query you were thinking of?   Of course I can produce huge lists of all the combinations of designations and foot values, but not that sure how useful that is, or how to present it.   This is for the whole uk, so includes urban areas, which could account for the very large proportion of footways over paths.  I wonder if there are relations for the national parks so I could run a few queries for those areas?</div>
<div><br>Graham.</div><div><br></div><div> </div></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>