Opened 12 years ago

Closed 12 years ago

#1930 closed defect (fixed)

Missing fields from tabblock table in tiger2011 census loader

Reported by: bpanulla Owned by: robe
Priority: low Milestone: PostGIS 2.0.2
Component: tiger geocoder Version: master
Keywords: Cc: woodbri

Description

Similar to #1885, the TIGER 2011 Geocoder has some issues with the tabblock table. The loader throws the following error in the logs:

NOTICE:  INSERT INTO tiger_data.ca_tabblock(the_geom,intptlon,intptlat,awater,aland,funcstat,uace,ur,mtfcc,name,tabblock_id,blockce,tractce,countyfp,statefp) SELECT the_geom,intptlon,intptlat,awater,aland,funcstat,uace10,ur10,mtfcc,name,tabblock_id,suffix1ce,blockce10,tractce10,countyfp10,statefp10,countyfp,statefp FROM tiger_staging.ca_tabblock;
CONTEXT:  SQL function "loader_load_staged_data" statement 1
ERROR:  INSERT has more expressions than target columns
LINE 1: ...block_id,suffix1ce,blockce10,tractce10,countyfp10,statefp10,...

The extra fields in the staging table generated by the shapefile loader are:

        statefp CHARACTER VARYING(2),
        countyfp CHARACTER VARYING(3),
...
        suffix1ce CHARACTER VARYING(1),

The statefp and countyfp fields are accompanied by statefp10 and countyfp10, so I'm not sure which pair is actually extra.

I haven't noticed any problems with the functionality of the Geocoder.

Change History (2)

comment:1 by woodbri, 12 years ago

Cc: woodbri added

comment:2 by robe, 12 years ago

Resolution: fixed
Status: newclosed

this doesn't seem to be an issue in 2.1. fixed for 2.0 at r10716

Note: See TracTickets for help on using tickets.