svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.geometry / org.gvsig.expressionevaluator.geometry.lib / org.gvsig.expressionevaluator.geometry.lib.api / src / main / java / org / gvsig / expressionevaluator / GeometryExpressionBuilderHelper.java @ 47606
History | View | Annotate | Download (6.56 KB)
1 |
package org.gvsig.expressionevaluator; |
---|---|
2 |
|
3 |
import org.cresques.cts.IProjection; |
4 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Constant; |
5 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Parameter; |
6 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Value; |
7 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Function; |
8 |
import org.gvsig.fmap.geom.Geometry; |
9 |
import org.gvsig.fmap.geom.primitive.Envelope; |
10 |
|
11 |
public interface GeometryExpressionBuilderHelper { |
12 |
|
13 |
public static final String FUNCTION_ST_SRID = "ST_SRID"; |
14 |
public static final String FUNCTION_ST_ASTEXT = "ST_AsText"; |
15 |
public static final String FUNCTION_ST_ASBINARY = "ST_AsBinary"; |
16 |
public static final String FUNCTION_ST_ASEWKB = "ST_AsEWKB"; |
17 |
public static final String FUNCTION_ST_ENVELOPE = "ST_Envelope"; |
18 |
public static final String FUNCTION_ST_GEOMFROMTEXT = "ST_GeomFromText"; |
19 |
public static final String FUNCTION_ST_GEOMFROMWKB = "ST_GeomFromWKB"; |
20 |
public static final String FUNCTION_ST_GEOMFROMEWKB = "ST_GeomFromEWKB"; |
21 |
public static final String FUNCTION_ST_SIMPLIFY = "ST_Simplify"; |
22 |
public static final String FUNCTION_ST_EQUALS = "ST_Equals"; |
23 |
public static final String FUNCTION_ST_INTERSECTS = "ST_Intersects"; |
24 |
public static final String FUNCTION_ST_CONTAINS = "ST_Contains"; |
25 |
public static final String FUNCTION_ST_COVERS = "ST_Covers"; |
26 |
public static final String FUNCTION_ST_COVEREDBY = "ST_CoveredBy"; |
27 |
public static final String FUNCTION_ST_DISJOINT = "ST_Disjoint"; |
28 |
public static final String FUNCTION_ST_CROSSES = "ST_Crosses"; |
29 |
public static final String FUNCTION_ST_ISCLOSED = "ST_IsClosed"; |
30 |
public static final String FUNCTION_ST_OVERLAPS = "ST_Overlaps"; |
31 |
public static final String FUNCTION_ST_TOUCHES = "ST_Touches"; |
32 |
public static final String FUNCTION_ST_WITHIN = "ST_Within"; |
33 |
public static final String FUNCTION_ST_SETSRID = "ST_SetSRID"; |
34 |
public static final String FUNCTION_ST_POINT = "ST_Point"; |
35 |
public static final String FUNCTION_ST_MAKEPOINT = "ST_MakePoint"; |
36 |
public static final String FUNCTION_ST_UNIONAGGREGATE = "ST_UnionAggregate"; |
37 |
public static final String FUNCTION_ST_EXTENTAGGREGATE = "ST_ExtentAggregate"; |
38 |
public static final String FUNCTION_ST_FORCE2D = "ST_Force2D"; |
39 |
public static final String FUNCTION_ST_ISVALID = "ST_IsValid"; |
40 |
|
41 |
public static final int PARAMETER_TYPE_GEOMETRY = 2; |
42 |
|
43 |
public enum GeometrySupportType { |
44 |
WKT, |
45 |
WKB, |
46 |
EWKB, |
47 |
NATIVE |
48 |
} |
49 |
|
50 |
public interface GeometryParameter extends Parameter { |
51 |
@Override
|
52 |
public GeometryParameter as_constant();
|
53 |
@Override
|
54 |
public GeometryParameter as_variable();
|
55 |
public GeometryParameter as_geometry_variable();
|
56 |
@Override
|
57 |
public GeometryParameter value(Object value); |
58 |
|
59 |
@Override
|
60 |
public GeometryParameter name(String value); |
61 |
|
62 |
public GeometryParameter srs(IProjection srs);
|
63 |
|
64 |
public GeometryParameter srs(Value srs);
|
65 |
|
66 |
public Value srs();
|
67 |
public Geometry geometry();
|
68 |
public boolean is_geometry_variable(); |
69 |
} |
70 |
|
71 |
public ExpressionBuilder builder();
|
72 |
|
73 |
public GeometrySupportType geometry_support_type();
|
74 |
|
75 |
public GeometryExpressionBuilderHelper geometry_support_type(GeometrySupportType geometrySupportType);
|
76 |
|
77 |
public Object srs_id(IProjection projection); |
78 |
|
79 |
public GeometryParameter parameter(Object value); |
80 |
|
81 |
public GeometryParameter parameter(String name); |
82 |
|
83 |
public GeometryParameter parameter();
|
84 |
|
85 |
public Constant geometry(Geometry geom, IProjection srs);
|
86 |
|
87 |
public Constant geometry(Geometry geom);
|
88 |
|
89 |
public Constant envelope(Envelope envelope, IProjection srs);
|
90 |
|
91 |
public Constant envelope(Envelope envelope);
|
92 |
|
93 |
public Constant srs(IProjection srs);
|
94 |
|
95 |
public Value as_geometry(Value value);
|
96 |
|
97 |
public Function andand(Value geom1, Value geom2);
|
98 |
|
99 |
public Function ST_Area(Value geom);
|
100 |
|
101 |
public Function ST_AsBinary(Value geom);
|
102 |
|
103 |
public Function ST_AsEWKB(Value geom);
|
104 |
|
105 |
public Function ST_AsText(Value geom);
|
106 |
|
107 |
public Function ST_Buffer(Value geom);
|
108 |
|
109 |
public Function ST_Buffer(Value geom, Value dist);
|
110 |
|
111 |
public Function ST_Centroid(Value geom);
|
112 |
|
113 |
public Function ST_Contains(Value geom1, Value geom2);
|
114 |
|
115 |
public Function ST_CoveredBy(Value geom1, Value geom2);
|
116 |
|
117 |
public Function ST_Covers(Value geom1, Value geom2);
|
118 |
|
119 |
public Function ST_Crosses(Value geom1, Value geom2);
|
120 |
|
121 |
public Function ST_Diference(Value geom1, Value geom2);
|
122 |
|
123 |
public Function ST_Dimension(Value geom1);
|
124 |
|
125 |
public Function ST_Disjoint(Value geom1, Value geom2);
|
126 |
|
127 |
public Function ST_Distance(Value geom1, Value geom2);
|
128 |
|
129 |
public Function ST_EndPoint(Value geom1);
|
130 |
|
131 |
public Function ST_Envelope(Value geom);
|
132 |
|
133 |
public Function ST_Equals(Value geom1, Value geom2);
|
134 |
|
135 |
public Function ST_GeomFromText(Value geom, Value crs);
|
136 |
|
137 |
public Function ST_GeomFromWKB(Value geom, Value crs);
|
138 |
|
139 |
public Function ST_GeomFromEWKB(Value geom, Value crs);
|
140 |
|
141 |
public Function ST_Intersection(Value geom1, Value geom2);
|
142 |
|
143 |
public Function ST_Intersects(Value geom1, Value geom2);
|
144 |
|
145 |
public Function ST_IsClosed(Value geom);
|
146 |
|
147 |
public Function ST_IsSimple(Value geom);
|
148 |
|
149 |
public Function ST_IsValid(Value geom);
|
150 |
|
151 |
public Function ST_Force2D(Value geom);
|
152 |
|
153 |
public Function ST_NumGeometries(Value geom);
|
154 |
|
155 |
public Function ST_NumPoints(Value geom);
|
156 |
|
157 |
public Function ST_Overlaps(Value geom1, Value geom2);
|
158 |
|
159 |
public Function ST_Perimeter(Value geom);
|
160 |
|
161 |
public Function ST_Point(Value x, Value y);
|
162 |
|
163 |
public Function ST_MakePoint(Value x, Value y);
|
164 |
|
165 |
public Function ST_MakePoint(Value x, Value y, Value z);
|
166 |
|
167 |
public Function ST_MakePoint(Value x, Value y, Value z, Value m);
|
168 |
|
169 |
public Function ST_PointN(Value geom, Value n);
|
170 |
|
171 |
public Function ST_SRID(Value geom);
|
172 |
|
173 |
public Function ST_SetSRID(Value geom, Value srid);
|
174 |
|
175 |
public Function ST_StartPoint(Value geom);
|
176 |
|
177 |
public Function ST_Simplify(Value geom, Value tolerance);
|
178 |
|
179 |
public Function ST_Touches(Value geom1, Value geom2);
|
180 |
|
181 |
public Function ST_Union(Value geom1, Value geom2);
|
182 |
|
183 |
public Function ST_Within(Value geom1, Value geom2);
|
184 |
|
185 |
public Function ST_X(Value geom);
|
186 |
|
187 |
public Function ST_Y(Value geom);
|
188 |
|
189 |
public Function ST_Z(Value geom);
|
190 |
|
191 |
public Function ST_UnionAggregate(Value geom);
|
192 |
|
193 |
public Function ST_ExtentAggregate(Value geom);
|
194 |
|
195 |
} |