Skip to content

Commit 31a0761

Browse files
committed
Export s3 methods
1 parent 3bd8503 commit 31a0761

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ S3method(geo_buffer,sf)
1010
S3method(geo_buffer,sfc)
1111
S3method(geo_length,sf)
1212
S3method(geo_projected,sf)
13+
S3method(geo_projected,sfc)
1314
S3method(geo_select_aeq,sf)
1415
S3method(geo_select_aeq,sfc)
1516
S3method(gsection,sf)
17+
S3method(islines,sf)
1618
S3method(line2df,sf)
1719
S3method(line2points,sf)
1820
S3method(line2points,sfc)

R/geo_projected.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ geo_projected.sf <- function(shp, fun, crs = geo_select_aeq(shp), silent = TRUE,
8484
}
8585
res
8686
}
87+
#' @export
8788
geo_projected.sfc <- function(shp, fun, crs = geo_select_aeq(shp), silent = TRUE, ...) {
8889
# assume it's not projected (i.e. lat/lon) if there is no CRS
8990
if (is.na(sf::st_crs(shp))) {

R/overline.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
islines <- function(g1, g2) {
1818
UseMethod("islines")
1919
}
20+
#' @export
2021
islines.sf <- function(g1, g2) {
2122
sf::st_geometry_type(sf::st_intersection(sf::st_geometry(g1), sf::st_geometry(g2))) == "MULTILINESTRING"
2223
}

0 commit comments

Comments
 (0)