Skip to content

Commit

Permalink
add documentation to st_transform; edzer/sp#42
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jan 6, 2018
1 parent e2e3b21 commit 1adab13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/crs.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ udunits_from_proj = c(
crs_parameters = function(x) {
stopifnot(!is.na(x))
ret = structure(CPL_crs_parameters(x$proj4string),
names = c("SemiMajor", "InvFlattening", "units_gdal", "IsVertical", "WktPretty", "Wkt"))
names = c("SemiMajor", "SemiMinor", "InvFlattening", "units_gdal",
"IsVertical", "WktPretty", "Wkt"))
units(ret$SemiMajor) = make_unit("m")
units(ret$SemiMinor) = make_unit("m")
ret$ud_unit = if (isTRUE(st_is_longlat(x)))
make_unit("arc_degree")
else if (is.null(x$units))
Expand Down

0 comments on commit 1adab13

Please sign in to comment.