Skip to content
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

Use complete NH precinct file #128

Merged
merged 4 commits into from
Jun 23, 2018
Merged

Use complete NH precinct file #128

merged 4 commits into from
Jun 23, 2018

Conversation

wboykinm
Copy link
Collaborator

Hot off the presses from the NH Office of Strategic Initiatives, we have a shapefile of all post-2012 NH voting precincts, down to the wards detailed in the issue thread

These will shortly be available on the NH GRANIT portal as well.

@wboykinm wboykinm requested a review from nvkelso October 24, 2017 20:39
@migurski
Copy link
Collaborator

Ooh

@wboykinm
Copy link
Collaborator Author

wboykinm commented Oct 24, 2017

@nvkelso Note that the 'precinct' transform previously used here . . .

CONCAT('33', CAST(FIPS AS character(3))) AS precinct

. . . isn't strictly accurate now. Every ward in a given NH city shares a FIPS code, so a ward number will need to be scraped off and appended from the WARD field, ideally in keeping with the way the SoS delivers results. Maybe something like this:

(CASE WHEN WARD LIKE '%Ward%' THEN CONCAT('33', CAST(FIPS AS character(3)),'-', RIGHT(WARD,1)) ELSE CONCAT('33', CAST(FIPS AS character(3))) END) AS precinct

. . . though I'm not sure if SQLite syntax will support that.

@wboykinm
Copy link
Collaborator Author

screenshot 2017-10-24 17 06 04

@wboykinm
Copy link
Collaborator Author

wboykinm commented Feb 8, 2018

@nvkelso Y'all are pretty busy I'm sure, but any chance of a look at this one?

Copy link
Owner

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you! I'll take care of precinct name after merge.

@nvkelso nvkelso merged commit 8317be7 into master Jun 23, 2018
@nvkelso nvkelso deleted the nh-wards branch June 23, 2018 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants