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

Get the osmconf.ini file directly from sf package #279

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

agila5
Copy link
Collaborator

@agila5 agila5 commented Mar 10, 2023

TODO

@agila5
Copy link
Collaborator Author

agila5 commented Mar 10, 2023

The previous ideas do not work since Sys.getenv("GDAL_DATA") returns "" on that platform. Moreover:

list.files(system.file(package = "sf"), recursive = TRUE)
#>   [1] "CITATION"                           "csv/pt.csv"                        
#>   [3] "demo/affine.R"                      "demo/basic.R"                      
#>   [5] "demo/bm_wkb.R"                      "demo/ggplot.R"                     
#>   [7] "demo/meuse_sf.R"                    "demo/nc.R"                         
#>   [9] "demo/twitter.R"                     "demo/webmap.R"                     
#>  [11] "DESCRIPTION"                        "doc/index.html"                    
#>  [13] "doc/sf1.html"                       "doc/sf1.R"                         
#>  [15] "doc/sf1.Rmd"                        "doc/sf2.html"                      
#>  [17] "doc/sf2.R"                          "doc/sf2.Rmd"                       
#>  [19] "doc/sf3.html"                       "doc/sf3.R"                         
#>  [21] "doc/sf3.Rmd"                        "doc/sf4.html"                      
#>  [23] "doc/sf4.R"                          "doc/sf4.Rmd"                       
#>  [25] "doc/sf5.html"                       "doc/sf5.R"                         
#>  [27] "doc/sf5.Rmd"                        "doc/sf6.html"                      
#>  [29] "doc/sf6.R"                          "doc/sf6.Rmd"                       
#>  [31] "doc/sf7.html"                       "doc/sf7.R"                         
#>  [33] "doc/sf7.Rmd"                        "docker/alma/build_command"         
#>  [35] "docker/alma/Dockerfile"             "docker/alma/vito.repo"             
#>  [37] "docker/arrow/Dockerfile"            "docker/base/Dockerfile"            
#>  [39] "docker/bionic/Dockerfile"           "docker/centos/Dockerfile"          
#>  [41] "docker/cran/Dockerfile"             "docker/custom/Dockerfile"          
#>  [43] "docker/devel/Dockerfile"            "docker/fedora/Dockerfile"          
#>  [45] "docker/gdal/Dockerfile"             "docker/geos/Dockerfile"            
#>  [47] "docker/lowest/Dockerfile"           "docker/postgis/Dockerfile"         
#>  [49] "docker/spcosa/Dockerfile"           "docker/static/Dockerfile"          
#>  [51] "gml/20170930_OB_530964_UKSH.xml.gz" "gml/fmi_test.gml"                  
#>  [53] "gpkg/b_pump.gpkg"                   "gpkg/buildings.gpkg"               
#>  [55] "gpkg/nc.gpkg"                       "gpkg/nospatial.gpkg"               
#>  [57] "gpkg/tl.gpkg"                       "help/aliases.rds"                  
#>  [59] "help/AnIndex"                       "help/figures/logo.png"             
#>  [61] "help/paths.rds"                     "help/sf.rdb"                       
#>  [63] "help/sf.rdx"                        "html/00Index.html"                 
#>  [65] "html/R.css"                         "include/sf_RcppExports.h"          
#>  [67] "include/sf.h"                       "INDEX"                             
#>  [69] "libs/sf.so"                         "LICENSE"                           
#>  [71] "Meta/demo.rds"                      "Meta/features.rds"                 
#>  [73] "Meta/hsearch.rds"                   "Meta/links.rds"                    
#>  [75] "Meta/nsInfo.rds"                    "Meta/package.rds"                  
#>  [77] "Meta/Rd.rds"                        "Meta/vignette.rds"                 
#>  [79] "NAMESPACE"                          "nc/cropped.nc"                     
#>  [81] "NEWS.md"                            "osm/overpass.osm"                  
#>  [83] "R/sf"                               "R/sf.rdb"                          
#>  [85] "R/sf.rdx"                           "shape/nc.dbf"                      
#>  [87] "shape/nc.prj"                       "shape/nc.shp"                      
#>  [89] "shape/nc.shx"                       "shape/olinda1.dbf"                 
#>  [91] "shape/olinda1.prj"                  "shape/olinda1.shp"                 
#>  [93] "shape/olinda1.shx"                  "shape/storms_xyz_feature.dbf"      
#>  [95] "shape/storms_xyz_feature.shp"       "shape/storms_xyz_feature.shx"      
#>  [97] "shape/storms_xyz.dbf"               "shape/storms_xyz.shp"              
#>  [99] "shape/storms_xyz.shx"               "shape/storms_xyzm_feature.dbf"     
#> [101] "shape/storms_xyzm_feature.shp"      "shape/storms_xyzm_feature.shx"     
#> [103] "shape/storms_xyzm.dbf"              "shape/storms_xyzm.shp"             
#> [105] "shape/storms_xyzm.shx"              "sqlite/b.sqlite"                   
#> [107] "sqlite/meuse.sqlite"                "sqlite/nc.sqlite"                  
#> [109] "sqlite/test3.sqlite"                "tif/geomatrix.tif"

Created on 2023-03-10 with reprex v2.0.2

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

Successfully merging this pull request may close these issues.

1 participant