From 0930f6e728a3c325a18dfa3b7a520628f9b1be4c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 9 Mar 2015 21:33:02 +0100 Subject: [PATCH] state setup: get latest node from place, planet_osm_nodes may be empty --- utils/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/setup.php b/utils/setup.php index be385698..ee079a89 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -613,7 +613,7 @@ } // Find the last node in the DB - $iLastOSMID = $oDB->getOne("select max(id) from planet_osm_nodes"); + $iLastOSMID = $oDB->getOne("select max(osm_id) from place where osm_type = 'N'"); // Lookup the timestamp that node was created (less 3 hours for margin for changsets to be closed) $sLastNodeURL = 'http://www.openstreetmap.org/api/0.6/node/'.$iLastOSMID."/1"; -- 2.45.2