Richard,<div><br></div><div>If the data you're using is in PostGIS ST_Length will give you the length of all the ways of interest within a bounding box, and, if you reproject to EPSG:900913 before calling the function you'll get the results in meters.<br>
<br><div>select ST_length( ST_Transform( linestring, 900913 ) ), id, tags->'highway' as htype, tags->'name' as name from ways where </div><div>tags->'highway' in ( 'motorway', 'primary', 'secondary' )</div>
<div>AND bbox && ST_GeometryFromText( 'POLYGON(( -120 34, -119 34, -119 35, -120 35, -120 34 ))', 4326 )</div><div><br></div><div>If helpful and you have a bounding box of interest I have an up to date planet file I can run the query on and send you results</div>
<div><br></div><div>HTH</div><div><br></div><div class="gmail_quote">On Wed, Dec 5, 2012 at 7:14 AM, Richard Welty <span dir="ltr"><<a href="mailto:rwelty@averillpark.net" target="_blank">rwelty@averillpark.net</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">On 12/5/12 10:04 AM, Frederik Ramm wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On 12/05/2012 03:55 PM, Richard Welty wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i'm looking at a need to do some analysis & estimation based on road nets<br>
extracted from OSM; the goal is to be able to estimate things like time to<br>
complete ground surveys (e.g., TIGER review and collection of hydrant<br>
locations.)<br>
<br>
are there any libraries or tools kicking around that folks might have<br>
developed and would be willing to share?<br>
</blockquote>
<br>
Not a big help but there's a tool in SVN called osm-length that will report how many metres of each highway type there are in any given OSM XML file. Could be a start.<br>
</blockquote></div>
thanks, that could be a big help. whatever i develop, i expect to have to work out<br>
away to distinguish between urban/suburban/rural networks as there is a distinct<br>
difference in time to survey, although right now i am reluctant to characterize how<br>
much it really is.<span class="HOEnZb"><font color="#888888"><br>
<br>
richard</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Talk-us mailing list<br>
<a href="mailto:Talk-us@openstreetmap.org" target="_blank">Talk-us@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-us" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/talk-us</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>John Novak<br>585-OLD-TOPOS (585-653-8676)<br><br>
</div>