rgugik
rgugik: Search and Retrieve Spatial Data from the Polish Head Office of Geodesy and Cartography in R - Published in JOSS (2021)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 8 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
cartography
geodesy
gis
open-data
poland
r
Scientific Fields
Earth and Environmental Sciences
Physical Sciences -
40% confidence
Engineering
Computer Science -
40% confidence
Last synced: 6 months ago
·
JSON representation
Repository
Download datasets from Polish Head Office of Geodesy and Cartography
Basic Info
- Host: GitHub
- Owner: kadyb
- License: other
- Language: R
- Default Branch: master
- Homepage: https://kadyb.github.io/rgugik/
- Size: 7.4 MB
Statistics
- Stars: 33
- Watchers: 4
- Forks: 5
- Open Issues: 9
- Releases: 2
Topics
cartography
geodesy
gis
open-data
poland
r
Created over 5 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Changelog
Contributing
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rgugik
[](https://cran.r-project.org/package=rgugik)
[](https://github.com/kadyb/rgugik/actions)
[](https://app.codecov.io/gh/kadyb/rgugik)
[](https://opensource.org/license/mit)
[](https://doi.org/10.21105/joss.02948)
**rgugik** is an R package for downloading open data from resources of [Polish Head Office of Geodesy and Cartography](https://www.gov.pl/web/gugik) including:
- [Orthophotomaps](https://www.geoportal.gov.pl/pl/dane/ortofotomapa-orto/)
- [General Geographic Database](https://www.geoportal.gov.pl/pl/dane/baza-danych-obiektow-ogolnogeograficznych-bdoo/)
- [Topographic Database](https://www.geoportal.gov.pl/pl/dane/baza-danych-obiektow-topograficznych-bdot10k/)
- [Register of Towns, Streets and Addresses](https://emuia.gugik.gov.pl)
- [State Register of Geographical Names](https://www.geoportal.gov.pl/pl/dane/panstwowy-rejestr-nazw-geograficznych-prng/)
- [State Register of Borders](https://www.geoportal.gov.pl/pl/dane/panstwowy-rejestr-granic-prg/)
- [Land and Building Registers](https://www.geoportal.gov.pl/pl/dane/ewidencja-gruntow-i-budynkow-egib/)
- Location (geometry) of cadastral parcels using TERYT (parcel ID) or coordinates
- [3D models of buildings](https://www.geoportal.gov.pl/pl/dane/inne-dane/modele-3d-budynkow/)
- Various digital elevation models as:
- [Digital terrain model](https://www.geoportal.gov.pl/pl/dane/numeryczny-model-terenu-nmt/)
- [Digital surface model](https://www.geoportal.gov.pl/pl/dane/numeryczny-model-pokrycia-terenu-nmpt/)
- [Point cloud](https://www.geoportal.gov.pl/pl/dane/dane-pomiarowe-lidar-lidar/)
It is also possible to geocode addresses or objects using the `geocodePL_get()` function.
**Corresponding functions**
```{r echo=FALSE}
ds_pl = c("Ortofotomapa",
"Baza Danych Obiektów Ogólnogeograficznych",
"Baza Danych Obiektów Topograficznych",
"Ewidencja Miejscowości, Ulic i Adresów",
"Ewidencja Gruntów i Budynków",
"Państwowy Rejestr Nazw Geograficznych",
"Państwowy Rejestr Granic",
"Lokalizacja działek katastralnych",
"Modele 3D budynków",
"Cyfrowe modele wysokościowe")
ds_en = c("Orthophotomap",
"General Geographic Database",
"Topographic Database",
"Register of Towns, Streets and Addresses",
"Land and Building Register",
"State Register of Geographical Names",
"State Register of Borders",
"Location of cadastral parcels",
"3D models of buildings",
"Digital elevation models")
fun = c("`ortho_request()`, `tile_download()`",
"`geodb_download()`",
"`topodb_download()`",
"`emuia_download()`",
"`egib_download()`",
"`geonames_download()`",
"`borders_get()`, `borders_download()`",
"`parcel_get()`",
"`models3D_download()`",
"`DEM_request()`, `tile_download()`")
input = c("geometry",
"voivodeship",
"county",
"commune",
"county",
"type",
"type",
"parcel ID, coordinates",
"county",
"geometry")
df = data.frame(fun, input, ds_en, ds_pl)
colnames(df) = c("Function", "Input", "Dastaset EN", "Dataset PL")
knitr::kable(df)
```
There are the additional functions for obtaining digital terrain model:
- `pointDTM_get()` for small areas (high resolution grid)
- `pointDTM100_download()` for voivodeships areas (low resolution grid)
- `minmaxDTM_get()` to find the minimum and maximum elevation (small areas)
The names of administrative units and their IDs are included in these objects:
- `voivodeship_names` (16)
- `county_names` (380)
- `commune_names` (2479)
## Installation
You can install the released version from [CRAN](https://cran.r-project.org/) with:
```{r eval=FALSE}
install.packages("rgugik")
```
You can install the development version from [GitHub](https://github.com) with:
```{r message=FALSE, warning=FALSE, eval=FALSE}
# install.packages("remotes")
remotes::install_github("kadyb/rgugik")
```
## Usage
### Orthophotomap
- `ortho_request()` - returns a data frame with metadata and links to the orthoimages for a given geometry (point, line or polygon)
- `tile_download()` - downloads orthoimages based on the data frame obtained using the `ortho_request()` function
```{r f1, message=FALSE, warning=FALSE}
library(rgugik)
library(sf)
library(stars)
polygon_path = system.file("datasets/search_area.gpkg", package = "rgugik")
polygon = read_sf(polygon_path)
req_df = ortho_request(polygon)
# select the oldest image
req_df = req_df[req_df$year == 2001, ]
# print metadata
t(req_df)
# download image
tile_download(req_df)
img = read_stars("41_3756_N-33-130-D-b-2-3.tif")
plot(st_rgb(img), main = NULL)
```
```{r echo=FALSE, message=FALSE}
invisible(file.remove("41_3756_N-33-130-D-b-2-3.tif"))
```
### Administrative boundaries
```{r f2}
library(rgugik)
library(sf)
# get counties from opolskie voivodeship (TERYT 16)
counties = county_names
counties = counties[substr(counties$TERYT, 1, 2) == "16", "TERYT"]
counties_geom = borders_get(TERYT = counties)
plot(st_geometry(counties_geom), main = "Opolskie")
```
### Vignettes
More advanced examples of the practical (step by step) use of this package can be found in the vignettes:
- [Orthophotomap](https://kadyb.github.io/rgugik/articles/orthophotomap.html)
- [Digital elevation model](https://kadyb.github.io/rgugik/articles/DEM.html)
- [Topographic Database](https://kadyb.github.io/rgugik/articles/topodb.html)
## Acknowledgment
[Head Office of Geodesy and Cartography in Poland](https://www.gov.pl/web/gugik) is the main source of the provided data. The data is made available in accordance with the [Act of May 17, 1989 Geodetic and Cartographic Law](https://isap.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU19890300163) (amended on 16 April 2020).
All datasets can be explored interactively using the [Geoportal](https://mapy.geoportal.gov.pl).
## Contribution
Contributions to this package are welcome.
The preferred method of contribution is through a GitHub pull request.
Feel also free to contact us by creating [an issue](https://github.com/kadyb/rgugik/issues).
More detailed information can be found in the [CONTRIBUTING](https://github.com/kadyb/rgugik/blob/master/CONTRIBUTING.md) document.
Maintainers and contributors must follow this repository’s [CODE OF CONDUCT](https://github.com/kadyb/rgugik/blob/master/CODE_OF_CONDUCT.md).
## Citation
To cite **rgugik** in publications, please use the following [article](https://doi.org/10.21105/joss.02948):
```
Dyba, K. and Nowosad, J. (2021). rgugik: Search and Retrieve Spatial Data from the Polish Head Office of Geodesy and Cartography in R. Journal of Open Source Software, 6(59), 2948, https://doi.org/10.21105/joss.02948
```
BibTeX version can be obtained with `citation("rgugik")`.
## Related projects
If you don't feel familiar with R, there is a similar [QGIS](https://www.qgis.org/) tool in the [EnviroSolutions](https://github.com/envirosolutionspl) repository.
Owner
- Name: Krzysztof Dyba
- Login: kadyb
- Kind: user
- Location: Poland
- Company: Adam Mickiewicz University
- Twitter: krzysztof_dyba
- Repositories: 9
- Profile: https://github.com/kadyb
Spatial Data Science | Remote Sensing | R
JOSS Publication
rgugik: Search and Retrieve Spatial Data from the Polish Head Office of Geodesy and Cartography in R
Published
March 16, 2021
Volume 6, Issue 59, Page 2948
Authors
Tags
spatial data data retrieval open data Poland GeoportalGitHub Events
Total
- Issues event: 17
- Watch event: 1
- Issue comment event: 32
- Push event: 90
- Pull request review event: 8
- Pull request review comment event: 8
- Pull request event: 2
- Fork event: 2
Last Year
- Issues event: 17
- Watch event: 1
- Issue comment event: 32
- Push event: 90
- Pull request review event: 8
- Pull request review comment event: 8
- Pull request event: 2
- Fork event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Krzysztof Dyba | 3****b | 468 |
| Nowosad | t****i@g****m | 91 |
| Maciej | m****z@g****m | 16 |
| Grzegorz Sapijaszko | g****z@s****t | 1 |
| Arfon Smith | a****n | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 72
- Total pull requests: 36
- Average time to close issues: 23 days
- Average time to close pull requests: 4 days
- Total issue authors: 12
- Total pull request authors: 5
- Average comments per issue: 4.32
- Average comments per pull request: 2.78
- Merged pull requests: 31
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 9
- Pull requests: 1
- Average time to close issues: 30 days
- Average time to close pull requests: 28 days
- Issue authors: 4
- Pull request authors: 1
- Average comments per issue: 1.56
- Average comments per pull request: 11.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- kadyb (39)
- Nowosad (10)
- mikerspencer (6)
- wacekk (4)
- adamhsparks (3)
- jozphlp (2)
- voss-m (2)
- BERENZ (2)
- uzawadzka (1)
- pbiecek (1)
- bodrgit (1)
- j-miszczyszyn (1)
Pull Request Authors
- kadyb (20)
- Nowosad (12)
- gsapijaszko (2)
- BERENZ (2)
- arfon (1)
Top Labels
Issue Labels
bug (22)
enhancement (18)
documentation (11)
question (2)
help wanted (2)
Pull Request Labels
enhancement (1)
help wanted (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 395 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: rgugik
Search and Retrieve Spatial Data from 'GUGiK'
- Homepage: https://kadyb.github.io/rgugik/
- Documentation: http://cran.r-project.org/web/packages/rgugik/rgugik.pdf
- License: MIT + file LICENSE
-
Latest release: 0.4.2
published 12 months ago
Rankings
Stargazers count: 9.0%
Forks count: 17.8%
Downloads: 21.9%
Average: 22.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5 depends
- jsonlite * imports
- openssl * imports
- sf * imports
- curl * suggests
- knitr * suggests
- rmarkdown * suggests
- stars * suggests
- terra * suggests
- testthat * suggests
.github/workflows/lintr.yml
actions
- actions/cache v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-r v2 composite
.github/workflows/pkgdown.yml
actions
- actions/cache v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
.github/workflows/rcmdcheck.yml
actions
- actions/cache v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
.github/workflows/test-coverage.yml
actions
- actions/cache v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
