Nothing
test_that("plot.OGRFeature / plot.OGRFeatureSet work", {
f <- system.file("extdata/ynp_fires_1984_2022.gpkg", package = "gdalraster")
lyr <- new(GDALVector, f, "mtbs_perims")
lyr$returnGeomAs <- "WKB"
feat <- lyr$getNextFeature()
expect_identical(plot(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(plot(feat_set), feat_set)
lyr$returnGeomAs <- "WKB_ISO"
feat <- lyr$getNextFeature()
expect_identical(plot(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(plot(feat_set), feat_set)
lyr$returnGeomAs <- "WKT"
feat <- lyr$getNextFeature()
expect_identical(plot(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(plot(feat_set), feat_set)
lyr$returnGeomAs <- "WKT_ISO"
feat <- lyr$getNextFeature()
expect_identical(plot(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(plot(feat_set), feat_set)
lyr$returnGeomAs <- "BBOX"
feat <- lyr$getNextFeature()
expect_identical(plot(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(plot(feat_set), feat_set)
lyr$close()
})
test_that("print.OGRFeature / print.OGRFeatureSet work", {
f <- system.file("extdata/ynp_fires_1984_2022.gpkg", package = "gdalraster")
lyr <- new(GDALVector, f, "mtbs_perims")
lyr$returnGeomAs <- "WKB"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$returnGeomAs <- "WKB_ISO"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$returnGeomAs <- "WKT"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$returnGeomAs <- "WKT_ISO"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$returnGeomAs <- "BBOX"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$returnGeomAs <- "NONE"
feat <- lyr$getNextFeature()
expect_identical(print(feat), feat)
feat_set <- lyr$fetch(3)
expect_identical(print(feat_set), feat_set)
lyr$close()
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.