Skip to content

Commit

Permalink
don't return [m] units if units are unknown; #2049
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Dec 6, 2022
1 parent d016301 commit 9534e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/crs.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ crs_parameters = function(x, with_units = TRUE) {
ret$ud_unit = if (isTRUE(ret$IsGeographic))
as_units("arc_degree") # FIXME: is this always true?
else if (is.null(x$units))
as_units("m")
NA_character_ #2049
else if (is.character(udunits_from_proj[[x$units]]))
as_units(udunits_from_proj[[x$units]])
else
Expand Down

0 comments on commit 9534e4a

Please sign in to comment.