]> git.openstreetmap.org Git - nominatim.git/commitdiff
update tiger import for changes to functions.sql
authorBrian Quinion <brian.quinion@mapquest.com>
Thu, 26 Jun 2014 16:12:39 +0000 (17:12 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Thu, 26 Jun 2014 16:12:39 +0000 (17:12 +0100)
sql/tiger_import_start.sql

index d9def2b43a1c428c044a9f8cee505df921a3107e..a6f417f2977689bd8a2818b0e8f93f61d1d3bc51 100644 (file)
@@ -53,12 +53,12 @@ BEGIN
   END IF;
 
   place_centroid := ST_Centroid(linegeo);
-  out_partition := get_partition(place_centroid, 'us');
+  out_partition := get_partition('us');
   out_parent_place_id := null;
 
   address_street_word_id := get_name_id(make_standard_name(in_street));
   IF address_street_word_id IS NOT NULL THEN
-    FOR location IN SELECT * from getNearestNamedRoadFeature(out_partition, place_centroid, address_street_word_id) LOOP
+    FOR location IN SELECT * from getNearestNamedRoadFeature(out_partition, place_centroid, ARRAY[address_street_word_id]) LOOP
       out_parent_place_id := location.place_id;
     END LOOP;
   END IF;