ArcGIS Runtime SDK for iOS: AGSFeatureTable.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSFeatureTable.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <ArcGIS/AGSLoadableBase.h>
22 #import <ArcGIS/AGSPopupSource.h>
23 #import <ArcGIS/AGSGeometry.h>
24 
25 
26 
32 typedef NS_ENUM(NSInteger, AGSFeatureRequestMode) {
37 };
38 
39 @class AGSEnvelope;
40 @class AGSField;
41 @class AGSQueryParameters;
42 @class AGSFeature;
44 @class AGSEditResult;
45 @class AGSFeatureLayer;
48 @class AGSSpatialReference;
49 @class AGSLayer;
50 
51 @protocol AGSCancelable;
52 
60 
61 #pragma mark -
62 #pragma mark initializers
63 
64 #pragma mark -
65 #pragma mark properties
66 
71 @property (nullable, nonatomic, strong, readonly) AGSEnvelope *extent;
72 
77 @property (nonatomic, copy, readonly) NSArray<AGSField*> *fields;
78 
82 @property (nonatomic, assign, readonly) AGSGeometryType geometryType;
83 
90 @property (nonatomic, assign, readonly) BOOL hasGeometry;
91 
95 @property (nonatomic, assign, readonly) BOOL hasM;
96 
100 @property (nonatomic, assign, readonly) BOOL hasZ;
101 
107 @property (nonatomic, assign, readonly, getter=isEditable) BOOL editable;
108 
112 @property (nonatomic, assign, readonly) BOOL canAddFeature;
113 
117 @property (nonatomic, assign, readonly) BOOL canEditGeometry;
118 
123 @property (nonatomic, assign, readonly) NSInteger numberOfFeatures;
124 
129 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
130 
135 @property (nonatomic, copy, readonly) NSString *tableName;
136 
140 @property (nonatomic, copy, readwrite) NSString *displayName;
141 
147 @property (nullable, nonatomic, weak, readonly) AGSLayer *layer;
148 
149 #pragma mark -
150 #pragma mark methods
151 
152 
161 -(id<AGSCancelable>)addFeature:(AGSFeature *)feature completion:(nullable void(^)(NSError *__nullable error))completion;
162 
172 -(id<AGSCancelable>)addFeatures:(NSArray<AGSFeature*> *)features completion:(nullable void(^)(NSError *__nullable error))completion;
173 
179 -(BOOL)canDeleteFeature:(AGSFeature *)feature;
180 
186 -(BOOL)canUpdateFeature:(AGSFeature *)feature;
187 
195 
204 -(AGSFeature *)createFeatureWithAttributes:(NSDictionary<NSString*,id> *)attributes geometry:(nullable AGSGeometry *)geometry;
205 
215 -(id<AGSCancelable>)deleteFeature:(AGSFeature *)feature completion:(nullable void(^)(NSError *__nullable error))completion;
216 
227 -(id<AGSCancelable>)deleteFeatures:(NSArray<AGSFeature*> *)features completion:(nullable void(^)(NSError *__nullable error))completion;
228 
234 -(nullable AGSField *)fieldForName:(NSString *)fieldName;
235 
243 -(id<AGSCancelable>)queryFeaturesWithParameters:(AGSQueryParameters *)parameters
244  completion:(nullable void(^)(AGSFeatureQueryResult *__nullable result, NSError *__nullable error))completion;
245 
252 -(id<AGSCancelable>)queryExtentWithParameters:(AGSQueryParameters *)parameters
253  completion:(void(^)(AGSEnvelope *__nullable extent, NSError *__nullable error))completion;
254 
261 -(id<AGSCancelable>)queryFeatureCountWithParameters:(AGSQueryParameters *)parameters
262  completion:(void(^)(NSInteger count, NSError *__nullable error))completion;
263 
270 -(id<AGSCancelable>)queryStatisticsWithParameters:(AGSStatisticsQueryParameters *)parameters
271  completion:(void(^)(AGSStatisticsQueryResult *__nullable result, NSError *__nullable error))completion;
272 
282 -(id<AGSCancelable>)updateFeature:(AGSFeature *)feature completion:(nullable void(^)(NSError *__nullable error))completion;
283 
294 -(id<AGSCancelable>)updateFeatures:(NSArray<AGSFeature*> *)features completion:(nullable void(^)(NSError *__nullable error))completion;
295 
296 @end
297 
299 
306 @property (nullable, nonatomic, weak, readonly) AGSFeatureLayer *featureLayer ;
307 
308 @end
309 
310 
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:42
BOOL hasGeometry
Definition: AGSFeatureTable.h:90
A base class for loadables.
Definition: AGSLoadableBase.h:37
AGSFeatureLayer * featureLayer
Definition: AGSFeatureTable.h:306
BOOL hasM
Definition: AGSFeatureTable.h:95
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
Information about the outcome of an attachment edit operation.
Definition: AGSEditResult.h:44
A source for dataset containing geographic features or non-spatial records.
Definition: AGSFeatureTable.h:59
AGSEnvelope * extent
Definition: AGSFeatureTable.h:71
AGSSpatialReference * spatialReference
Definition: AGSFeatureTable.h:129
NSArray< AGSField * > * fields
Definition: AGSFeatureTable.h:77
BOOL canAddFeature
Definition: AGSFeatureTable.h:112
Definition: AGSFeatureTable.h:35
Parameters to perform a query using AGSFeatureTable.
Definition: AGSQueryParameters.h:37
Definition: AGSFeatureTable.h:34
AGSGeometryType geometryType
Definition: AGSFeatureTable.h:82
A layer that can visualize vector/feature data.
Definition: AGSFeatureLayer.h:149
NSInteger numberOfFeatures
Definition: AGSFeatureTable.h:123
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
BOOL hasZ
Definition: AGSFeatureTable.h:100
BOOL canEditGeometry
Definition: AGSFeatureTable.h:117
AGSFeature * createFeature()
Result of queries that return statistics.
Definition: AGSStatisticsQueryResult.h:40
AGSGeometryType
Definition: AGSGeometry.h:42
Definition: AGSFeatureTable.h:33
Definition: AGSFeatureTable.h:298
An object that represents information about a field.
Definition: AGSField.h:55
NSString * tableName
Definition: AGSFeatureTable.h:135
Parameters to perform a statistic query using AGSFeatureTable.
Definition: AGSStatisticsQueryParameters.h:36
An abstract base class for all layers.
Definition: AGSLayer.h:169
AGSLayer * layer
Definition: AGSFeatureTable.h:147
A representation of a real-world object on a map.
Definition: AGSFeature.h:40
Definition: AGSFeatureTable.h:36
AGSFeatureRequestMode
Definition: AGSFeatureTable.h:32
NSString * displayName
Definition: AGSFeatureTable.h:140
BOOL editable
Definition: AGSFeatureTable.h:107
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32
A source for popups.
Definition: AGSPopupSource.h:34