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 properties (Set, Get): ENVI_CONNECT_URL, INPUT_RASTER, IS_DERIVED, PASSWORD, RASTER_DESCRIPTION, RASTER_NAME, USERNAME

Output properties (Get only): HTTP_RESPONSE

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

Methods


This task inherits the following methods from ENVITask:

AddParameter

Execute

Parameter

ParameterNames

RemoveParameter

Properties


This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

This task also contains the following properties:

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).

HTTP_RESPONSE

The HTTP response from ENVI Connect.

INPUT_RASTER (required)

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

IS_DERIVED (optional)

Set this property 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.

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.

API Version


4.3

See Also


ENVITask