search_to_spatialPolygons: search_to_spatialPolygons

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts espa inventory search results to a SpatialPolygonsDataFrame

Usage

1
search_to_spatialPolygons(espa_inventory_search_results)

Arguments

espa_inventory_search_results

List. The outputs of espa_inventory_search

Value

Character of the API KEY needed by the other inventory APIs.

Author(s)

Jonathan A. Greenberg (espa-tools@estarcion.net)

See Also

espa_inventory_search

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run:  
# Get API KEY (required EROS username/password): 
apiKey=espa_inventory_login("myusername","mypassword")

# Standard search:
search_results <- espa_inventory_search(datasetName="GLS2005",
		"lowerLeft"=list(latitude=75,longitude=-135),
		"upperRight"=list(latitude=90,longitude=-120),
		startDate="2006-01-01",endDate="2007-12-01",
		node="EE",
		maxResults=3,startingNumber=1,sortOrder="ASC",
		apiKey=apiKey)

plot(search_to_spatialPolygons(espa_inventory_search_results=search_results))

## End(Not run)

espa.tools documentation built on May 2, 2019, 5:54 p.m.