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

Re: [R-sig-Geo] How to change scale labeling in spplot

2020-08-10 Thread Tim Salabim
Have you tried colorkey=list(labels = list(labels = list("Af","Am","Aw"))) ? On Mon, Aug 10, 2020, 22:01 Thomas Adams wrote: > Hi all, > > I have searched for examples to change the labeling for raster data (two > panels) consisting of integer values (1, 2, and 3). In the scale I want to >

Re: [R-sig-Geo] New GDAL multi-dimensional array support?

2020-06-26 Thread Tim Salabim
Somewhat related , but Dirk Edelbüttel just released an R package to interact with tiledb for storing spatiotemporal data as arrays (I believe very similar in structure to what stars objects are). Tiledb also has a gdal driver, so should play rather nicely with stars/sf/... On Fri, Jun 26, 2020,

Re: [R-sig-Geo] Error when saving an sf (data) object to file as a shapefile

2020-06-20 Thread Tim Salabim
And for anyone looking for arguments: http://switchfromshapefile.org/ On Sat, Jun 20, 2020, 18:20 Edzer Pebesma wrote: > > > On 6/20/20 12:28 PM, Lom Navanyo wrote: > > Unknown field name `Act_Depthtwtr': updating a layer with improper field > > name(s)? > > Shapefiles have funny restrictions

[R-sig-Geo] Fwd: [Spatial-Ecology] Gecomputation web-seminars (GDAL, PKTOOLS, GRASS, HPC)

2020-04-30 Thread Tim Salabim
See below for a set of online courses that might be interesting for some of this lists subscribers. Best Tim -- Forwarded message - From: Giuseppe Amatulli Date: Thu, Apr 30, 2020, 17:49 Subject: [Spatial-Ecology] Gecomputation web-seminars (GDAL, PKTOOLS, GRASS, HPC) To:

Re: [R-sig-Geo] viewing locally hosted mbtiles vector tiles using leaflet.mapboxgl?

2020-03-11 Thread Tim Salabim
Hi Nevil, while not being able to help with mbtiles, maybe you want to try leafgl to view your polygons. https://github.com/r-spatial/leafgl It should have no problems with 40k polygons. Regarding RStudio's leaflet.mapboxgl, I don't think it is intended for local use (though I might be wrong).

Re: [R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Tim Salabim
gt; > +33 (0)1 81 94 13 70 > > +33 (0)6 47 01 85 92 > > Le Visium > > 22 Av Aristide Briand > > 94110 ARCUEIL > > https://tesora.fr/ > > Linkedin <https://www.linkedin.com/company/tesora-france> > > > > > > *De :* Tim Salabim &g

Re: [R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Tim Salabim
Hi Benjamin, What you get back from the jsonlite::fromJSON() call is a simplified list with the data (including the geometry information) as a data frame in one of the list slots. GeoJson is usually a character string. Therefore, if you open your map in the browser and open the console (Ctrl + i)