-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geoheader for 2009_5yr has an invalid character encoding #15
Comments
I'm pretty sure these files are all latin-1. |
Good call! WARNING: CHANGING ENCODING PREVENTS THE LOADING OF METADATA (which is encoded in UTF-8) Just found this for future reference: Until 2014, character encoding was in Latin-1 For future reference, if anyone else is having this issue, the safe way to resolve this is to drop the database and then create a new database with the correct encoding (LATIN1) or use
if you're ok with an adhoc solution |
If you're trying to get at the data, you can just download the SQL dumps here: http://censusreporter.tumblr.com/post/73727555158/easier-access-to-acs-data |
Unfortunately not all the tables are avaliable as a snapshot. |
Now i'm getting a duplicate key value error:
|
What tables aren't available in the snapshot? |
acs2009_5yr |
Corrected the extraction behavior to accurately extract at the correct location. This updated bash script should unzip All_Geographies_Not_Tracts_Block_Groups.zip into a tmp path, and then extract the files in the tmp path to group1 as well as unzipping Tracts_Block_Groups_Only.zip to group2 Please note that censusreporter#15 might be encountered.
I think you're running into the problems I ran into and didn't have time to work through earlier (since Census Reporter wasn't going to use 2009 data). I would be extremely happy to review a pull request that fixes this, though! |
I'll try my best, not sure if I can find the duplicate key though.... |
After unzipping the 2009_5yr manually, it turns out a file in the geoheader has an incorrect encoding:
(I also removed the -q flag to see where it failed for importing geoheader)
The text was updated successfully, but these errors were encountered: