Learn R Programming

RTL (version 1.3.7)

getGIS: Extract and convert GIS data from a URL

Description

Returns a SpatialPointsDataFrame from a shapefile URL. @section Examples with EIA and Government of Alberta

  • from https://www.eia.gov/maps/layer_info-m.php :

  • crudepipelines <- getGIS(url = "https://www.eia.gov/maps/map_data/CrudeOil_Pipelines_US_EIA.zip")

  • refineries <- getGIS(url = "https://www.eia.gov/maps/map_data/Petroleum_Refineries_US_EIA.zip")

  • from https://gis.energy.gov.ab.ca/Geoview/OSPNG

  • AB <- getGIS(url = "https://gis.energy.gov.ab.ca/GeoviewData/OS_Agreements_Shape.zip")

Usage

getGIS(url = "https://www.eia.gov/maps/map_data/CrudeOil_Pipelines_US_EIA.zip")

Value

SpatialPointsDataFrame. SpatialPolygonsDataFrame

Arguments

url

URL of the zipped shapefile. character

Author

Philippe Cote

Examples

Run this code
if (FALSE) {
getGIS(url = "https://www.eia.gov/maps/map_data/CrudeOil_Pipelines_US_EIA.zip")
}

Run the code above in your browser using DataLab