|
12 | 12 | NULL
|
13 | 13 |
|
14 | 14 | #' @export
|
15 |
| -parse_esri_json_str <- function(str, n_dim) .Call(wrap__parse_esri_json_str, str, n_dim) |
| 15 | +#' @rdname geometries |
| 16 | +sfg_point_as_point <- function(x, sr) .Call(wrap__sfg_point_as_point, x, sr) |
16 | 17 |
|
| 18 | +#' Convert sfg geometries to EsriJSON strings |
| 19 | +#' |
| 20 | +#' @param x an sfg object |
17 | 21 | #' @export
|
18 |
| -parse_esri_json_str_simd <- function(str, n_dim) .Call(wrap__parse_esri_json_str_simd, str, n_dim) |
| 22 | +#' @rdname geometries |
| 23 | +sfg_multipoint_as_multipoint <- function(x, sr) .Call(wrap__sfg_multipoint_as_multipoint, x, sr) |
19 | 24 |
|
20 | 25 | #' @export
|
21 |
| -parse_esri_json_raw_simd <- function(raw, n_dim) .Call(wrap__parse_esri_json_raw_simd, raw, n_dim) |
| 26 | +#' @rdname geometries |
| 27 | +sfg_linestring_as_polyline <- function(x, sr) .Call(wrap__sfg_linestring_as_polyline, x, sr) |
22 | 28 |
|
23 | 29 | #' @export
|
24 |
| -parse_esri_json_raw <- function(raw, n_dim) .Call(wrap__parse_esri_json_raw, raw, n_dim) |
| 30 | +#' @rdname geometries |
| 31 | +sfg_multilinestring_as_polyline <- function(x, sr) .Call(wrap__sfg_multilinestring_as_polyline, x, sr) |
25 | 32 |
|
26 | 33 | #' @export
|
27 |
| -parse_esri_json_raw_geoarrow <- function(raw, n_dim) .Call(wrap__parse_esri_json_raw_geoarrow, raw, n_dim) |
| 34 | +#' @rdname geometries |
| 35 | +sfg_polygon_as_polygon <- function(x, sr) .Call(wrap__sfg_polygon_as_polygon, x, sr) |
| 36 | + |
| 37 | +#' @export |
| 38 | +#' @rdname geometries |
| 39 | +sfg_multipolygon_as_polygon <- function(x, sr) .Call(wrap__sfg_multipolygon_as_polygon, x, sr) |
| 40 | + |
| 41 | +#' @param attrs a data.frame of columns that define the attributes |
| 42 | +#' @param geoms an sfc geometry column |
| 43 | +#' @param n the number of rows in `attrs`, if geometry is provided, must have as many elements as `n` |
| 44 | +#' @param sr a list representing the spatial reference e.g. `list(wkid = 3857)` |
| 45 | +#' @export |
| 46 | +#' @rdname features |
| 47 | +sf_as_features_2d <- function(attrs, geoms, n, sr) .Call(wrap__sf_as_features_2d, attrs, geoms, n, sr) |
| 48 | + |
| 49 | +#' @export |
| 50 | +#' @rdname features |
| 51 | +sf_as_features_3d <- function(attrs, geoms, n, sr) .Call(wrap__sf_as_features_3d, attrs, geoms, n, sr) |
| 52 | + |
| 53 | +#' Create an EsriJSON feature array |
| 54 | +#' @param an sfc geometry vector |
| 55 | +#' @export |
| 56 | +#' @rdname features |
| 57 | +sfc_linestring_features_2d <- function(x, sr) .Call(wrap__sfc_linestring_features_2d, x, sr) |
| 58 | + |
| 59 | +#' @export |
| 60 | +#' @rdname features |
| 61 | +sfc_linestring_features_3d <- function(x, sr) .Call(wrap__sfc_linestring_features_3d, x, sr) |
| 62 | + |
| 63 | +#' @export |
| 64 | +#' @rdname featureset |
| 65 | +sfc_linestring_featureset_2d <- function(x, sr) .Call(wrap__sfc_linestring_featureset_2d, x, sr) |
| 66 | + |
| 67 | +#' @export |
| 68 | +#' @rdname featureset |
| 69 | +sfc_linestring_featureset_3d <- function(x, sr) .Call(wrap__sfc_linestring_featureset_3d, x, sr) |
| 70 | + |
| 71 | +#' @export |
| 72 | +#' @rdname features |
| 73 | +sfc_multilinestring_features_2d <- function(x, sr) .Call(wrap__sfc_multilinestring_features_2d, x, sr) |
| 74 | + |
| 75 | +#' @export |
| 76 | +#' @rdname features |
| 77 | +sfc_multilinestring_features_3d <- function(x, sr) .Call(wrap__sfc_multilinestring_features_3d, x, sr) |
| 78 | + |
| 79 | +#' @export |
| 80 | +#' @rdname featureset |
| 81 | +sfc_multilinestring_featureset_2d <- function(x, sr) .Call(wrap__sfc_multilinestring_featureset_2d, x, sr) |
| 82 | + |
| 83 | +#' @export |
| 84 | +#' @rdname featureset |
| 85 | +sfc_multilinestring_featureset_3d <- function(x, sr) .Call(wrap__sfc_multilinestring_featureset_3d, x, sr) |
| 86 | + |
| 87 | +#' @export |
| 88 | +#' @rdname features |
| 89 | +sfc_multipoint_features_2d <- function(x, sr) .Call(wrap__sfc_multipoint_features_2d, x, sr) |
| 90 | + |
| 91 | +#' @export |
| 92 | +#' @rdname features |
| 93 | +sfc_multipoint_features_3d <- function(x, sr) .Call(wrap__sfc_multipoint_features_3d, x, sr) |
| 94 | + |
| 95 | +#' @export |
| 96 | +#' @rdname featureset |
| 97 | +sfc_multipoint_featureset_2d <- function(x, sr) .Call(wrap__sfc_multipoint_featureset_2d, x, sr) |
| 98 | + |
| 99 | +#' @export |
| 100 | +#' @rdname featureset |
| 101 | +sfc_multipoint_featureset_3d <- function(x, sr) .Call(wrap__sfc_multipoint_featureset_3d, x, sr) |
| 102 | + |
| 103 | +#' @export |
| 104 | +#' @rdname features |
| 105 | +sfc_multipolygon_features_2d <- function(x, sr) .Call(wrap__sfc_multipolygon_features_2d, x, sr) |
| 106 | + |
| 107 | +#' @export |
| 108 | +#' @rdname features |
| 109 | +sfc_multipolygon_features_3d <- function(x, sr) .Call(wrap__sfc_multipolygon_features_3d, x, sr) |
| 110 | + |
| 111 | +#' @export |
| 112 | +#' @rdname featureset |
| 113 | +sfc_multipolygon_featureset_2d <- function(x, sr) .Call(wrap__sfc_multipolygon_featureset_2d, x, sr) |
| 114 | + |
| 115 | +#' @export |
| 116 | +#' @rdname featureset |
| 117 | +sfc_multipolygon_featureset_3d <- function(x, sr) .Call(wrap__sfc_multipolygon_featureset_3d, x, sr) |
| 118 | + |
| 119 | +#' @export |
| 120 | +#' @rdname features |
| 121 | +sfc_point_features_2d <- function(x, sr) .Call(wrap__sfc_point_features_2d, x, sr) |
| 122 | + |
| 123 | +#' @export |
| 124 | +#' @rdname features |
| 125 | +sfc_point_features_3d <- function(x, sr) .Call(wrap__sfc_point_features_3d, x, sr) |
| 126 | + |
| 127 | +#' @export |
| 128 | +#' @rdname featureset |
| 129 | +sfc_point_featureset_2d <- function(x, sr) .Call(wrap__sfc_point_featureset_2d, x, sr) |
| 130 | + |
| 131 | +#' @export |
| 132 | +#' @rdname featureset |
| 133 | +sfc_point_featureset_3d <- function(x, sr) .Call(wrap__sfc_point_featureset_3d, x, sr) |
| 134 | + |
| 135 | +#' @export |
| 136 | +#' @rdname features |
| 137 | +sfc_polygon_features_2d <- function(x, sr) .Call(wrap__sfc_polygon_features_2d, x, sr) |
| 138 | + |
| 139 | +#' @export |
| 140 | +#' @rdname features |
| 141 | +sfc_polygon_features_3d <- function(x, sr) .Call(wrap__sfc_polygon_features_3d, x, sr) |
| 142 | + |
| 143 | +#' @export |
| 144 | +#' @rdname featureset |
| 145 | +sfc_polygon_featureset_2d <- function(x, sr) .Call(wrap__sfc_polygon_featureset_2d, x, sr) |
| 146 | + |
| 147 | +#' @export |
| 148 | +#' @rdname featureset |
| 149 | +sfc_polygon_featureset_3d <- function(x, sr) .Call(wrap__sfc_polygon_featureset_3d, x, sr) |
| 150 | + |
| 151 | +#' Create a `FeatureSet` with 2-dimensional geometries |
| 152 | +#' @param attrs a data.frame of columns that define the attributes |
| 153 | +#' @param geoms an sfc geometry column |
| 154 | +#' @param n the number of rows in `attrs`, if geometry is provided, must have as many elements as `n` |
| 155 | +#' @param sr a list representing the spatial reference e.g. `list(wkid = 3857)` |
| 156 | +#' @export |
| 157 | +#' @rdname featureset |
| 158 | +as_featureset_2d <- function(attrs, geoms, n, sr) .Call(wrap__as_featureset_2d, attrs, geoms, n, sr) |
| 159 | + |
| 160 | +#' @export |
| 161 | +#' @rdname featureset |
| 162 | +#' @param has_z bool. Whether Z or M geometries are provided. When `has_z = FALSE`, the attribute `hasM = true` |
| 163 | +as_featureset_3d <- function(attrs, geoms, n, sr, has_z) .Call(wrap__as_featureset_3d, attrs, geoms, n, sr, has_z) |
28 | 164 |
|
29 | 165 |
|
30 | 166 | # nolint end
|
0 commit comments