Skip to content

Commit

Permalink
Merge pull request #2 from jlacko/sf-dev
Browse files Browse the repository at this point in the history
sf is ready for release
  • Loading branch information
jlacko authored Feb 1, 2018
2 parents 60815c6 + 0562547 commit 2cd7616
Show file tree
Hide file tree
Showing 44 changed files with 300,804 additions and 253 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
^data-raw$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
.Ruserdata
inst/doc
26 changes: 22 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
language: r
dist: trusty
sudo: false
cache: packages

cache:
packages: yes

addons:
apt:
packages:
- gdal-bin
- libproj-dev
- gcc-4.8
- libv8-3.14-dev
- libprotobuf-dev
- protobuf-compiler
- libudunits2-dev

before_install:
- sudo add-apt-repository ppa:ubuntugis/ppa --yes
- sudo add-apt-repository -y ppa:opencpu/jq
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev libjq-dev
33 changes: 19 additions & 14 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
Package: RCzechia
Type: Package
Title: A selection of spatial objects relevant to the Czech Republic
Version: 0.1.4
Date: 2017-11-10
Version: 1.0.2
Date: 2018-01-28
Author: Jindra Lacko
Maintainer: Jindra Lacko <jindra.lacko@gmail.com>
Description: This package provides a set of spatial objects for easier work with geospatial data relevant to the Czech Republic.
Maintainer: Jindra Lacko <jindra@jla-data.net>
Description: Data package providing a set of spatial objects relevant to the Czech Republic in sf format.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Depends:
R (>= 3.0.0),
sp
suggests:
tmap,
tmaptools,
rgdal,
rgeos,
ggmap,
raster
Depends:
R (>= 3.3.0)
Imports:
sf,
units
Suggests:
tidyverse,
tmap,
rgdal,
rgeos,
lwgeom,
ggmap,
knitr,
rmarkdown
RoxygenNote: 6.0.1
VignetteBuilder: knitr
14 changes: 0 additions & 14 deletions R/Praha.R

This file was deleted.

11 changes: 11 additions & 0 deletions R/casti.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#' Districts (mestske casti) of Prague and other major cities.
#'
#' @format 57 districts (mestske casti) of Prague, as a sf data frame:
#' \describe{
#' \item{KOD}{Code of the city part / kod mestske casti}
#' \item{NAZEV}{Name of the city part / nazev mestske casti}
#' \item{KOD_OBEC}{Code of the city}
#' \item{NAZ_OBEC}{Name of the city}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"casti"
10 changes: 10 additions & 0 deletions R/kraje.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#' Regions (kraje) of the Czech Republic. NUTS3 administrative unit for the Czech Republic.
#'
#' @format 14 regions of the Czech Republic, as a sf data frame:
#' \describe{
#' \item{KOD_KRAJ}{Code of the region, primary key. Use this as key to add other data items.}
#' \item{KOD_CZNUTS3}{Code of the region (kraj).}
#' \item{NAZ_CZNUTS3}{Name of the region (kraj).}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"kraje"
30 changes: 15 additions & 15 deletions R/obce_body.R
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#' Municipalities / communes (obce) of the Czech Republic. LAU2 administrative unit for the Czech Republic.
#'
#' A Large SpatialPointsDataFrame containing the municipalities of the Czech Republic.
#'
#' @format 6.258 municipalities of the Czech Republic, as a SpatialPointsDataFrame:
#' @format 6.258 municipalities of the Czech Republic, as a sf data frame:
#' \describe{
#' \item{KOD_OBEC}{Code of the municipality (obec), primary key. Use this as key to add other data items.}
#' \item{KOD_LAU1}{Code of the district (okres).}
#' \item{KOD_CZNUTS3}{Code of the region (kraj).}
#' \item{Obec}{Name of the municipality. With Czech accents.}
#' \item{KOD_POV}{Code of the level II commune (obec s poverenym uradem).}
#' \item{PovObec}{Name of the level II commune (obec s poverenym uradem). With Czech accents.}
#' \item{KOD_ROZ}{Code of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{RozObec}{Name of the level III commune (obec s rozsirenou pusobnosti). With Czech accents.}
#' \item{Okres}{Name of the district (okres). With Czech accents.}
#' \item{Kraj}{Name of the region (kraj). With Czech accents.}
#' \item{Obyvatel}{Population, as of 2017-01-01. Source: Czech Statistial Office}
#' \item{Obyvatel15p}{Population 15+, as of 2017-01-01. Source: Czech Statistial Office}
#' \item{KOD_OBEC}{Code of the level I commune (obec).}
#' \item{NAZ_OBEC}{Short name of the level I commune (obec).}
#' \item{KOD_ZUJ}{Code of the basic administrative unit (ICZUJ).}
#' \item{NAZ_ZUJ}{Name of the basic administrative unit (ICZUJ).}
#' \item{KOD_POU}{Code of the level II commune (obec s poverenym uradem).}
#' \item{NAZ_POU}{Name of the level II commune (obec s poverenym uradem)).}
#' \item{KOD_ORP}{Code of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{NAZ_ORP}{Full name of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{KOD_OKRES}{Code of the district (okres).}
#' \item{KOD_LAU1}{Code of the level 1 administrative unit (okres).}
#' \item{NAZ_LAU1}{Name of the level 1 administrative unit (okres).}
#' \item{KOD_KRAJ}{Code of the region (kraj).}
#' \item{KOD_CZNUTS2}{Code of the NUTS3 unit (kraj)}
#' \item{NAZ_CZNUTS2}{Name of the NUTS3 unit (kraj)}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"obce_body"
30 changes: 15 additions & 15 deletions R/obce_polygony.R
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#' Municipalities / communes (obce) of the Czech Republic. LAU2 administrative unit for the Czech Republic.
#'
#' A Large SpatialPolygonsDataFrame containing the municipalities of the Czech Republic.
#'
#' @format 6.258 municipalities of the Czech Republic, as a SpatialPolygonsDataFrame:
#' @format 6.258 municipalities of the Czech Republic, as a sf data frame:
#' \describe{
#' \item{KOD_OBEC}{Code of the municipality (obec), primary key. Use this as key to add other data items.}
#' \item{KOD_LAU1}{Code of the district (okres).}
#' \item{KOD_CZNUTS3}{Code of the region (kraj).}
#' \item{Obec}{Name of the municipality. With Czech accents.}
#' \item{KOD_POV}{Code of the level II commune (obec s poverenym uradem).}
#' \item{PovObec}{Name of the level II commune (obec s poverenym uradem). With Czech accents.}
#' \item{KOD_ROZ}{Code of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{RozObec}{Name of the level III commune (obec s rozsirenou pusobnosti). With Czech accents.}
#' \item{Okres}{Name of the district (okres). With Czech accents.}
#' \item{Kraj}{Name of the region (kraj). With Czech accents.}
#' \item{Obyvatel}{Population, as of 2017-01-01. Source: Czech Statistial Office}
#' \item{Obyvatel15p}{Population 15+, as of 2017-01-01. Source: Czech Statistial Office}
#' \item{KOD_OBEC}{Code of the level I commune (obec).}
#' \item{NAZ_OBEC}{Short name of the level I commune (obec).}
#' \item{KOD_ZUJ}{Code of the basic administrative unit (ICZUJ).}
#' \item{NAZ_ZUJ}{Name of the basic administrative unit (ICZUJ).}
#' \item{KOD_POU}{Code of the level II commune (obec s poverenym uradem).}
#' \item{NAZ_POU}{Name of the level II commune (obec s poverenym uradem)).}
#' \item{KOD_ORP}{Code of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{NAZ_ORP}{Full name of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{KOD_OKRES}{Code of the district (okres).}
#' \item{KOD_LAU1}{Code of the level 1 administrative unit (okres).}
#' \item{NAZ_LAU1}{Name of the level 1 administrative unit (okres).}
#' \item{KOD_KRAJ}{Code of the region (kraj).}
#' \item{KOD_CZNUTS2}{Code of the NUTS3 unit (kraj)}
#' \item{NAZ_CZNUTS2}{Name of the NUTS3 unit (kraj)}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"obce_polygony"
16 changes: 11 additions & 5 deletions R/orp_polygony.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#' Level III Municipalities / communes (obce s rozsirenou pusobnosti) of the Czech Republic
#'
#' A Large SpatialPolygonsDataFrame containing the municipalities of the Czech Republic.
#'
#' @format 205 level III municipalities of the Czech Republic + Prague (#3018), as a SpatialPolygonsDataFrame:
#' @format 205 level III municipalities of the Czech Republic , as a sf data frame:
#' \describe{
#' \item{KOD_ORP}{Code of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{ORP}{Name of the level III commune (obec s rozsirenou pusobnosti). With Czech accents.}
#' \item{Obyvatel}{Population, as of 2017-01-01. Source: Czech Statistial Office}
#' \item{NAZ_ZKR_ORP}{Short name of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{NAZ_ORP}{Full name of the level III commune (obec s rozsirenou pusobnosti).}
#' \item{KOD_RUIAN}{RUIAN (Registr uzemní identifikace, adres a nemovitosti) code.}
#' \item{KOD_OKRES}{Code of the district (okres).}
#' \item{KOD_LAU1}{Code of the level 1 administrative unit (okres).}
#' \item{NAZ_LAU1}{Name of the level 1 administrative unit (okres).}
#' \item{KOD_KRAJ}{Code of the region (kraj).}
#' \item{KOD_KRAJ}{Code of the region (kraj).}
#' \item{KOD_CZNUTS2}{Code of the NUTS3 unit (kraj)}
#' \item{NAZ_CZNUTS2}{Name of the NUTS3 unit (kraj)}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"orp_polygony"
6 changes: 3 additions & 3 deletions R/plochy.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#' Water bodies (vodni plochy) of the Czech Republic
#'
#' A Large SpatialPolygonsDataFrame containing water bodies (vodni plochy) of the Czech Republic.
#'
#' @format 480 water bodies of the Czech Repubic, as a Large SpatialPolygonsDataFrame.
#' @format 480 water bodies of the Czech Repubic, as a sf data frame:
#' \describe{
#' \item{TYP}{Type of water body: 1 = dam, 2 = pond, 3 = lake}
#' \item{NAZEV}{Name, with Czech accents}
#' \item{NAZEV_ASCII}{Name, without Czech accents}
#' \item{VYSKA}{water level, meters above sea level}
#' \item{Major}{Boolean indicating the major water bodies (= Lipno, Orlík, Slapy, Nechranice, Novomlýnské nádrže.)}
#' }
Expand Down
6 changes: 3 additions & 3 deletions R/reky.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#' Rivers (reky) of the Czech Republic
#'
#' A Large SpatialLinesDataFrame containing rivers (reky) of the Czech Republic.
#'
#' @format 6.198 rivers of the Czech Repubic, as a Large SpatialLinesDataFrame.
#' @format 6.198 rivers of the Czech Repubic, as a sf data frame:
#' \describe{
#' \item{TYP}{Type of river: 1 = natural, 2 = man-made, 3 = fictional}
#' \item{NAZEV}{Name, with Czech accents}
#' \item{NAZEV_ASCII}{Name, without Czech accents}
#' \item{Major}{Boolean indicating the major rivers (= Labe, Vltava, Svratka, Morava, Berounka, Sazava, Odra, Dyje, Mze, Radbuza, Uslava, Ohre, Otava).}
#' }
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
Expand Down
4 changes: 1 addition & 3 deletions R/republika.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#' Boundaries of the Czech Republic.
#'
#' A Large SpatialPolygonsDataFrame containing the Czech Republic.
#'
#' @format A Large SpatialPolygonsDataFrame containing the Czech Republic.
#' @format Boundaries of the Czech Republic, as a sf data frame:
#'
#' @source \url{https://www.arcdata.cz/produkty/geograficka-data/arccr-500}
"republika"
Loading

0 comments on commit 2cd7616

Please sign in to comment.