r-spatial / sf
Showing 1 of 1 files from the diff.

@@ -14,12 +14,14 @@
Loading
14 14
st_crs.SpatRaster = function(x, ...) {
15 15
	if (!requireNamespace("terra", quietly = TRUE))
16 16
		stop("package terra required, please install it first") # nocov
17 -
	st_crs(terra::crs(x))
17 +
	string = terra::crs(x)
18 +
	if (string == "") st_crs(NA) else st_crs(string)
18 19
}
19 20
20 21
#' @export
21 22
st_crs.SpatVector = function(x, ...) {
22 23
	if (!requireNamespace("terra", quietly = TRUE))
23 24
		stop("package terra required, please install it first") # nocov
24 -
	st_crs(terra::crs(x))
25 +
	string = terra::crs(x)
26 +
	if (string == "") st_crs(NA) else st_crs(string)
25 27
}
Files Coverage
R 88.25%
src 77.63%
Project Totals (66 files) 83.81%
1
comment: false
2
ignore:
3
  - "inst/include/sf_RcppExports.h" 
4
  - "sf/R/stars.R"
5
  - "sf/R/gdal_utils.R"
6
  - "sf/src/raster2sf.cpp"
7
  - "sf/src/gdal_utils.cpp"
8
  - "sf/src/stars.cpp"
9

10
coverage:
11
  status:
12
    patch:
13
      default:
14
        target: 0
15
        threshold: 100
16
    project:
17
      default:
18
        target: 70
19
        threshold: 100
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading