Hi again everybody!<br><br>I am trying to implement the post-processing solution: removing all records in <i>planet_osm_ways</i> that are completely outside my bounding box. For this I first need to find out all the nodes outside the bounding box...<br>
<br>The problem is that the x and y coordinates of <i>planet_osm_nodes</i> seem to be plenty wrong. My first record, for instance, has<br>lat = 450768421<br>lon = 796483777<br><br>I assume that these are in srid 900913 but, if they are, they are way outside the limits of the 900913 srs. Actually, I just realised that they are systematically wrong by a factor 100. The correct coordinates should be something like:<br>
lat = 4507684<br>
lon = 7964837<br><br>Have I done something wrong? or is there a known (or unknown?) bug with osm2pgsql? The geometries of the "useful" tables (line, point, polygon, roads) seem correct, but the x/y columns of the temporary tableshave this problem...<br>
<br>Cheers<br><br>Stéphane<br clear="all">--<br>"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein<br><br>"A journey does not need reasons. Before long, it proves to be reason enough in itself. One thinks that one is going to make a journey, yet soon it is the journey that makes or unmakes you." -- Nicolas Bouvier<br>
<br>Photos de voyages, photos de montagne: <a href="http://www.henriod.info/" target="_blank">http://www.henriod.info</a><span dir="ltr"><span dir="ltr" title="Appeler ce numéro de téléphone en/au(x) Tadjikistan avec Skype : +992934624662"><span>  </span></span> <br>
</span><br>
<br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 5:25 PM, Ramas <span dir="ltr"><<a href="mailto:ieskok@ramuno.lt" target="_blank">ieskok@ramuno.lt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can check tool osmupdate which has option to clip data outside boundaries.<div><a href="http://wiki.openstreetmap.org/wiki/Osmupdate#Applying_Geographical_Borders" target="_blank">http://wiki.openstreetmap.org/wiki/Osmupdate#Applying_Geographical_Borders</a><br>


<br><div class="gmail_quote">On 5 September 2012 16:06, Stéphane Henriod <span dir="ltr"><<a href="mailto:s@henriod.info" target="_blank">s@henriod.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>thanks for your anwers!<br><br>But it looks like I have a problem now...<br><ol><li>I need to keep the tables ways, rels and nodes because of the diff updates</li><li>Those 3 tables will continue growing up with each new diff, until I reach the storage capacity of the server</li>




</ol><p>The only solution I see is a post-processing that will erase from PostGIS all the nodes lying outside my bounding box + all the ways using one of thses nodes + all the relations using one of thses nodes or one of these ways.</p>




<p>Except if anyone else has a magical solution...</p><p></p></div></blockquote></div><br></div>
</blockquote></div><br>