Tools to get marine regions data from < http://www.marineregions.org/>. Includes tools to get region metadata, as well as data in 'GeoJSON' format, as well as Shape files. Use cases include using data downstream to visualize 'geospatial' data by marine region, mapping variation among different regions, and more.
mregions - Get data from http://www.marineregions.org
Some data comes from the Flanders Marine Institute (VLIZ) geoserver
mregions is useful to a wide diversity of R users because you get access to all of the
data MarineRegions has, which can help in a variety of use cases:
res1 <- mr_geojson(key = "Morocco:dam")
Get helper library
library('leaflet')leaflet() %>%addProviderTiles(provider = 'OpenStreetMap') %>%addGeoJSON(geojson = res1$features) %>%setView(-3.9, 35, zoom = 10)
res2 <- mr_shp(key = "MarineRegions:eez_iho_union_v2", maxFeatures = 5)
Get helper library
library('leaflet')leaflet() %>%addProviderTiles(provider = 'OpenStreetMap') %>%addPolygons(data = res2)
res3 <- mr_geojson(key = "Morocco:dam")mr_as_wkt(res3, fmt = 5)#>  "MULTIPOLYGON (((41.573732 -1.659444, 45.891882 ... cutoff
From shp object (
SpatialPolygonsDataFrame) or file, both work
mr_as_wkt(mr_shp(key = "MarineRegions:eez_iho_union_v2"))#>  "GEOMETRYCOLLECTION (POLYGON ((-7.25 ... cutoff
mr_obis_eez_id("bulgarian exclusive economic zone")
##  71
mregionsin R doing
citation(package = 'mregions')
http://marineregions.org/ changed some of their services. Thus, we had to change the way some functions work, remove functionality of some parameters, and add new functions. We are still in the process of making it all work smoothly.
mr_features_get()to fetch features of many different data types, including geojson, shp, kml, and more.
mr_layers()to list layers
mr_names()changed behavior. You used to be able to get all names/regions, but now you have to specify a layer you want information for.
mr_names_search()internals changed to account for changes in