EarthEngineREST.AffineTransformType

Type for defining the affine transform of image requests. The six values form a 2x3 matrix:

See https://developers.google.com/earth-engine/reference/rest/v1beta/PixelGrid#affinetransform

EarthEngineREST.EESessionType

EESession type used for authenticating request to the API

  • project::AbstractString

    GCP project name used for REST API requests

  • auth::PyCall.PyObject

    authenticated Python requests session for making requests

EarthEngineREST.GridDimensionsType

Type used for defining the number of rows and columns for image requests See https://developers.google.com/earth-engine/reference/rest/v1beta/PixelGrid#GridDimensions

  • width::Integer

    width of the grid, in pixels

  • height::Integer

    height of the grid, in pixels

EarthEngineREST.PixelGridType

Type used for defining a pixel grid on the surface of the Earth, via a map projection See https://developers.google.com/earth-engine/reference/rest/v1beta/PixelGrid

  • dimensions::GridDimensions

    dimensions of the pixel grid

  • affineTransform::AffineTransform

    affine transform of pixel grid

  • crsCode::AbstractString

    standard coordinate reference system code (e.g. 'EPSG:4326')

EarthEngineREST.PixelGridMethod
PixelGrid(bbox::AbstractVector, resolution::Real, crsCode::String)

PixelGrid constructor based on bounding box, resolution, and crs code

EarthEngineREST.PixelGridMethod
PixelGrid(bbox::AbstractVector, shape::AbstractVector{Integer}, crsCode::String)

PixelGrid constructor based on bounding box, image dimensions, and crs code

EarthEngineREST.PixelGridMethod
PixelGrid(session::EESession,geom::EE.AbstractEEObject,resolution::Real,crsCode::String)

PixelGrid constructor based on an EarthEngine feature collection bounds, needs resolution and crs defined

EarthEngine.InitializeMethod
Initialize(session::EESession)

Extends the Initialize() function to take an authenticated Earth Engine session and use those credentials.

EarthEngineREST._sendrequestMethod
_sendrequest(session::EESession, endpoint::AbstractString, data::Dict{Symbol,<:Any}; version::AbstractString = "latest", nretries::Integer = 4)

Private function for sending requests to EarthEngine REST API. Uses exponential backoff to retry requests if failed with non-fatal error.

EarthEngineREST.computepixelsMethod
computepixels(session::EESession, pixelgrid::PixelGrid, image::EE.AbstractEEObject, bands::AbstractVector{String}; format::AbstractString = "NPY")

Function to take an EarthEngine computed image and return an Array with geographic information (i.e. GeoArray). Currently on the "NPY" format is available. See https://developers.google.com/earth-engine/reference/rest/v1beta/projects.image/computePixels

EarthEngineREST.computepixelsMethod
computepixels(session::EESession, pixelgrid::PixelGrid, image::EE.AbstractEEObject; format::AbstractString = "NPY")

Function to take an EarthEngine computed image and return an Array with geographic information (i.e. GeoArray). This signature will return all of the bands within the image. Currently on the "NPY" format is available. See https://developers.google.com/earth-engine/reference/rest/v1beta/projects.image/computePixels

EarthEngineREST.computetableMethod
computetable(session::EESession, featurecollection::EE.AbstractEEObject)

Fuction to request data from EarthEngine FeatureCollection and return as a GeoDataFrame. See https://developers.google.com/earth-engine/reference/rest/v1beta/projects.table/computeFeatures

EarthEngineREST.computevalueMethod
computevalue(session::EESession, value::EE.AbstractEEObject)

Fuction to request data from any arbitrary EarthEngine computation and return as the appropriate Julia object. See https://developers.google.com/earth-engine/reference/rest/v1beta/projects.value/compute

EarthEngineREST.extract_bboxMethod
extract_bbox(x::AffineTransform, griddims::GridDimensions)

Function to extract bounding box vector from AffineTransform type. Vector will be [W, S, E, N]

EarthEngineREST.extract_bboxMethod
extract_bbox(x::PixelGrid)

Function to extract bounding box vector from PixelGrid type. Vector will be [W, S, E, N]

EarthEngineREST.extract_gridcoordinatesMethod
extract_gridcoordinates(x::PixelGrid)

Function to convert PixelGrid to vectors of lat lon coordinates. Returns a tuple of (lon::Vector{Float64}, lat::Vector{Float64}).

EarthEngineREST.parse_npy_headerMethod
parse_npy_header(hdr::AbstractString)

Function to parse npy header information to extract dimensions and array dtypes. Customized implementation of NPY.parseheader to handle numpy structured arrays which EE always returns. See https://numpy.org/devdocs/reference/generated/numpy.lib.format.html#format-version-1-0 for spec.

EarthEngineREST.typetodictMethod
typetodict(x::T)

Function to convert EarthEngineREST types to dictionary key,value pairs to encode for API requests