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:

  • Visualize marine regions alone
  • Visualize marine regions with associated data paired with analysis
  • Use marine region geospatial boundaries to query data providers (e.g., OBIS (http://www.iobis.org))
  • Geocode - get geolocation data from place names
  • Reverse Geocode - get place names from geolocation data

Install

install.packages("mregions")

Development version

devtools::install_github("ropensci/mregions")
library("mregions")

Shape

Get region

res2 <- mr_shp(key = "MarineRegions:eez_iho_union_v2", maxFeatures = 5)

Get helper library

install.packages("leaflet")

Plot data

map2

Convert to WKT

From geojson

From shp object (SpatialPolygonsDataFrame) or file, both work

Get OBIS EEZ ID

mr_obis_eez_id("bulgarian exclusive economic zone")
## [1] 71

Meta

rofooter