[postgis-devel] [PostGIS] #2114: tiger_2010 loader unzip breaks on some states

PostGIS trac at osgeo.org
Wed Nov 28 09:21:51 PST 2012

#2114: tiger_2010 loader unzip breaks on some states
 Reporter:  channelzero     |       Owner:  robe         
     Type:  defect          |      Status:  new          
 Priority:  medium          |   Milestone:  PostGIS 2.0.2
Component:  tiger geocoder  |     Version:  2.0.x        
 Keywords:                  |  
 The tiger2010 loader script has the following lines for unzipping the
 files downloaded by the wget command that precedes it.

 for z in *.zip; do $UNZIPTOOL -o -d $TMPDIR $z; done

 for z in */*.zip; do $UNZIPTOOL -o -d $TMPDIR $z; done

 This doesn't work for Pennsylvania or New Hampshire as both States wget
 command results in subdirectories with the zipped files.  I used the
 stanza below to fix the issue for New Hampshire and Pennsylvania and
 commented out the lines above

 find $STATEDIR/ -name "*.zip" | while read z;  do $UNZIPTOOL -o -d $TMPDIR
 $z; done

 It works for me on the rest of the States. But, I don't know if there are
 other consequences that I cannot see.

Ticket URL: <https://trac.osgeo.org/postgis/ticket/2114>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.

More information about the postgis-devel mailing list