{rosm} 0.1.3 release

by on December 13, 2015

We’re excited to announce a new release of the rosm package! A feature request was posted to export the images created by rosm as a raster package object, opening up possibilities for reprojecting and writing to disk OSM tiles for use in your favourite GIS. Thanks to Timothée Giraud, maintainer of the cartography package for suggesting and writing the base code for this update. Ready to get started? The syntax is just like osm.plot() but with a few options like projection and filename that reproject/write your images using the raster package. Try this:

library(<span class="pl-smi">prettymapr</span>)
library(<span class="pl-smi">rosm</span>)
library(<span class="pl-smi">raster</span>)

<span class="pl-smi">ns</span> <span class="pl-k">&lt;-</span> searchbbox(<span class="pl-s"><span class="pl-pds">"</span>nova scotia<span class="pl-pds">"</span></span>, <span class="pl-v">source</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>google<span class="pl-pds">"</span></span>)
<span class="pl-smi">rasterobj</span> <span class="pl-k">&lt;-</span> osm.raster(<span class="pl-smi">ns</span>)
plotRGB(<span class="pl-smi">rasterobj</span>)

Up next in the update queue? Faster fusing of tiles enabling the creation of high-resolution geotiffs of your favourite OSM tile maps.

Leave a Reply

WP Facebook Like Send & Open Graph Meta powered by TutsKid.com.