X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/df6b4330669c15cb46edf3547be2588d9925ed4d..043f9d8298d911c2bc9839a4a4f7ebb22e893783:/sql/tiger_import_start.sql?ds=sidebyside diff --git a/sql/tiger_import_start.sql b/sql/tiger_import_start.sql index f6d65ae2..5acb3e59 100644 --- a/sql/tiger_import_start.sql +++ b/sql/tiger_import_start.sql @@ -10,7 +10,6 @@ DECLARE endnumber INTEGER; stepsize INTEGER; numberrange INTEGER; - rangestartnumber INTEGER; place_centroid GEOMETRY; out_partition INTEGER; out_parent_place_id BIGINT; @@ -28,8 +27,7 @@ BEGIN END IF; numberrange := endnumber - startnumber; - rangestartnumber := startnumber; - + IF (interpolationtype = 'odd' AND startnumber%2 = 0) OR (interpolationtype = 'even' AND startnumber%2 = 1) THEN startnumber := startnumber + 1; stepsize := 2;