X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/291fdd1894fd44bd117259956ac5299cb0d7babd..06657b3e10ed2d7fbc7d469c3672ca3962502111:/sql/tiger_import_start.sql 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;