ArcGIS Runtime SDK for iOS
100.15
|
A polygon barrier to constrain routes.
Instances of this class represent a polygon barrier that can be used to constrain routes generated by AGSRouteTask
or service areas generated by AGSServiceAreaTask
.
Barriers serve to temporarily restrict, add impedance (cost) to, and scale impedance on parts of the transportation network.
Instance Methods | |
(instancetype) | - initWithPolygon: |
(double) | - scaleFactorForCostAttribute: |
(void) | - setScaleFactor:forCostAttribute: |
Class Methods | |
(instancetype) | + barrierWithPolygon: |
Properties | |
NSInteger | barrierID |
AGSPolygon * | geometry |
NSString * | name |
AGSBarrierType | type |
+ (instancetype) barrierWithPolygon: | (AGSPolygon *) | polygon |
Initialize the polygon barrier with provided geometry
polygon | defining the shape and location of the barrier |
- (instancetype) initWithPolygon: | (AGSPolygon *) | polygon |
Initialize the polygon barrier with provided geometry
polygon | defining the shape and location of the barrier |
- (double) scaleFactorForCostAttribute: | (NSString *) | attributeName |
The scale factor for a cost attribute of the barrier. The factor can be used to increase or decrease the cost of traveling across the barrier
attributeName | name of the cost attribute |
- (void) setScaleFactor: | (double) | scaleFactor | |
forCostAttribute: | (NSString *) | attributeName | |
Sets the scale factor for a cost attribute of the barrier. The factor can be used to increase or decrease the cost of traveling across the barrier
scaleFactor | by which to increase or decrease the cost |
attributeName | name of the cost attribute |
|
readwritenonatomicassign |
Polygon barrier ID. This is a caller supplied foreign key that can be used to associate output polygon barriers with input polygon barriers.
- setPolygonBarriersWithFeatureTable:queryParameters: (AGSRouteParameters)
, AGSRouteResult::polygonBarriers
, - setPolygonBarriersWithFeatureTable:queryParameters: (AGSClosestFacilityParameters)
, AGSClosestFacilityResult::polygonBarriers
, - setPolygonBarriersWithFeatureTable:queryParameters: (AGSServiceAreaParameters)
, AGSServiceAreaResult::polygonBarriers
|
readwritenonatomicstrong |
The shape and location of the barrier
|
readwritenonatomiccopy |
The name of the polygon barrier.
|
readwritenonatomicassign |
The type of the barrier, whether it fully restricts travel accross it, or merely increases the cost of travel