On 10/7/06, <b class="gmail_sendername">OJW</b> <<a href="mailto:streetmap@blibbleblobble.co.uk">streetmap@blibbleblobble.co.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Saturday 07 October 2006 11:44, Etienne wrote:<br>> When you grab data from the OSM server via the API it returns all segments<br>> that cross the specified bounding box. Osmarender, by default, calculates<br>> a new bounding box that includes all the segments returned from the API, so
<br>> this is usually bigger than the area requested.<br><br>This will also become significant when we add hotspots to the maps, so that<br>you can click on each restaurant for it's wikipedia article.<br><br>The data I'm getting is from generator="OpenStreetMap server", and doesn't
<br>appear to include any bounds information.  So the options are:<br><br>1) get someone from the OSM website team to add bounds to the map API</blockquote><div><br>The best option. </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2) modify the downloaded file myself to store the bounding box that I<br>requested (is there a wiki page somewhere saying what format to put it in)</blockquote><div><br><a href="http://wiki.openstreetmap.org/index.php/Osmarender#bounds">
http://wiki.openstreetmap.org/index.php/Osmarender#bounds</a><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">3) calculate the "actual" bounds of the returned OSM data (by looking at all
<br>the nodes) and use that to correlate positions on the image with their<br>geographic coordinates.<br><br>Other things:<br> - Do the borders have any effect</blockquote><div><br>They are rendered afterwards and so should not have any effect.  There is a setting to turn them off.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> - Do line-widths and end-caps have any effect when there's a wide road at the
<br>edge of the image</blockquote><div><br>Since the edge is clipped this should be OK, but Osmarender isn't doing the clipping properly yet (it makes a white border which you normally cannot see).<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 - What inkscape options will be most reliable when rendering (presumably<br>adding "bounds" information changes the "page size" in the SVG file, so I<br>don't need the -D tag (entire drawing) any more?)
</blockquote><div><br>It would do if the clipping was done properly.  Don't really know if it will be any better or different.<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
</a><br><br><br><br></blockquote></div><br>