A source for AGSArcGISMapImageSublayer
based on a SQL query of a dataset in a registered workspace.
Instances of this class represent a source for AGSArcGISMapImageSublayer
based on a SQL query of dataset, such as non-spatial table, feature class, or raster, that resides in a registered workspace of the ArcGIS map service. The workspace can be either a folder or geodatabase.
- Since
- 100.1
- See also
- initWithID:source: (AGSArcGISMapImageSublayer)
◆ initWithWorkspaceID:SQLQuery:objectIDFieldNames:
- (instancetype) initWithWorkspaceID: |
|
(NSString *) |
workspaceID |
SQLQuery: |
|
(NSString *) |
SQLQuery |
objectIDFieldNames: |
|
(NSArray< NSString * > *) |
objectIDFieldNames |
|
|
| |
Creates a source with the provided parameters.
- Parameters
-
workspaceID | ID of a registered workspace for the ArcGIS map service. The workspace can be either a folder or geodatabase. |
SQLQuery | specifying which dataset and features/rows to include in the source. |
objectIDFieldNames | List of field names specifying which fields should be combined to generate a unique identifier for each feature/row provided by the source. Field types supported are Integer, String, GUID, and Date. |
- Since
- 100.1
◆ tableQuerySublayerSourceWithWorkspaceID:SQLQuery:objectIDFieldNames:
+ (instancetype) tableQuerySublayerSourceWithWorkspaceID: |
|
(NSString *) |
workspaceID |
SQLQuery: |
|
(NSString *) |
SQLQuery |
objectIDFieldNames: |
|
(NSArray< NSString * > *) |
objectIDFieldNames |
|
|
| |
Creates a source with the provided parameters.
- Parameters
-
workspaceID | ID of a registered workspace for the ArcGIS map service. The workspace can be either a folder or geodatabase. |
SQLQuery | specifying which dataset and features/rows to include in the source. |
objectIDFieldNames | List of field names specifying which fields should be combined to generate a unique identifier for each feature/row provided by the source. Field types supported are Integer, String, GUID, and Date. |
- Since
- 100.1
- Returns
- A new source.
◆ geometryType
The type of geometry used by features belonging to the dataset.
- Since
- 100.1
◆ objectIDFieldNames
- (NSArray<NSString*>*) objectIDFieldNames |
|
readnonatomiccopy |
List of field names specifying which fields should be combined to generate a unique identifier for each feature/row provided by the source. Field types supported are Integer, String, GUID, and Date.
If a single integer field is specified, the service uses the values in that field directly to uniquely identify all features and rows returned from a queryTable. However, if a single string field or a group of fields is used as the unique identifier, map server maps those unique values to an integer. Since the value in the unique identifier field uniquely identifies a row or feature object, values in that field must always be unique and not null. Operations will behave unpredictably when non-unique or null values are encountered. It is your responsibility to guarantee that values in this field meet this requirement. The service does not enforce the uniqueness of values in the unique identifier field of a queryTable. If multiple fields are chosen, the values in these fields will be used as a key to generate a unique integer value. This resultant field is always called ESRI_OID unless a field of that name already exists.
- Since
- 100.1
◆ spatialReference
The spatial reference of features' geometry.
- Since
- 100.1
◆ SQLQuery
SQL query specifying which dataset and features/rows to include in the source.
- Since
- 100.1
◆ workspaceID
- (NSString*) workspaceID |
|
readnonatomiccopy |
ID of a registered workspace for the ArcGIS map service. The workspace can be either a folder or geodatabase.
- Since
- 100.1