<pre>svn co <a href="http://osm2mp.googlecode.com/svn/trunk/" class="external free" rel="nofollow">http://osm2mp.googlecode.com/svn/trunk/</a> osm2mp-read-only</pre>osm2mp-read-only/osm2mp/<a href="http://osmsort.pl">osmsort.pl</a> will fix/create the bounding box<br>
<br><br><div class="gmail_quote">On Fri, Aug 6, 2010 at 9:04 AM, Adam Dunn <span dir="ltr"><<a href="mailto:dunnadam@gmail.com">dunnadam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks Richard. The bounds line isn't present in any of the files that I'm working with, so it must be a convenience provided by whatever program you used. The sed lines work like a charm, though.<br><font color="#888888"><br>
Adam</font><div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On Fri, Aug 6, 2010 at 3:06 AM, Richard Weait <span dir="ltr"><<a href="mailto:richard@weait.com" target="_blank">richard@weait.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>On Fri, Aug 6, 2010 at 1:23 AM, Adam Dunn <<a href="mailto:dunnadam@gmail.com" target="_blank">dunnadam@gmail.com</a>> wrote:<br>
><br>
> P.S. While we're at it, anyone know a method to find out the bounding box of<br>
> an osm file? In other words, I give you an .osm file and, using some command<br>
> line tool, you tell me the min lat for any node contained within the file,<br>
> the max lat, the min long and the max long.<br>
<br>
</div>Check for the bounds line at the top of the file.<br>
<br>
  <bounds minlat="43.1347" minlon="-79.0719" maxlat="43.1752"<br>
maxlon="-79.0197"/><br>
<br>
This did not match what I found with sed.<br>
<br>
grep "<node" queenston.osm| sed -e 's/^.*lat="//' | sed -e<br>
's/".*$//'|sort -n|head -1<br>
grep "<node" queenston.osm| sed -e 's/^.*lat="//' | sed -e<br>
's/".*$//'|sort -n|tail -1<br>
grep "<node" queenston.osm| sed -e 's/^.*lon="//' | sed -e<br>
's/".*$//'|sort -n|head -1<br>
grep "<node" queenston.osm| sed -e 's/^.*lon="//' | sed -e<br>
's/".*$//'|sort -n|tail -1<br>
<br>
either of these work for you?<br>
<div><div></div><div><br>
_______________________________________________<br>
Talk-ca mailing list<br>
<a href="mailto:Talk-ca@openstreetmap.org" target="_blank">Talk-ca@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-ca" target="_blank">http://lists.openstreetmap.org/listinfo/talk-ca</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Talk-ca mailing list<br>
<a href="mailto:Talk-ca@openstreetmap.org">Talk-ca@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk-ca" target="_blank">http://lists.openstreetmap.org/listinfo/talk-ca</a><br>
<br></blockquote></div><br>