This task uploads one or more rasters from ENVI to the ENVI Connect.

Example


; Start the application
e = ENVI()
 
; Open an input file
File = Filepath('qb_boulder_msi', Subdir=['data'], $
  Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('UploadRasterToENVIConnect')
 
; Define inputs
; Edit the URL, user name, and password with your own credentials
Task.INPUT_RASTER = Raster
Task.ENVI_CONNECT_URL = 'https://server'
Task.USERNAME = 'My Username'
Task.PASSWORD = ENVISecureString(PLAINTEXT='my_password', $
    PUBLIC_KEY=Task.PUBLIC_KEY)
Task.RASTER_NAME = 'qb_boulder_msi'
 
; Run the task
Task.Execute

Syntax


Result = ENVITask('UploadRasterToENVIConnect')

Input parameters (Set, Get): ENVI_CONNECT_URL, INPUT_RASTER, IS_DERIVED, PASSWORD, RASTER_DESCRIPTION, RASTER_NAME, USERNAME

Output parameters (Get only): HTTP_RESPONSE

Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.

Input Parameters


ENVI_CONNECT_URL (required)

Specify a connection string that consists of the IP address or server (host) name to the ENVI Connect server (i.e., https://server).

INPUT_RASTER (required)

Specify the raster(s) to upload to ENVI Connect.

IS_DERIVED (optional)

Set this parameter for each raster that has been processed in ENVI. The default value is false.

PASSWORD (required)

Specify an ENVISecureString object representing the encrypted version of the ENVI Connect password to use. This task has a hidden parameter named PUBLIC_KEY that must be used to correctly encrypt the plaintext password. See the Example for details.

RASTER_DESCRIPTION (optional)

Specify a description of each raster to upload.

RASTER_NAME (optional)

Specify the name of each raster.

USERNAME (required)

Specify the username for logging in to ENVI Connect.

Output Parameters


HTTP_RESPONSE

The HTTP response from ENVI Connect.

Methods


Execute

Parameter

ParameterNames

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History


ENVI 5.6.3

Introduced

ENVI 6.0

Added support for uploading multiple rasters to ENVI Connect version 1.1.0.

ENVI 6.1

Added HTTP_RESPONSE version 1.1.1.

See Also


ENVITask