[R-sig-Geo] Question on hierarchical data format 5 .h5 file format

2021-11-12 Thread Gabriel Cotlier
Hello, I would like to be able to visualize / plot a specific data layer within the structure a hierarchical data file format .h5 in R. I could observe the structure as follows : library(rhdf5) r= h5ls(file.choose()) r and also in this way identify the Group and Name of the data to be plotted,

[R-sig-Geo] self-intersecting polygons

2021-11-12 Thread Dexter Locke
Dear list, I have a set of 15 and 30 minute drive-time polygons created from mapboxapi::mb_isochrone. Ultimately I want to erase the smaller polygons from the larger so that the polygons are non-overlapping, concentric rings. The whole dataset includes ~1600 polygons for each drive-time spread ou

Re: [R-sig-Geo] using mapview to plot raster with integer values

2021-11-12 Thread Paulo Flores Ribeiro
Your first solution solved it perfectly! Thanks, PauloFR Às 13:36 de 12/11/2021, Tim Salabim escreveu: Hi Paolo, I am assuming the raster is being warped/projected upon rendering. By default we use 'bilinear' resampling. 2 possible solutions: 1) set the method for projecting with mapview(rst,

Re: [R-sig-Geo] using mapview to plot raster with integer values

2021-11-12 Thread Tim Salabim
Hi Paolo, I am assuming the raster is being warped/projected upon rendering. By default we use 'bilinear' resampling. 2 possible solutions: 1) set the method for projecting with mapview(rst, method = "ngb") for nearest-neighbor resampling 2) set mapview(rst, native.crs = TRUE) so that the raster

[R-sig-Geo] using mapview to plot raster with integer values

2021-11-12 Thread Paulo Flores Ribeiro
I'm trying to plot a raster where pixels can only assume integer values 1, 2 or 3, identifying 3 land use classes. The map does fine when plotted with the base r function: plot(rastername). However, I would like to use mapview (or another package for interactive maps) but it creates pixels with