warning: Parameter 2 to gmap_gmap() expected to be a reference, value given in /home/spatiala/public_html/book/includes/module.inc on line 497.

USA borders

Short title: 
USA_borders

USA borders projected in the AEA coordinate system.

download.file("http://www.census.gov/geo/cob/bdy/st/st00shp/st99_d00_shp.zip",
destfile=paste(getwd(), "/usa_borders.zip", sep=""))
unzip(zipfile="usa_borders.zip", exdir=getwd())
unlink("usa_borders.zip")
# read to R:
usa_borders.ll <- readOGR("st99_d00.shp", "st99_d00")
proj4string(usa_borders.ll) <- CRS("+proj=longlat +ellps=WGS84")
usa_borders.ll <- as(usa_borders.ll, "SpatialLinesDataFrame")
AEA <- "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 
+ellps=GRS80 +datum=NAD83 +units=m +no_defs"
USA.borders <- spTransform(usa_borders.ll, CRS(AEA))
save(usa_borders.ll, file="usa_borders.RData")
Available layers: 
  • st99_d00_shp - line map showing state borders for the whole USA
Spatial structure: 
Formal class 'SpatialLinesDataFrame' [package "sp"] with 4 slots
  ..@ data       :'data.frame': 273 obs. of  10 variables:
  ..@ lines      :List of 273
  ..@ bbox       : num [1:2, 1:2] -179.1 17.9 179.8 71.4
  .. ..- attr(*, "dimnames")=List of 2
  ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slots
proj4: 
+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
Location: 
United States
38° 53' 42.4032" N, 77° 2' 10.9176" W
Data owner: 

U.S. Dept of Commerce

AttachmentSizeHitsLast download
usa_borders.RData1.77 MB421011 hours 17 min ago
0
Your rating: None