Commit 48283bc7 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle

add kenyan rivers

parent 775b9a03
#' Kenyan rivers
#'
#' river shapefile convert into R format.
#' The original dataset is available at http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya
#'
#' @docType data
#' @name river_kenya
#' @format A rda file
#' @keywords datasets
#' @references National Imagery and Mapping Agency of the United States (NIMA). 1997. VMAP_1V10 - Vector Map Level 0 (Digital Chart of the World). Washington, DC: NIMA.
#' @source \href{http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya}{WRI}
NULL
......@@ -3,17 +3,22 @@
## Description
The package gathers river shapefiles converted into sf spatial object.
All the data comes from [NVE](https://nve.no) at this [link](http://nedlasting.nve.no/gis/).
Datasets embedded into this package are **not** official datasets.
This is **not** an official package built by NVE.
Sofar only Norwegian rivers are included in this dataset.
To be used with caution.
## Attribution
1. Copyright NVE
2. Source [NVE](https://nve.no)
3. License Statement: This data is published under the Norwegian license for Public Data [NLOD](https://data.norge.no/nlod/no).
4. Disclaimer: NVE fraskriver seg ansvar for skade som skyldes feil i data og feil bruk av data..
5. The dataset is not the official dataset and got some changes: i) the structure and the format of the data have been adapted to be read by the R-package [sf](https://github.com/r-spatial/sf), ii) the dataset respect the UTF-8 format, iii) all the other values have been kept as they were.
### Available river datasets
Country | source | Licensing
--- | --- | ---
Norway | [NVE](http://nedlasting.nve.no/gis/) |[NLOD](https://data.norge.no/nlod/no)
Kenya | [WRI](http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya) |[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
The dataset cited above got some changes:
i) the structure and the format of the data have been adapted to be read by the R-package [sf](https://github.com/r-spatial/sf),
ii) the dataset respect the UTF-8 format,
iii) all the other values have been kept as they were.
## Installation
......
##########################
# Rivers from Norway #
##########################
# install.packages("devtools")
devtools::install_github("jeanmarie-eu/river")
install.packages("sf")
......@@ -9,3 +12,12 @@ library(sf)
data(river_norway)
river_norway <- st_as_sf(river_norway)
save(river_norway,file="river_norway.rda",compress="xz")
##########################
# Rivers from Kenya #
##########################
# source: http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya
path <- "/storage/home/jml/02-data/kenya/gis/kemajor-rivers"
river_kenya <- sf::read_sf(file.path(path,"ke_major-rivers.shp"))
save(river_kenya,file="river_kenya.rda",compress="xz")
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/river_kenya.R
\docType{data}
\name{river_kenya}
\alias{river_kenya}
\title{Kenyan rivers}
\format{A rda file}
\source{
\href{http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya}{WRI}
}
\description{
river shapefile convert into R format.
The original dataset is available at http://datasets.wri.org/dataset/permanent-and-non-permanent-rivers-in-kenya
}
\references{
National Imagery and Mapping Agency of the United States (NIMA). 1997. VMAP_1V10 - Vector Map Level 0 (Digital Chart of the World). Washington, DC: NIMA.
}
\keyword{datasets}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment