Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jan 24, 2025
1 parent 041f955 commit eb03687
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: terra
Type: Package
Title: Spatial Data Analysis
Version: 1.8-14
Version: 1.8-15
Date: 2025-01-23
Depends: R (>= 3.5.0)
Suggests: parallel, tinytest, ncdf4, sf (>= 0.9-8), deldir, XML, leaflet (>= 2.2.1), htmlwidgets
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version 1.8-14
# version 1.8-15

## bug fixes

Expand Down Expand Up @@ -134,7 +134,7 @@ Released 2024-10-14

## new

- `map-region` returns the coordinates of the axes position of a map created with `plot<Spat*>` [#1517](https://github.com/rspatial/terra/issues/1517) by Daniel Schuch
- `map_extent` returns the coordinates of the axes position of a map created with `plot<Spat*>` [#1517](https://github.com/rspatial/terra/issues/1517) by Daniel Schuch
- `polys<leaflet>` method [#1543](https://github.com/rspatial/terra/issues/1543) by Márcia Barbosa
- `plot<SpatVectorCollection>` method [#1532](https://github.com/rspatial/terra/issues/1532) by jedgroev
- `add_mtext` to add text around the margins of a map. [#1567](https://github.com/rspatial/terra/issues/1567) by Daniel Schuch
Expand Down
4 changes: 2 additions & 2 deletions R/divide.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ strip_polygon <- function(x, vertical, horizontal) {
})
xbnds <- matrix(c(ex$xmin, rep(edges,rep(2,length(edges))), ex$xmax), ncol=2, byrow=TRUE)
xbnds <- cbind(xbnds, ex$ymin, ex$ymax)
xbnds <- do.call(rbind, apply(xbnds, 1, \(i) as.polygons(ext(i))))
xbnds <- do.call(rbind, apply(xbnds, 1, function(i) as.polygons(ext(i))))
xbnds$vid <- 1:nrow(xbnds)
}
if (!is.null(horizontal)) {
Expand All @@ -183,7 +183,7 @@ strip_polygon <- function(x, vertical, horizontal) {
})
ybnds <- matrix(c(ex$ymin, rep(edges,rep(2,length(edges))), ex$ymax), ncol=2, byrow=TRUE)
ybnds <- cbind(ex$xmin, ex$xmax, ybnds)
ybnds <- do.call(rbind, apply(ybnds, 1, \(i) as.polygons(ext(i))))
ybnds <- do.call(rbind, apply(ybnds, 1, function(i) as.polygons(ext(i))))
ybnds$hid <- 1:nrow(ybnds)

if (!is.null(vertical)) {
Expand Down

0 comments on commit eb03687

Please sign in to comment.