Skip to content

Commit

Permalink
fix call to sfheaders in osm-surface for #61
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jun 26, 2024
1 parent 598925a commit 20d39c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmplotr
Title: Bespoke Images of 'OpenStreetMap' Data
Version: 0.3.5.007
Version: 0.3.5.008
Authors@R:
c(person(given = "Mark",
family = "Padgham",
Expand Down
3 changes: 2 additions & 1 deletion R/add-osm-surface.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ list2df_with_data <- function (map, obj, obj_type, xy_mn, dat, bg,
}
if (!missing (bg)) {

xy <- sfheaders::sf_point (cbind (xyz$x, xyz$y)) |>
xy <- cbind (as.numeric (xyz$x), as.numeric (xyz$y)) |>
sfheaders::sf_point () |>
sf::st_sf (crs = 4326) |>
reproj_equal_area ()
bdry <- sf::st_convex_hull (sf::st_combine (xy))
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci/osmplotr",
"issueTracker": "https://github.com/ropensci/osmplotr/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.3.5.007",
"version": "0.3.5.008",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 20d39c6

Please sign in to comment.