]> granicus.if.org Git - postgis/commitdiff
Fix issue with loading tabblock
authorRegina Obe <lr@pcorp.us>
Sat, 28 Sep 2019 02:56:49 +0000 (02:56 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 28 Sep 2019 02:56:49 +0000 (02:56 +0000)
Closes #4338 for PostGIS 2.5.4

git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@17826 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
extras/tiger_geocoder/tiger_loader_2017.sql

diff --git a/NEWS b/NEWS
index ddf6d59ccee74e84eb4ecc861a347f49b3ba25ae..12bac75034e8823cce55d77fa064c8a133991abf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
 PostGIS 2.5.4
-XXXX/XX/XX
+2019/XX/XX
 
  * Bug fixes *
 
@@ -12,6 +12,7 @@ XXXX/XX/XX
   - #4495, Fix ST_SnapToGrid output having an outdated bbox (Raúl Marín)
   - #4496, Make ST_Simplify(TRIANGLE) collapse if requested (Raúl Marín)
   - #4506, Remove tolerance in point-in-ring tests (Paul Ramsey)
+  - #4338, Fix Census block level data (tabblock table) loading (Regina Obe)
 
 
 PostGIS 2.5.3
index 99427e9c417fedc6e6fabc012262e8f42661796d..ea520c6776fcce5464f253867441691aa9560d95 100644 (file)
@@ -262,7 +262,7 @@ VALUES(10, 'tract', 'tract', true, false, true,false, 'c',
 INSERT INTO loader_lookuptables(process_order, lookup_name, table_name, load, level_county, level_state, single_geom_mode, insert_mode, pre_load_process, post_load_process, columns_exclude )
 VALUES(11, 'tabblock', 'tabblock10', false, false, true,false, 'c',
 '${psql} -c "CREATE TABLE ${data_schema}.${state_abbrev}_${lookup_name}(CONSTRAINT pk_${state_abbrev}_${lookup_name} PRIMARY KEY (tabblock_id)) INHERITS(tiger.${lookup_name});" ',
-'${psql} -c "ALTER TABLE ${staging_schema}.${state_abbrev}_${lookup_name} RENAME geoid10 TO tabblock_id;  SELECT loader_load_staged_data(lower(''${state_abbrev}_${table_name}''), lower(''${state_abbrev}_${lookup_name}'')); "
+'${psql} -c "ALTER TABLE ${staging_schema}.${state_abbrev}_${table_name} RENAME geoid10 TO tabblock_id;  SELECT loader_load_staged_data(lower(''${state_abbrev}_${table_name}''), lower(''${state_abbrev}_${lookup_name}'')); "
 ${psql} -c "ALTER TABLE ${data_schema}.${state_abbrev}_${lookup_name} ADD CONSTRAINT chk_statefp CHECK (statefp = ''${state_fips}'');"
 ${psql} -c "CREATE INDEX ${data_schema}_${state_abbrev}_${lookup_name}_the_geom_gist ON ${data_schema}.${state_abbrev}_${lookup_name} USING gist(the_geom);"
 ${psql} -c "vacuum analyze ${data_schema}.${state_abbrev}_${lookup_name};"', '{gid, uatyp10, uatype, suffix1ce}'::text[]);