aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/SLDOperators.h
blob: 245797902f76aaf55dc0a4137cf8348b360f7b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//
//  SLDOperators.h
//  SLDTest
//
//  Created by Ranen Ghosh on 2016-08-12.
//  Copyright 2016-2019 mousebird consulting.
//

#import <Foundation/Foundation.h>
#import <WhirlyGlobeMaplyComponent/SLDExpressions.h>

/** @brief Base class for elements of ogc:comparisonOps or ogc:logicOps.
 
    Elements of ogc:spatialOps are not supported.
 @see http://schemas.opengis.net/filter/1.1.0/filter.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/filter.xsd for SLD v1.0.0
 */
@interface SLDOperator : NSObject
@property (nonatomic, strong) NSPredicate * _Nonnull predicate;
+ (BOOL)matchesElementNamed:(NSString * _Nonnull)elementName;
+ (SLDOperator * _Nullable)operatorForNode:(DDXMLNode * _Nonnull )node;
@end


/** @brief Class corresponding to the ogc:BinaryComparisonOpType elements
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDBinaryComparisonOperator : SLDOperator

@property (nonatomic, assign) BOOL matchCase;
@property (nonatomic, strong) NSString * _Nonnull elementName;

@property (nonatomic, strong) SLDExpression * _Nonnull leftExpression;
@property (nonatomic, strong) SLDExpression * _Nonnull rightExpression;


- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end


@interface SLDIsNullOperator : SLDOperator

@property (nonatomic, strong) SLDExpression * _Nonnull subExpression;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end


@interface SLDIsLikeOperator : SLDOperator

@property (nonatomic, strong, nullable) NSString *wildCardStr;
@property (nonatomic, strong, nullable) NSString *singleCharStr;
@property (nonatomic, strong, nullable) NSString *escapeCharStr;
@property (nonatomic, assign) BOOL matchCase;
@property (nonatomic, strong) SLDPropertyNameExpression * _Nonnull propertyExpression;
@property (nonatomic, strong) SLDLiteralExpression * _Nonnull literalExpression;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end

@interface SLDIsBetweenOperator : SLDOperator

@property (nonatomic, strong) SLDExpression * _Nonnull subExpression;
@property (nonatomic, strong) SLDExpression * _Nonnull lowerBoundaryExpression;
@property (nonatomic, strong) SLDExpression * _Nonnull upperBoundaryExpression;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end



/** @brief Class corresponding to the ogc:Not element
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDNotOperator : SLDOperator

@property (nonatomic, strong) SLDOperator * _Nonnull subOperator;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end

/** @brief Class corresponding to the ogc:BinaryLogicOpType elements
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDLogicalOperator : SLDOperator

@property (nonatomic, strong) NSString * _Nonnull elementName;
@property (nonatomic, strong) NSArray<SLDOperator *> * _Nonnull subOperators;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;

@end