Skip to content

Problem running basic example #26

@DaveEdge1

Description

@DaveEdge1

I'm having trouble reproducing the basic example from the intro vignette. The 'tiles' directory is empty and the html preview shows a blank leaflet map with points [0,0] and [71,32]. Is there an option to produce more verbose output for debugging, perhaps the output from "gdal2tiles"?

> tiler_options()
$python
                                                            python3 
"C:\\Users\\dce25\\AppData\\Local\\MICROS~1\\WINDOW~1\\python3.exe" 

$osgeo4w
[1] "C:\\OSGeo4W"

> library(tiler)
> library(raster)
> tile_dir <- file.path(tempdir(), "tiles")
> map <- system.file("maps/map_wgs84.tif", package = "tiler")
> (r <- raster(map))
class      : RasterLayer 
dimensions : 32, 71, 2272  (nrow, ncol, ncell)
resolution : 0.8333333, 0.8333333  (x, y)
extent     : -125.0208, -65.85417, 23.27083, 49.9375  (xmin, xmax, ymin, ymax)
crs        : +proj=longlat +datum=WGS84 +no_defs 
source     : map_wgs84.tif 
names      : map_wgs84 
values     : -0.7205295, 5.545086  (min, max)

> plot(r)
> tile(map, tile_dir, "0-3")
Coloring raster...
Preparing for tiling...
Creating tiles. Please wait...
Creating tile viewer...
Complete.
> list.files(tile_dir)
character(0)
> sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: America/Phoenix
tzcode source: internal

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

other attached packages:
[1] raster_3.6-31 sp_2.2-0      tiler_0.3.2  

loaded via a namespace (and not attached):
[1] compiler_4.4.0   tools_4.4.0      Rcpp_1.0.14      remotes_2.5.0    codetools_0.2-20 grid_4.4.0       lattice_0.22-6  
[8] terra_1.8-29 

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