Skip to content

Test error: Cannot open layer Parcely #1583

Closed
@jeroen

Description

@jeroen

On R-universe we have (yet another) build of GDAL. I see this check errror: https://github.com/r-universe/r-spatial/runs/1722546400?check_suite_focus=true

  > 
  > if ("GML" %in% st_drivers()$name) {
  +   gml = system.file("gml/fmi_test.gml", package = "sf")
  +   print(dim(st_read(gml, quiet = TRUE)))
  +   gml = system.file("gml/20170930_OB_530964_UKSH.xml.gz", package = "sf")
  +   print(dim(st_read(gml, layer = "Parcely", quiet = TRUE)))
  +   print(dim(st_read(gml, layer = "Parcely", int64_as_string=TRUE, quiet = TRUE)))
  + }
  [1] 22 11
  Cannot open layer Parcely
  Error in CPL_read_ogr(dsn, layer, query, as.character(options), quiet,  : 
    Opening layer failed.
  Calls: print -> st_read -> st_read.character -> CPL_read_ogr
  Execution halted

This could very well be my fault for how I built GDAL. Do you have any guess which driver library need to be enabled, or if some datum file is missing?

If you have a mac, you can install the binary like this to try locally

install.packages("sf", repos = "https://r-spatial.r-universe.dev")
library(sf)
## Linking to GEOS 3.8.1, GDAL 3.2.0, PROJ 7.2.0

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions