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

Next version #14

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
10 changes: 5 additions & 5 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"title": "inbospatial: A Collection of Useful R Functions for Spatial Data",
"version": "0.0.2",
"version": "0.0.3",
"license": "MIT",
"upload_type": "software",
"description": "<p>Useful R functions developed at the Research Institute for Nature and\nForest (INBO) for dealing with spatial raster or vector data.<\/p>",
"description": "<p>Useful R functions developed at the Research Institute for Nature and Forest (INBO) for dealing with spatial raster or vector data.<\/p>",
"keywords": [
"spatial",
"geospatial",
Expand All @@ -19,17 +19,17 @@
"name": "Van Calster, Hans",
"affiliation": "Research Institute for Nature and Forest (INBO)",
"orcid": "0000-0001-8595-8426",
"type": "ContactPerson"
"type": "contactperson"
},
{
"name": "Vanderhaeghe, Floris",
"affiliation": "Research Institute for Nature and Forest (INBO)",
"orcid": "0000-0002-6378-6229",
"type": "ProjectMember"
"type": "projectmember"
},
{
"name": "Research Institute for Nature and Forest (INBO)",
"type": "RightsHolder"
"type": "rightsholder"
}
],
"creators": [
Expand Down
11 changes: 4 additions & 7 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: 'inbospatial: A Collection of Useful R Functions for Spatial Data'
title: "inbospatial: A Collection of Useful R Functions for Spatial Data"
authors:
- given-names: Hans
family-names: Van Calster
Expand All @@ -22,9 +22,6 @@ doi: ~
license: MIT
repository-code: https://github.com/inbo/inbospatial/
type: software
abstract: Useful R functions developed at the Research Institute for Nature and Forest
(INBO) for dealing with spatial raster or vector data.
identifiers:
- type: url
value: []
version: 0.0.2
abstract: "Useful R functions developed at the Research Institute for Nature and Forest
(INBO) for dealing with spatial raster or vector data."
version: 0.0.3
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: inbospatial
Title: A Collection of Useful R Functions for Spatial Data
Version: 0.0.2
Version: 0.0.3
Authors@R: c(
person("Hans", "Van Calster", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-8595-8426", affiliation = "Research Institute for Nature and Forest (INBO)")),
Expand Down Expand Up @@ -41,4 +41,4 @@ Config/checklist/keywords: spatial; geospatial; utilities; GIS; raster;
Encoding: UTF-8
Language: en-GB
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method(store_as_gml,raw)
export(add_wms_be_cartoweb)
export(add_wms_be_ortho)
export(add_wms_fl_agriculture)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# inbospatial 0.0.3

## Bug fixes

* fix parsing of `geoTIFF` part from `mht` files (internal function)

# inbospatial 0.0.2

## New functions
Expand Down
2 changes: 1 addition & 1 deletion R/get_coverage_wcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
raw_vector <- read_file_raw(path)

assert_that(any(str_detect(lines_char, "image/tiff")))
start <- max(which(str_detect(lines_char, "Content-"))) + 1
start <- which(str_detect(lines_char, "^II\\*"))

Check warning on line 192 in R/get_coverage_wcs.R

View check run for this annotation

Codecov / codecov/patch

R/get_coverage_wcs.R#L192

Added line #L192 was not covered by tests
end <- length(lines_raw) - 1
pos_start <- length(unlist(lines_raw[1:(start - 1)])) + start
pos_end <- length(raw_vector) - (length(lines_raw[end + 1]) + 1)
Expand Down
8 changes: 5 additions & 3 deletions R/get_feature_wfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' The request is made up of key-value pairs and additional key-value pairs can
#' be passed to the function.
#' The full documentation for the `WFS` standard can be consulted from
#' \url{https://www.ogc.org/standard/wfs/}.
#' \url{https://www.ogc.org/publications/standard/wfs/}.
#'
#' @param wfs Web address for the service which you want to query features from
#' @param version Version number for the service.
Expand All @@ -18,7 +18,8 @@
#' Pass this as a named vector with names `"xmin"`, `"xmax"`, `"ymin"`,
#' `"ymax"`.
#' @param filter Optional
#' [standard OGC filter](https://www.ogc.org/standard/filter/) specification
#' [standard OGC filter](https://www.ogc.org/publications/standard/filter/)
#' specification
#' @param cql_filter Optional
#' [Contextual Query Language](https://portal.ogc.org/files/96288) filter.
#' This currently only works if the `WFS` is hosted on a `GeoServer`.
Expand All @@ -40,7 +41,7 @@
#' @importFrom assertthat assert_that is.string
#'
#' @details See
#' \url{https://inbo.github.io/tutorials/tutorials/spatial_wfs_services/}
#' \url{https://tutorials.inbo.be/tutorials/spatial_wfs_services/}
#' for more information.
#' @family topics on using web services
#'
Expand Down Expand Up @@ -187,6 +188,7 @@ store_as_gml <- function(content, ...) {
UseMethod("store_as_gml", content)
}

#' @export
store_as_gml.raw <- function(
content, destfile = tempfile(fileext = "gml"), ...) {
writeBin(content, destfile, useBytes = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/license/mit/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/license/mit)
[![Release](https://img.shields.io/github/release/inbo/inbospatial.svg)](https://github.com/inbo/inbospatial/releases)
![GitHub](https://img.shields.io/github/license/inbo/inbospatial)
[![R build status](https://github.com/inbo/inbospatial/workflows/check%20package%20on%20main/badge.svg)](https://github.com/inbo/inbospatial/actions)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ or
proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/license/mit/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://opensource.org/license/mit)
[![Release](https://img.shields.io/github/release/inbo/inbospatial.svg)](https://github.com/inbo/inbospatial/releases)
![GitHub](https://img.shields.io/github/license/inbo/inbospatial) [![R
build
Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ reference:
- title: Functions to explore properties of coordinate reference systems
contents:
- has_concept("functions to explore properties of coordinate reference systems")

template:
bootstrap: 5

6 changes: 3 additions & 3 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ citHeader("To cite `inbospatial` in publications please use:")
# begin checklist entry
bibentry(
bibtype = "Manual",
title = "inbospatial: A Collection of Useful R Functions for Spatial Data. Version 0.0.2",
title = "inbospatial: A Collection of Useful R Functions for Spatial Data. Version 0.0.3",
author = c( author = c(person(given = "Hans", family = "Van Calster"))),
year = 2023,
year = 2024,
url = "https://github.com/inbo/inbospatial/",
abstract = "Useful R functions developed at the Research Institute for Nature and Forest (INBO) for dealing with spatial raster or vector data.",
textVersion = "Van Calster, Hans (2023) inbospatial: A Collection of Useful R Functions for Spatial Data. Version 0.0.2. https://github.com/inbo/inbospatial/",
textVersion = "Van Calster, Hans (2024) inbospatial: A Collection of Useful R Functions for Spatial Data. Version 0.0.3. https://github.com/inbo/inbospatial/",
keywords = "spatial; geospatial; utilities; GIS; raster; vector",
)
# end checklist entry
3 changes: 2 additions & 1 deletion inst/en_gb.dic
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Iliffe
KMI
LCC
Landschaptypen
linter
MULTIPOLYGON
MULTSURFACE
NNB
Expand Down Expand Up @@ -50,11 +49,13 @@ edn
fl
forestnature
futureproof
geoserver
grbmap
habitatlabels
habitatmap
inbospatial
landschapstypen
linter
natte
natuurparels
natuurtypen
Expand Down
7 changes: 4 additions & 3 deletions man/get_feature_wfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading