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.impl / src / main / java / org / gvsig / expressionevaluator / impl / DefaultGeometryExpressionBuilder.java @ 44644
History | View | Annotate | Download (8.13 KB)
1 |
package org.gvsig.expressionevaluator.impl; |
---|---|
2 |
|
3 |
import org.cresques.cts.IProjection; |
4 |
import org.gvsig.expressionevaluator.ExpressionBuilder; |
5 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager; |
6 |
import org.gvsig.expressionevaluator.GeometryExpressionBuilder; |
7 |
import org.gvsig.expressionevaluator.GeometryExpressionBuilderHelper; |
8 |
import org.gvsig.fmap.geom.Geometry; |
9 |
import org.gvsig.fmap.geom.primitive.Envelope; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public class DefaultGeometryExpressionBuilder |
16 |
extends DefaultExpressionBuilder
|
17 |
implements GeometryExpressionBuilder {
|
18 |
|
19 |
private final DefaultGeometryExpressionBuilderHelper helper; |
20 |
|
21 |
public DefaultGeometryExpressionBuilder(ExpressionEvaluatorManager manager) {
|
22 |
super(manager);
|
23 |
this.helper = new DefaultGeometryExpressionBuilderHelper(this); |
24 |
} |
25 |
|
26 |
@Override
|
27 |
public ExpressionBuilder builder() {
|
28 |
return this; |
29 |
} |
30 |
|
31 |
@Override
|
32 |
public GeometrySupportType geometry_support_type() {
|
33 |
return this.helper.geometry_support_type(); |
34 |
} |
35 |
|
36 |
@Override
|
37 |
public GeometryExpressionBuilderHelper geometry_support_type(GeometrySupportType geometrySupportType) {
|
38 |
return this.helper.geometry_support_type(geometrySupportType); |
39 |
} |
40 |
|
41 |
@Override
|
42 |
public Object srs_id(IProjection projection) { |
43 |
return this.helper.srs_id(projection); |
44 |
} |
45 |
|
46 |
@Override
|
47 |
public GeometryParameter parameter(String name) { |
48 |
return this.helper.parameter(name); |
49 |
} |
50 |
|
51 |
@Override
|
52 |
public GeometryParameter parameter(Object value) { |
53 |
return this.helper.parameter(value); |
54 |
} |
55 |
|
56 |
@Override
|
57 |
public GeometryParameter parameter() {
|
58 |
return this.helper.parameter(); |
59 |
} |
60 |
|
61 |
@Override
|
62 |
public Constant geometry(Geometry geom, IProjection srs) {
|
63 |
return this.helper.geometry(geom, srs); |
64 |
} |
65 |
|
66 |
@Override
|
67 |
public Constant geometry(Geometry geom) {
|
68 |
return this.helper.geometry(geom); |
69 |
} |
70 |
|
71 |
@Override
|
72 |
public Constant envelope(Envelope envelope, IProjection srs) {
|
73 |
return this.helper.envelope(envelope, srs); |
74 |
} |
75 |
|
76 |
@Override
|
77 |
public Constant envelope(Envelope envelope) {
|
78 |
return this.helper.envelope(envelope); |
79 |
} |
80 |
|
81 |
@Override
|
82 |
public Constant srs(IProjection srs) {
|
83 |
return this.helper.srs(srs); |
84 |
} |
85 |
|
86 |
@Override
|
87 |
public Function as_geometry(Value value) {
|
88 |
return this.helper.as_geometry(value); |
89 |
} |
90 |
|
91 |
@Override
|
92 |
public Function ST_Area(Value geom) {
|
93 |
return this.helper.ST_Area(geom); |
94 |
} |
95 |
|
96 |
@Override
|
97 |
public Function ST_AsBinary(Value geom) {
|
98 |
return this.helper.ST_AsBinary(geom); |
99 |
} |
100 |
|
101 |
@Override
|
102 |
public Function ST_AsEWKB(Value geom) {
|
103 |
return this.helper.ST_AsEWKB(geom); |
104 |
} |
105 |
|
106 |
@Override
|
107 |
public Function ST_AsText(Value geom) {
|
108 |
return this.helper.ST_AsText(geom); |
109 |
} |
110 |
|
111 |
@Override
|
112 |
public Function ST_Buffer(Value geom) {
|
113 |
return this.helper.ST_Buffer(geom); |
114 |
} |
115 |
|
116 |
@Override
|
117 |
public Function ST_Buffer(Value geom, Value dist) {
|
118 |
return this.helper.ST_Buffer(geom); |
119 |
} |
120 |
|
121 |
@Override
|
122 |
public Function ST_Centroid(Value geom) {
|
123 |
return this.helper.ST_Centroid(geom); |
124 |
} |
125 |
|
126 |
@Override
|
127 |
public Function ST_Contains(Value geom1, Value geom2) {
|
128 |
return this.helper.ST_Contains(geom1, geom2); |
129 |
} |
130 |
|
131 |
@Override
|
132 |
public Function ST_CoveredBy(Value geom1, Value geom2) {
|
133 |
return this.helper.ST_CoveredBy(geom1, geom2); |
134 |
} |
135 |
|
136 |
@Override
|
137 |
public Function ST_Covers(Value geom1, Value geom2) {
|
138 |
return this.helper.ST_Covers(geom1, geom2); |
139 |
} |
140 |
|
141 |
@Override
|
142 |
public Function ST_Crosses(Value geom1, Value geom2) {
|
143 |
return this.helper.ST_Crosses(geom1, geom2); |
144 |
} |
145 |
|
146 |
@Override
|
147 |
public Function ST_Diference(Value geom1, Value geom2) {
|
148 |
return this.helper.ST_Diference(geom1, geom2); |
149 |
} |
150 |
|
151 |
@Override
|
152 |
public Function ST_Dimension(Value geom) {
|
153 |
return this.helper.ST_Dimension(geom); |
154 |
} |
155 |
|
156 |
@Override
|
157 |
public Function ST_Disjoint(Value geom1, Value geom2) {
|
158 |
return this.helper.ST_Disjoint(geom1, geom2); |
159 |
} |
160 |
|
161 |
@Override
|
162 |
public Function ST_Distance(Value geom1, Value geom2) {
|
163 |
return this.helper.ST_Distance(geom1, geom2); |
164 |
} |
165 |
|
166 |
@Override
|
167 |
public Function ST_EndPoint(Value geom) {
|
168 |
return this.helper.ST_EndPoint(geom); |
169 |
} |
170 |
|
171 |
@Override
|
172 |
public Function ST_Envelope(Value geom) {
|
173 |
return this.helper.ST_Envelope(geom); |
174 |
} |
175 |
|
176 |
@Override
|
177 |
public Function ST_Equals(Value geom1, Value geom2) {
|
178 |
return this.helper.ST_Equals(geom1, geom2); |
179 |
} |
180 |
|
181 |
@Override
|
182 |
public Function ST_GeomFromText(Value geom, Value crs) {
|
183 |
return this.helper.ST_GeomFromText(geom, crs); |
184 |
} |
185 |
|
186 |
@Override
|
187 |
public Function ST_GeomFromWKB(Value geom, Value crs) {
|
188 |
return this.helper.ST_GeomFromWKB(geom, crs); |
189 |
} |
190 |
|
191 |
@Override
|
192 |
public Function ST_GeomFromEWKB(Value geom, Value crs) {
|
193 |
return this.helper.ST_GeomFromEWKB(geom, crs); |
194 |
} |
195 |
|
196 |
@Override
|
197 |
public Function ST_Intersection(Value geom1, Value geom2) {
|
198 |
return this.helper.ST_Intersection(geom1, geom2); |
199 |
} |
200 |
|
201 |
@Override
|
202 |
public Function ST_Intersects(Value geom1, Value geom2) {
|
203 |
return this.helper.ST_Intersects(geom1, geom2); |
204 |
} |
205 |
|
206 |
@Override
|
207 |
public Function ST_IsClosed(Value geom) {
|
208 |
return this.helper.ST_IsClosed(geom); |
209 |
} |
210 |
|
211 |
@Override
|
212 |
public Function ST_IsSimple(Value geom) {
|
213 |
return this.helper.ST_IsSimple(geom); |
214 |
} |
215 |
|
216 |
@Override
|
217 |
public Function ST_IsValid(Value geom) {
|
218 |
return this.helper.ST_IsValid(geom); |
219 |
} |
220 |
|
221 |
@Override
|
222 |
public Function ST_Force2D(Value geom) {
|
223 |
return this.helper.ST_Force2D(geom); |
224 |
} |
225 |
|
226 |
@Override
|
227 |
public Function ST_NumGeometries(Value geom) {
|
228 |
return this.helper.ST_NumGeometries(geom); |
229 |
} |
230 |
|
231 |
@Override
|
232 |
public Function ST_NumPoints(Value geom) {
|
233 |
return this.helper.ST_NumPoints(geom); |
234 |
} |
235 |
|
236 |
@Override
|
237 |
public Function ST_Overlaps(Value geom1, Value geom2) {
|
238 |
return this.helper.ST_Overlaps(geom1, geom2); |
239 |
} |
240 |
|
241 |
@Override
|
242 |
public Function ST_Perimeter(Value geom) {
|
243 |
return this.helper.ST_Perimeter(geom); |
244 |
} |
245 |
|
246 |
@Override
|
247 |
public Function ST_Point(Value x, Value y) {
|
248 |
return this.helper.ST_Point(x,y); |
249 |
} |
250 |
|
251 |
@Override
|
252 |
public Function ST_MakePoint(Value x, Value y) {
|
253 |
return this.helper.ST_MakePoint(x, y); |
254 |
} |
255 |
|
256 |
@Override
|
257 |
public Function ST_MakePoint(Value x, Value y, Value z) {
|
258 |
return this.helper.ST_MakePoint(x, y, z); |
259 |
} |
260 |
|
261 |
@Override
|
262 |
public Function ST_MakePoint(Value x, Value y, Value z, Value m) {
|
263 |
return this.helper.ST_MakePoint(x, y , z); |
264 |
} |
265 |
|
266 |
@Override
|
267 |
public Function ST_PointN(Value geom, Value n) {
|
268 |
return this.helper.ST_PointN(geom, n); |
269 |
} |
270 |
|
271 |
@Override
|
272 |
public Function ST_SRID(Value geom) {
|
273 |
return this.helper.ST_SRID(geom); |
274 |
} |
275 |
|
276 |
@Override
|
277 |
public Function ST_SetSRID(Value geom, Value srid) {
|
278 |
return this.helper.ST_SetSRID(geom, srid); |
279 |
} |
280 |
|
281 |
@Override
|
282 |
public Function ST_StartPoint(Value geom) {
|
283 |
return this.helper.ST_StartPoint(geom); |
284 |
} |
285 |
|
286 |
@Override
|
287 |
public Function ST_Simplify(Value geom, Value tolerance) {
|
288 |
return this.helper.ST_Simplify(geom, tolerance); |
289 |
} |
290 |
|
291 |
@Override
|
292 |
public Function ST_Touches(Value geom1, Value geom2) {
|
293 |
return this.helper.ST_Touches(geom1, geom2); |
294 |
} |
295 |
|
296 |
@Override
|
297 |
public Function ST_Union(Value geom1, Value geom2) {
|
298 |
return this.helper.ST_Union(geom1, geom2); |
299 |
} |
300 |
|
301 |
@Override
|
302 |
public Function ST_Within(Value geom1, Value geom2) {
|
303 |
return this.helper.ST_Within(geom1, geom2); |
304 |
} |
305 |
|
306 |
@Override
|
307 |
public Function ST_X(Value geom) {
|
308 |
return this.helper.ST_X(geom); |
309 |
} |
310 |
|
311 |
@Override
|
312 |
public Function ST_Y(Value geom) {
|
313 |
return this.helper.ST_Y(geom); |
314 |
} |
315 |
|
316 |
@Override
|
317 |
public Function ST_Z(Value geom) {
|
318 |
return this.helper.ST_Z(geom); |
319 |
} |
320 |
|
321 |
@Override
|
322 |
public Function ST_UnionAggregate(Value geom) {
|
323 |
return this.helper.ST_UnionAggregate(geom); |
324 |
} |
325 |
|
326 |
@Override
|
327 |
public Function ST_ExtentAggregate(Value geom) {
|
328 |
return this.helper.ST_ExtentAggregate(geom); |
329 |
} |
330 |
|
331 |
} |