ArcGIS Runtime SDK for iOS
100.15
|
A polyline barrier to constrain routes.
Instances of this class represent a polyline 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) | - initWithPolyline: |
(double) | - scaleFactorForCostAttribute: |
(void) | - setScaleFactor:forCostAttribute: |
Class Methods | |
(instancetype) | + barrierWithPolyline: |
Properties | |
NSInteger | barrierID |
AGSPolyline * | geometry |
NSString * | name |
AGSBarrierType | type |
+ (instancetype) barrierWithPolyline: | (AGSPolyline *) | polyline |
Initialize the polyline barrier with provided geometry
polyline | defining the shape and location of the barrier |
- (instancetype) initWithPolyline: | (AGSPolyline *) | polyline |
Initialize the polyline barrier with provided geometry
polyline | 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 |
Polyline barrier ID. This is a caller supplied foreign key that can be used to associate output polyline barriers with input polyline barriers.
- setPolylineBarriersWithFeatureTable:queryParameters: (AGSRouteParameters)
, AGSRouteResult::polylineBarriers
, - setPolylineBarriersWithFeatureTable:queryParameters: (AGSClosestFacilityParameters)
, AGSClosestFacilityResult::polylineBarriers
, - setPolylineBarriersWithFeatureTable:queryParameters: (AGSServiceAreaParameters)
, AGSServiceAreaResult::polylineBarriers
|
readwritenonatomicstrong |
The shape and location of the barrier
|
readwritenonatomiccopy |
The name of the polyline barrier.
|
readwritenonatomicassign |
The type of the barrier, whether it fully restricts travel accross it, or merely increases the cost of travel