Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package check fails when R_SF_ST_READ_USE_STREAM=true #2284

Open
edzer opened this issue Dec 8, 2023 · 0 comments
Open

package check fails when R_SF_ST_READ_USE_STREAM=true #2284

edzer opened this issue Dec 8, 2023 · 0 comments
Assignees

Comments

@edzer
Copy link
Member

edzer commented Dec 8, 2023

Describe the bug
the test sf/tests/empty.R fails when running under R_SF_ST_READ_USE_STREAM=true

To Reproduce
R_SF_ST_READ_USE_STREAM=true R CMD check sf_...

Paste the output of your `sessionInfo()` and `sf::sf_extSoftVersion()`
$ ogrinfo empty.gpkg  empty
INFO: Open of `empty.gpkg'
      using driver `GPKG' successful.

Layer name: empty
Geometry: Line String
Feature Count: 2
Extent: (1.000000, 3.000000) - (2.000000, 4.000000)
Layer SRS WKT:
ENGCRS["Undefined Cartesian SRS with unknown unit",
    EDATUM["Unknown engineering datum"],
    CS[Cartesian,2],
        AXIS["x",unspecified,
            ORDER[1],
            LENGTHUNIT["unknown",0]],
        AXIS["y",unspecified,
            ORDER[2],
            LENGTHUNIT["unknown",0]]]
Data axis to CRS axis mapping: 1,2
FID Column = fid
Geometry Column = geom
a: Integer (0.0)
OGRFeature(empty):1
  a (Integer) = 2
  LINESTRING EMPTY

OGRFeature(empty):2
  a (Integer) = 1
  LINESTRING (1 3,2 4)

but

 st_read("empty.gpkg", quiet = TRUE)
# Simple feature collection with 2 features and 1 field (with 1 geometry empty)
# Geometry type: MULTILINESTRING
# Dimension:     XY
# Bounding box:  xmin: 1 ymin: 3 xmax: 2 ymax: 4
# Projected CRS: Undefined Cartesian SRS with unknown unit
#   a                         geom
# 1 2        MULTILINESTRING EMPTY
# 2 1 MULTILINESTRING ((1 3, 2 4))

empty.zip

@edzer edzer assigned edzer and paleolimbot and unassigned edzer Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants