ArcGIS Runtime SDK for iOS
100.15
|
A geoprocessing parameter for files.
Instances of this class represent a parameter for files that can be used as input to a geoprocessing job or returned as the result of the job. The file can be on a remote server, or locally on disk. If the file is on a remote server and is intended to be used as an input to a geoprocessing job, make sure the geoprocessing service has access to the remote location.
Instance Methods | |
(id< AGSCancelable >) | - downloadToFileURL:completion: |
(instancetype) | - initWithInputFileURL: |
(instancetype) | - initWithUploadID: |
(instancetype) | - initWithURL: |
Class Methods | |
(instancetype) | + geoprocessingDataFile |
(instancetype) | + geoprocessingDataFileWithInputFileURL: |
(instancetype) | + geoprocessingDataFileWithUploadID: |
(instancetype) | + geoprocessingDataFileWithURL: |
(instancetype) | + geoprocessingParameter |
Properties | |
NSURL * | inputFileURL |
AGSGeoprocessingParameterType | type |
NSString * | uploadID |
NSURL * | URL |
- (id<AGSCancelable>) downloadToFileURL: | (NSURL *) | fileURL | |
completion: | (void(^)(NSURL *__nullable fileURL, NSError *__nullable error)) | completion | |
Download the file to the specified location on disk. Only applicable when this parameter's URL
represents a remote file on a server.
fileURL | location on disk to where the remote file should be downloaded. If location is a directory, the file will be given the name of the file take from the end of URL . Alternatively the location can be a destination filename within an existing directory. Note that any pre-existing file at that location with the same name will be deleted first. |
completion | block that is invoked with the URL of where the file was downloaded to when the operation succeeds, or an error if it fails |
+ (instancetype) geoprocessingDataFile |
+ (instancetype) geoprocessingDataFileWithInputFileURL: | (NSURL *) | inputFileURL |
+ (instancetype) geoprocessingDataFileWithUploadID: | (NSString *) | uploadID |
+ (instancetype) geoprocessingDataFileWithURL: | (NSURL *) | URL |
Initialize the parameter with the given URL representing a file either on a remote server, or locally on disk. If the parameter is intended to be used as an input to a geoprocessing job, and if it is created with URL to a remote file, make sure the geoprocessing service has access to the remote location.
URL | value for the parameter |
+ (instancetype) geoprocessingParameter |
- (instancetype) initWithInputFileURL: | (NSURL *) | inputFileURL |
Implemented in AGSGeoprocessingRaster.
- (instancetype) initWithUploadID: | (NSString *) | uploadID |
Implemented in AGSGeoprocessingRaster.
- (instancetype) initWithURL: | (NSURL *) | URL |
Initialize the parameter with the given URL representing a file either on a remote server, or locally on disk. If the parameter is intended to be used as an input to a geoprocessing job, and if it is created with URL to a remote file, make sure the geoprocessing service has access to the remote location.
URL | value for the parameter |
Implemented in AGSGeoprocessingRaster.
|
readwritenonatomicstrong |
The input file path of this parameter. This should be the location on disk of a file that will be uploaded to the server that the geoprocessing task will run on. This is only for input parameters. Setting this will override a URL set with AGSGeoprocessingDataFile::URL
. Note that this property will be ignored if AGSGeoprocessingDataFile::uploadID
is set.
|
readnonatomicassigninherited |
The data type of the parameter.
|
readwritenonatomiccopy |
The upload item id of this parameter. This should be the item id of an item in the geoprocessing service's uploads resource. This is only for input parameters. This will be the upload id of an item previously uploaded to the server. Note that if this property is set it will cause both the AGSGeoprocessingDataFile::inputFileURL
and AGSGeoprocessingDataFile::URL
properties to be ignored.
|
readwritenonatomicstrong |
Value of the parameter representing a local or remote file