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

sf is Installed, but not Working Properly #128

Open
ismailsunni opened this issue Jan 23, 2020 · 0 comments
Open

sf is Installed, but not Working Properly #128

ismailsunni opened this issue Jan 23, 2020 · 0 comments

Comments

@ismailsunni
Copy link

From #116 , I can install sf by using GraalVM docker image. See my Dockerfile here that based on here.

Unfortunately, I got a problem when running simple script like below.

Run the container:

docker run  -it --rm ismailsunni/fastr-3.6.1-oracle-geospatial R

The problem with this code:

library('sf')
nc_gpkg_file = system.file("gpkg/nc.gpkg", package="sf")
nc_gpkg_file # /opt/graalvm-ce-java8-19.3.0/jre/languages/R/library/sf/gpkg/nc.gpkg
file.exists(nc_gpkg_file)  # TRUE
 read_sf(nc_gpkg_file)

Error message:

Cannot open data source /opt/graalvm-ce-java8-19.3.0/jre/languages/R/library/sf/gpkg/nc.gpkg
Error in CPL_read_ogr(dsn, layer, query, as.character(options), quiet,  :
  Open failed.

Another error is with shp file:

nc_shp_file = system.file("shape/nc.shp", package="sf")
read_sf( nc_shp_file)

It will give this error:

Simple feature collection with 100 features and 14 fields
geometry type:  MULTIPOLYGON
dimension:      XY
bbox:           xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
epsg (SRID):    4267
proj4string:    +proj=longlat +datum=NAD27 +no_defs
An internal error occurred: "should not reach here: should not be null"
Please report an issue at https://github.com/oracle/fastr including the commands and the error log file '/home/docker/fastr_errors_pid6.log'.

And this is the fastr_errors_pid6.log

Any idea how to fix this?

Thanks!

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

1 participant