opennorth / represent-canada-data Goto Github PK
View Code? Open in Web Editor NEWDigital electoral boundary files for Canada, its provinces and municipalities
Home Page: http://represent.opennorth.ca/
License: Other
Digital electoral boundary files for Canada, its provinces and municipalities
Home Page: http://represent.opennorth.ca/
License: Other
This error happens after running command:
pip install -r requirements.txt flake8
I tried to search the code, seems like django package is not used.
I see 9 provinces and 1 territory in https://github.com/opennorth/represent-canada-data/tree/master/boundaries/ocd-division/country:ca . Is Ontario not covered, perhaps because of the license agreement requirement at https://www.elections.on.ca/en/voting-in-ontario/electoral-district-shapefiles/open-use-data-product-licence-agreement.html ?
The new data source doesn't have a clear license.
Could you please add the new 2024 Electoral District Boundaries for British Columbia?
The final shapefiles are here:
To help prep for upcoming elections - would be super helpful to be able to retrieve
the newly approved:
boundary-sets/alberta-electoral-districts-2019-redistribution
http://www.elections.ab.ca/wp-content/uploads/2019Boundaries_ED-Shapefiles.zip
in addition to the currently active one:
boundary-sets/alberta-electoral-districts
@jpmckinney - please let us know how we may be able to help make this happen. Perhaps we can help fund this - or would you consider a PR?
Cc: @adixon
Going through the maintenance tasks here, which I haven't really done before, and having some confusion.
invoke definitions
fails with an exception in an OCD package, but I'm not sure what the fix should be. Can open an issue there if I'm not missing anything? File "opennorth/represent-canada-data/tasks.py", line 336, in definitions
expected_slug, expected_config = get_definition(division_id, path=config['file'])
File "opennorth/represent-canada-data/tasks.py", line 105, in get_definition
division = Division.get(division_id, from_csv=ocd_division_csv)
File "represent-env/lib/python3.6/site-packages/opencivicdata/divisions.py", line 56, in get
for d in self.all(country, from_csv):
UnboundLocalError: local variable 'country' referenced before assignment
when I run invoke shapefiles --base=SOME/BASE
I end up with new untracked files in a particular boundaries
subdir. I presume these are supposed to replace existing files? This isn't mentioned in any of the docs that I could find.
It is unclear if the 'Process shapefiles' maintenance step is required after updates, or only when certain things change, or only when adding new datasets?
Keep the current slugs, but use the official names:
Must request borough boundaries for each city, first.
See the "RP Request: Data request progress" spreadsheet.
This package is not in PyPI, and is also not used in the repo.
The current issue is that I can't seem to install topojson or upgrade node, e.g.
brew upgrade node
npm install topojson
it looks like the site scraper is grabbing the address for some representatives and not others. for example take the endpoint below
https://represent.opennorth.ca/postcodes/B0A1G0/?format=apibrowser
in here you will see John white his office list did mange to pull the phone number form the url end point being https://nslegislature.ca/members/profiles/john-white but it failed to get the mailing address of the office witch is available form the same source.
{
"email": "[email protected]",
"name": "John White",
"url": "https://nslegislature.ca/members/profiles/john-white",
"personal_url": "",
"party_name": "Progressive Conservative Association of Nova Scotia",
"related": {
"boundary_url": "/boundaries/nova-scotia-electoral-districts-2019/glace-bay-dominion/",
"representative_set_url": "/representative-sets/nova-scotia-legislature/"
},
"source_url": "https://nslegislature.ca/members/profiles",
"representative_set_name": "Nova Scotia House of Assembly",
"last_name": "White",
"first_name": "John",
"gender": "",
"extra": {},
"offices": [
{
"type": "constituency",
"tel": "1 902 849-8930"
}
],
"photo_url": "https://nslegislature.ca/sites/default/files/styles/photo_thumbnail/public/mla-thumbnails/john_White_I2098_0.jpg?itok=V7RcCpT2",
"district_name": "Glace Bay-Dominion",
"elected_office": "MLA"
},
where as others like Amanda Mcdougall dose have her office mailing address available
{
"email": "[email protected]",
"name": "Amanda McDougall",
"url": "",
"personal_url": "",
"party_name": "",
"related": {
"boundary_url": "/boundaries/census-subdivisions/1217030/",
"representative_set_url": "/representative-sets/cape-breton-regional-council/"
},
"source_url": "http://www.cbrm.ns.ca/mayor",
"representative_set_name": "Cape Breton Regional Council",
"last_name": "McDougall",
"first_name": "Amanda",
"gender": "",
"extra": {},
"offices": [
{
"type": "legislature",
"postal": "320 Esplanade - Suite 400",
"tel": "1 902 563-5000"
}
],
"photo_url": "https://www.cbrm.ns.ca/media/system/images/arrow.png",
"district_name": "Cape Breton",
"elected_office": "Mayor"
},
Add a test to represent-canada-dashboard
Greg Keating
Manager of GIS
City of St. John's
Tel: 1-709-576-8482
Cel: 1-709-690-1522
[email protected]
Specifically, the following three image links ought to point to other resources:
http://www.regionofwaterloo.ca/en/regionalGovernment/seanstrickland.asp -> http://www.regionofwaterloo.ca/en/regionalGovernment/resources/STRICKLAND_IMG_3890RV.jpg
http://www.regionofwaterloo.ca/en/regionalGovernment/regionalchairandsupportstaff.asp -> http://www.regionofwaterloo.ca/en/regionalGovernment/resources/Meet%20Ken%20Seiling%20Informal%20Pose%20Web%20Pic.jpg
http://www.regionofwaterloo.ca/en/regionalGovernment/janemitchell.asp -> http://www.regionofwaterloo.ca/en/regionalGovernment/resources/Jane%20Mitchell%20Web%20Pic.jpg
The second broken-image in the above screenshot for Dave Jaworsky does not have an src
value.
All representatives should have a district_name
for CSV exports to work nicely.
Add a test to represent-canada-dashboard. Also, enumerate possible values, if that's not done already.
Shapefile is not ward boundaries.
Steve Whitehead
GIS Supervisor
IT & GIS Services
City of Quinte West
Tel: 1-613-392-2841 x4404
[email protected]
I've noticed if I search your website's demo app (https://represent.opennorth.ca/demo/) for addresses in Northwest, Nunavut, or Yukon territories, I only see MPs, no MLAs. Is there a way to correct that? Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.