Metropolitan-Council / councilR

A curated collection of commonly used templates, color palettes, functions, and more!
Other
6 stars 1 forks source link

Add snippets for metro and tile CRS codes #16

Closed eroten closed 2 years ago

eroten commented 3 years ago

This PR add two items to the R snippets template; metro_crs and tile_crs.

metro_crs is "26915", NAD83/UTM Zone 15N. Most Council and state datasets are stored with this CRS, as it is optimized for our region. This snippet is is helpful because CRS information is not always imported when reading in spatial data. You can use sf::st_set_crs("26915") to set the CRS.

tile_crs is "4326", WGS84. Google Maps, {leaflet} and most interactive mapping tools use this tile-based system. Most of these tools only take WGS84, so you can transform the data from 26915 to 4326 with sf::st_transform("4326").