-
I have set my download_directory to an external ssd and the vectortranslate operation is creating a gpkg on this ssd drive just fine. However, as written here: https://gdal.org/drivers/vector/osm.html#vector-osm |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi! I think you should run library(sf)
#> Linking to GEOS 3.11.1, GDAL 3.6.2, PROJ 9.1.1; sf_use_s2() is TRUE
osm_path <- system.file("osm/overpass.osm", package="sf")
st_layers(osm_path, do_count = TRUE)
#> Warning in CPL_get_layers(dsn, options, do_count): GDAL Error 1: Non increasing
#> node id. Use OSM_USE_CUSTOM_INDEXING=NO
#> ...
#>...
#> Warning in CPL_get_layers(dsn, options, do_count): GDAL Error 1: Non increasing
#> node id. Use OSM_USE_CUSTOM_INDEXING=NO
#> Driver: OSM
#> Available layers:
#> layer_name geometry_type features fields crs_name
#> 1 points Point 0 10 WGS 84
#> 2 lines Line String 0 10 WGS 84
#> 3 multilinestrings Multi Line String 0 4 WGS 84
#> 4 multipolygons Multi Polygon 3 25 WGS 84
#> 5 other_relations Geometry Collection 0 4 WGS 84
Sys.setenv(OSM_USE_CUSTOM_INDEXING="NO")
st_layers(osm_path, do_count = TRUE)
#> Driver: OSM
#> Available layers:
#> layer_name geometry_type features fields crs_name
#> 1 points Point 1 10 WGS 84
#> 2 lines Line String 0 10 WGS 84
#> 3 multilinestrings Multi Line String 0 4 WGS 84
#> 4 multipolygons Multi Polygon 13 25 WGS 84
#> 5 other_relations Geometry Collection 0 4 WGS 84 Created on 2023-02-20 with reprex v2.0.2 Let me know if it works also in your case! |
Beta Was this translation helpful? Give feedback.
-
The development version of |
Beta Was this translation helpful? Give feedback.
Hi! I think you should run
Sys.setenv(...)
at the beginning of your code. For example,