-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from bcgov/add_water
Add water
- Loading branch information
Showing
18 changed files
with
173 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2017 Province of British Columbia | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and limitations under the License. | ||
|
||
#' Polygons delineating British Columbia's Water Management Districts. Water Districts are | ||
#' administrative areas established by the WATER REGULATIONS. | ||
#' | ||
#' @format A spatialPolygonsDataFrame with polygons delineating Water Management Districts for British Columbia. | ||
#' | ||
#' @source Original data from | ||
#' \href{https://catalogue.data.gov.bc.ca/dataset/water-management-districts}{}, | ||
#' under the | ||
#' \href{http://www2.gov.bc.ca/gov/content/data/open-data/open-government-license-bc}{Open | ||
#' Government License - British Columbia}. | ||
#' | ||
"water_districts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2017 Province of British Columbia | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and limitations under the License. | ||
|
||
#' Polygons delineating British Columbia's Water Management Precincts. Water Precincts are | ||
#' jurisdictional areas within a Water District. | ||
#' | ||
#' @format A spatialPolygonsDataFrame with polygons delineating Water Management Precincts for British Columbia. | ||
#' | ||
#' @source Original data from | ||
#' \href{https://catalogue.data.gov.bc.ca/dataset/water-management-precincts}{}, | ||
#' under the | ||
#' \href{http://www2.gov.bc.ca/gov/content/data/open-data/open-government-license-bc}{Open | ||
#' Government License - British Columbia}. | ||
#' | ||
"water_precincts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2017 Province of British Columbia | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and limitations under the License. | ||
|
||
library("sp") | ||
library("rgdal") | ||
library("devtools") | ||
|
||
water_districts_zip <- "data-raw/water_districts/BCGW_78757263_1494953755959_11056.zip" | ||
|
||
unzip(water_districts_zip, exdir = "data-raw/water_districts") | ||
|
||
water_districts <- readOGR(dsn = "data-raw/water_districts/LWADM_DA", | ||
layer = "LWADM_DA_polygon", stringsAsFactors = FALSE) | ||
|
||
water_districts <- spTransform(water_districts, "+init=epsg:3005") | ||
|
||
use_data(water_districts, overwrite = TRUE, compress = "xz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2017 Province of British Columbia | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and limitations under the License. | ||
|
||
library("sp") | ||
library("rgdal") | ||
library("devtools") | ||
|
||
water_precincts_zip <- "data-raw/water_precincts/BCGW_78757263_1494953784758_11056.zip" | ||
|
||
unzip(water_precincts_zip, exdir = "data-raw/water_precincts") | ||
|
||
water_precincts <- readOGR(dsn = "data-raw/water_precincts/LWADM_PA", | ||
layer = "LWADM_PA_polygon", stringsAsFactors = FALSE) | ||
|
||
water_precincts <- spTransform(water_precincts, "+init=epsg:3005") | ||
|
||
use_data(water_precincts, overwrite = TRUE, compress = "xz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LWADM_DA | ||
contents_of_order.txt | ||
licence.txt | ||
LWADM_DA.html | ||
README.txt |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## BC Water Management Districts | ||
|
||
The file `BCGW_78757263_1494953755959_11056.zip` contains the British Columbia Water Management District polygons, downloaded from the [BC Data Catalogue](https://catalogue.data.gov.bc.ca/dataset/water-management-districts) under the ([Open Government License - British Columbia](http://www2.gov.bc.ca/gov/content/data/open-data/open-government-license-bc)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LWADM_PA | ||
contents_of_order.txt | ||
licence.txt | ||
LWADM_PA.html | ||
README.txt |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## BC Water Management Precincts | ||
|
||
The file `BCGW_78757263_1494953784758_11056.zip` contains the British Columbia Water Management Precinct polygons, downloaded from the [BC Data Catalogue](https://catalogue.data.gov.bc.ca/dataset/water-management-precincts) under the ([Open Government License - British Columbia](http://www2.gov.bc.ca/gov/content/data/open-data/open-government-license-bc)). |
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.