Skip to content

Error Reading Shapefile with st_read since version 1.09...  #2046

Closed
@WayneGitShell

Description

@WayneGitShell

Description
As part of the GWSDAT R package - see www.gwsdat.net we ship out an example data set with a shapefile located here:
https://github.com/WayneGitShell/GWSDAT/tree/master/data/GIS_Files

To Reproduce

dat <- sf::st_read("./GIS_Files/GWSDATex2.shp")
Reading layer GWSDATex2' from data source C:\Users\Wayne.W.Jones\GitHub\GWSDAT_v3.12\data\GIS_Files\GWSDATex2.shp' using driver `ESRI Shapefile'
Error in CPL_get_z_range(obj, 2) : z error - expecting three columns;

Has been working fine for all previous versions. Nothing in the news to suggest this change of behaviour.

R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8 LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] sf_1.0-9

loaded via a namespace (and not attached):
[1] compiler_4.2.2 magrittr_2.0.3 class_7.3-20 tools_4.2.2 DBI_1.1.3 units_0.8-0 proxy_0.4-27 Rcpp_1.0.9 KernSmooth_2.23-20
[10] grid_4.2.2 e1071_1.7-12 classInt_0.4-8

Paste the output of your sessionInfo() and sf::sf_extSoftVersion()

sf::sf_extSoftVersion()
GEOS GDAL proj.4 GDAL_with_GEOS USE_PROJ_H PROJ
"3.9.3" "3.5.2" "8.2.1" "true" "true" "8.2.1"

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