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

update NS to 2019 boundaries #38

Merged
merged 2 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import boundaries

boundaries.register('Nova Scotia electoral districts', # (2012)
boundaries.register('Nova Scotia electoral districts (2012)',
singular='Nova Scotia electoral district',
domain='Nova Scotia',
last_updated=date(2016, 12, 8),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["NAD_1983_CSRS_UTM_Zone_20N",GEOGCS["GCS_North_American_1983_CSRS",DATUM["D_North_American_1983_CSRS",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-63.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20200102</CreaDate><CreaTime>13224000</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>FALSE</SyncOnce><DataProperties><itemProps><itemName Sync="TRUE">ED55Scenario_2018Final</itemName><imsContentType Sync="TRUE">002</imsContentType><itemLocation><linkage Sync="TRUE">file://\\L-CND7463L8C\C$\Working\Electoral_Boundaries_Commission\2018\Data\ENS_Basedata_2019_Official.gdb</linkage><protocol Sync="TRUE">Local Area Network</protocol></itemLocation></itemProps><coordRef><type Sync="TRUE">Projected</type><geogcsn Sync="TRUE">GCS_North_American_1983_CSRS</geogcsn><csUnits Sync="TRUE">Linear Unit: Meter (1.000000)</csUnits><projcsn Sync="TRUE">NAD_1983_CSRS_UTM_Zone_20N</projcsn><peXml Sync="TRUE">&lt;ProjectedCoordinateSystem xsi:type='typens:ProjectedCoordinateSystem' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.5'&gt;&lt;WKT&gt;PROJCS[&amp;quot;NAD_1983_CSRS_UTM_Zone_20N&amp;quot;,GEOGCS[&amp;quot;GCS_North_American_1983_CSRS&amp;quot;,DATUM[&amp;quot;D_North_American_1983_CSRS&amp;quot;,SPHEROID[&amp;quot;GRS_1980&amp;quot;,6378137.0,298.257222101]],PRIMEM[&amp;quot;Greenwich&amp;quot;,0.0],UNIT[&amp;quot;Degree&amp;quot;,0.0174532925199433]],PROJECTION[&amp;quot;Transverse_Mercator&amp;quot;],PARAMETER[&amp;quot;False_Easting&amp;quot;,500000.0],PARAMETER[&amp;quot;False_Northing&amp;quot;,0.0],PARAMETER[&amp;quot;Central_Meridian&amp;quot;,-63.0],PARAMETER[&amp;quot;Scale_Factor&amp;quot;,0.9996],PARAMETER[&amp;quot;Latitude_Of_Origin&amp;quot;,0.0],UNIT[&amp;quot;Meter&amp;quot;,1.0],AUTHORITY[&amp;quot;EPSG&amp;quot;,2961]]&lt;/WKT&gt;&lt;XOrigin&gt;-5120900&lt;/XOrigin&gt;&lt;YOrigin&gt;-9998100&lt;/YOrigin&gt;&lt;XYScale&gt;10000&lt;/XYScale&gt;&lt;ZOrigin&gt;-100000&lt;/ZOrigin&gt;&lt;ZScale&gt;10000&lt;/ZScale&gt;&lt;MOrigin&gt;-100000&lt;/MOrigin&gt;&lt;MScale&gt;10000&lt;/MScale&gt;&lt;XYTolerance&gt;0.001&lt;/XYTolerance&gt;&lt;ZTolerance&gt;0.001&lt;/ZTolerance&gt;&lt;MTolerance&gt;0.001&lt;/MTolerance&gt;&lt;HighPrecision&gt;true&lt;/HighPrecision&gt;&lt;WKID&gt;2038&lt;/WKID&gt;&lt;LatestWKID&gt;2961&lt;/LatestWKID&gt;&lt;/ProjectedCoordinateSystem&gt;</peXml></coordRef><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.0\ArcToolbox\Toolboxes\Data Management Tools.tbx\CopyFeatures" Date="20130604" Time="084614">CopyFeatures "G:\develop\electoral_GIS\BaseData\Electoral Geography\ENS_Basedata_Working.gdb\ED2012_Analysis" "G:\develop\electoral_GIS\BaseData\Electoral Geography\ENS_Basedata_Official.gdb\ED2012_Analysis" # 0 0 0</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CopyFeatures" Date="20161004" Time="134746">CopyFeatures G:\develop\Data\Basedata\Electoral_Geography\ENS_Basedata_Official_1.gdb\ED2012_Analysis G:\develop\Data\Basedata\Electoral_Geography\ENS_Basedata_Official.gdb\ED2012_Analysis # 0 0 0</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093732">CalculateField BlankSlate_NSED electorcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093739">CalculateField BlankSlate_NSED civicaddresscount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093746">CalculateField BlankSlate_NSED dwellingcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093753">CalculateField BlankSlate_NSED censuselectorcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093759">CalculateField BlankSlate_NSED censuspopulationcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20180924" Time="093806">CalculateField BlankSlate_NSED censusareacount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181017" Time="143431">CalculateField "Tool Specific\Calculation\Edit_ElectoralDistricts" electorcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181017" Time="143441">CalculateField "Tool Specific\Calculation\Edit_ElectoralDistricts" dwellingcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181017" Time="143451">CalculateField "Tool Specific\Calculation\Edit_ElectoralDistricts" censuselectorcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181017" Time="143500">CalculateField "Tool Specific\Calculation\Edit_ElectoralDistricts" censuspopulationcount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181017" Time="143510">CalculateField "Tool Specific\Calculation\Edit_ElectoralDistricts" censusareacount 0 VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.5\ArcToolbox\Toolboxes\Conversion Tools.tbx\FeatureClassToFeatureClass" Date="20191219" Time="073917">FeatureClassToFeatureClass G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final C:\Working\Electoral_Boundaries_Commission\2018\Data\ENS_Basedata_2019_Official.gdb\ED_PD_2019 ED55Scenario_2018Final # "ED_NO "ED_NO" true true false 3 Text 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,ED_NO,-1,-1;ED_NAME "ED_NAME" true true false 50 Text 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,ED_NAME,-1,-1;Release_Date "Release_Date" true true false 20 Text 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,Release_Date,-1,-1;electorcount "electorcount" true true false 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,electorcount,-1,-1;civicaddresscount "civicaddresscount" true true false 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,civicaddresscount,-1,-1;dwellingcount "dwellingcount" true true false 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,dwellingcount,-1,-1;censuselectorcount "censuselectorcount" true true false 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,censuselectorcount,-1,-1;censuspopulationcount "censuspopulationcount" true true false 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,censuspopulationcount,-1,-1;censusareacount "censusareacount" true true false 2 Short 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,censusareacount,-1,-1;Shape_Length "Shape_Length" false true true 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,Shape_Length,-1,-1;Shape_Area "Shape_Area" false true true 8 Double 0 0 ,First,#,G:\develop\Electoral_Boundaries_Commission\2018\Data\FinalReportScenario\NSBndCommission2018_Data.gdb\ED55Scenario_2018Final,Shape_Area,-1,-1" #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.5\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191219" Time="085348">CalculateField ED55Scenario_2018Final Release_Date "October 30, 2019" VB #</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.5\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191219" Time="093042">CalculateField ED55Scenario_2018Final Release_Date "October 30, 2019" VB #</Process></lineage></DataProperties><SyncDate>20191219</SyncDate><SyncTime>07391600</SyncTime><ModDate>20191219</ModDate><ModTime>07391600</ModTime></Esri><dataIdInfo><envirDesc Sync="TRUE"> Version 6.2 (Build 9200) ; Esri ArcGIS 10.5.1.7333</envirDesc><dataLang><languageCode value="eng" Sync="TRUE"></languageCode><countryCode value="CAN" Sync="TRUE"></countryCode></dataLang><idCitation><resTitle Sync="TRUE">ED55Scenario_2018Final</resTitle><presForm><PresFormCd value="005" Sync="TRUE"></PresFormCd></presForm></idCitation><spatRpType><SpatRepTypCd value="001" Sync="TRUE"></SpatRepTypCd></spatRpType></dataIdInfo><mdLang><languageCode value="eng" Sync="TRUE"></languageCode><countryCode value="CAN" Sync="TRUE"></countryCode></mdLang><distInfo><distFormat><formatName Sync="TRUE">File Geodatabase Feature Class</formatName></distFormat></distInfo><mdHrLv><ScopeCd value="005" Sync="TRUE"></ScopeCd></mdHrLv><mdHrLvName Sync="TRUE">dataset</mdHrLvName><refSysInfo><RefSystem><refSysID><identCode code="2961" Sync="TRUE"></identCode><idCodeSpace Sync="TRUE">EPSG</idCodeSpace><idVersion Sync="TRUE">6.13(9.3.0.0)</idVersion></refSysID></RefSystem></refSysInfo><spatRepInfo><VectSpatRep><geometObjs Name="ED55Scenario_2018Final"><geoObjTyp><GeoObjTypCd value="002" Sync="TRUE"></GeoObjTypCd></geoObjTyp><geoObjCnt Sync="TRUE">0</geoObjCnt></geometObjs><topLvl><TopoLevCd value="001" Sync="TRUE"></TopoLevCd></topLvl></VectSpatRep></spatRepInfo><spdoinfo><ptvctinf><esriterm Name="ED55Scenario_2018Final"><efeatyp Sync="TRUE">Simple</efeatyp><efeageom code="4" Sync="TRUE"></efeageom><esritopo Sync="TRUE">FALSE</esritopo><efeacnt Sync="TRUE">0</efeacnt><spindex Sync="TRUE">TRUE</spindex><linrefer Sync="TRUE">FALSE</linrefer></esriterm></ptvctinf></spdoinfo><eainfo><detailed Name="ED55Scenario_2018Final"><enttyp><enttypl Sync="TRUE">ED55Scenario_2018Final</enttypl><enttypt Sync="TRUE">Feature Class</enttypt><enttypc Sync="TRUE">0</enttypc></enttyp><attr><attrlabl Sync="TRUE">OBJECTID</attrlabl><attalias Sync="TRUE">OBJECTID</attalias><attrtype Sync="TRUE">OID</attrtype><attwidth Sync="TRUE">4</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Internal feature number.</attrdef><attrdefs Sync="TRUE">ESRI</attrdefs><attrdomv><udom Sync="TRUE">Sequential unique whole numbers that are automatically generated.</udom></attrdomv></attr><attr><attrlabl Sync="TRUE">Shape</attrlabl><attalias Sync="TRUE">Shape</attalias><attrtype Sync="TRUE">Geometry</attrtype><attwidth Sync="TRUE">0</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Feature geometry.</attrdef><attrdefs Sync="TRUE">ESRI</attrdefs><attrdomv><udom Sync="TRUE">Coordinates defining the features.</udom></attrdomv></attr><attr><attrlabl Sync="TRUE">ED_NO</attrlabl><attalias Sync="TRUE">ED_NO</attalias><attrtype Sync="TRUE">String</attrtype><attwidth Sync="TRUE">3</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">ED_NAME</attrlabl><attalias Sync="TRUE">ED_NAME</attalias><attrtype Sync="TRUE">String</attrtype><attwidth Sync="TRUE">50</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">Release_Date</attrlabl><attalias Sync="TRUE">Release_Date</attalias><attrtype Sync="TRUE">String</attrtype><attwidth Sync="TRUE">20</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">electorcount</attrlabl><attalias Sync="TRUE">electorcount</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">civicaddresscount</attrlabl><attalias Sync="TRUE">civicaddresscount</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">dwellingcount</attrlabl><attalias Sync="TRUE">dwellingcount</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">censuselectorcount</attrlabl><attalias Sync="TRUE">censuselectorcount</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">censuspopulationcount</attrlabl><attalias Sync="TRUE">censuspopulationcount</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">censusareacount</attrlabl><attalias Sync="TRUE">censusareacount</attalias><attrtype Sync="TRUE">SmallInteger</attrtype><attwidth Sync="TRUE">2</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">Shape_Length</attrlabl><attalias Sync="TRUE">Shape_Length</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Length of feature in internal units.</attrdef><attrdefs Sync="TRUE">ESRI</attrdefs><attrdomv><udom Sync="TRUE">Positive real numbers that are automatically generated.</udom></attrdomv></attr><attr><attrlabl Sync="TRUE">Shape_Area</attrlabl><attalias Sync="TRUE">Shape_Area</attalias><attrtype Sync="TRUE">Double</attrtype><attwidth Sync="TRUE">8</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Area of feature in internal units squared.</attrdef><attrdefs Sync="TRUE">ESRI</attrdefs><attrdomv><udom Sync="TRUE">Positive real numbers that are automatically generated.</udom></attrdomv></attr></detailed></eainfo><mdDateSt Sync="TRUE">20191219</mdDateSt></metadata>
Binary file not shown.
17 changes: 17 additions & 0 deletions boundaries/ocd-division/country:ca/province:ns/2019/definition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import re
from datetime import date

import boundaries

boundaries.register('Nova Scotia electoral districts (2019)',
singular='Nova Scotia electoral district',
domain='Nova Scotia',
last_updated=date(2020, 3, 1),
name_func=boundaries.dashed_attr('ED_NAME'),
id_func=lambda f: re.sub(r'\A0', '', f.get('ED_NO')),
authority='Her Majesty the Queen in Right of Nova Scotia',
source_url='https://www.electionsnovascotia.ca/Maps%20for%20the41st%20Provincial%20General%20Election',
data_url='https://www.electionsnovascotia.ca/sites/default/files/NS_2019ED_Bnds.zip',
encoding='iso-8859-1',
extra={'division_id': 'ocd-division/country:ca/province:ns'},
)