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 @ 44644
History | View | Annotate | Download (6.31 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_DISJOINT = "ST_Disjoint"; |
26 |
public static final String FUNCTION_ST_CROSSES = "ST_Crosses"; |
27 |
public static final String FUNCTION_ST_ISCLOSED = "ST_IsClosed"; |
28 |
public static final String FUNCTION_ST_OVERLAPS = "ST_Overlaps"; |
29 |
public static final String FUNCTION_ST_TOUCHES = "ST_Touches"; |
30 |
public static final String FUNCTION_ST_WITHIN = "ST_Within"; |
31 |
public static final String FUNCTION_ST_SETSRID = "ST_SetSRID"; |
32 |
public static final String FUNCTION_ST_POINT = "ST_Point"; |
33 |
public static final String FUNCTION_ST_MAKEPOINT = "ST_MakePoint"; |
34 |
public static final String FUNCTION_ST_UNIONAGGREGATE = "ST_UnionAggregate"; |
35 |
public static final String FUNCTION_ST_EXTENTAGGREGATE = "ST_ExtentAggregate"; |
36 |
public static final String FUNCTION_ST_FORCE2D = "ST_Force2D"; |
37 |
|
38 |
public static final int PARAMETER_TYPE_GEOMETRY = 2; |
39 |
|
40 |
public enum GeometrySupportType { |
41 |
WKT, |
42 |
WKB, |
43 |
EWKB, |
44 |
NATIVE |
45 |
} |
46 |
|
47 |
public interface GeometryParameter extends Parameter { |
48 |
@Override
|
49 |
public GeometryParameter as_constant();
|
50 |
@Override
|
51 |
public GeometryParameter as_variable();
|
52 |
public GeometryParameter as_geometry_variable();
|
53 |
@Override
|
54 |
public GeometryParameter value(Object value); |
55 |
|
56 |
@Override
|
57 |
public GeometryParameter name(String value); |
58 |
|
59 |
public GeometryParameter srs(IProjection srs);
|
60 |
|
61 |
public GeometryParameter srs(Value srs);
|
62 |
|
63 |
public Value srs();
|
64 |
public Geometry geometry();
|
65 |
public boolean is_geometry_variable(); |
66 |
} |
67 |
|
68 |
public ExpressionBuilder builder();
|
69 |
|
70 |
public GeometrySupportType geometry_support_type();
|
71 |
|
72 |
public GeometryExpressionBuilderHelper geometry_support_type(GeometrySupportType geometrySupportType);
|
73 |
|
74 |
public Object srs_id(IProjection projection); |
75 |
|
76 |
public GeometryParameter parameter(Object value); |
77 |
|
78 |
public GeometryParameter parameter(String name); |
79 |
|
80 |
public GeometryParameter parameter();
|
81 |
|
82 |
public Constant geometry(Geometry geom, IProjection srs);
|
83 |
|
84 |
public Constant geometry(Geometry geom);
|
85 |
|
86 |
public Constant envelope(Envelope envelope, IProjection srs);
|
87 |
|
88 |
public Constant envelope(Envelope envelope);
|
89 |
|
90 |
public Constant srs(IProjection srs);
|
91 |
|
92 |
public Function as_geometry(Value value);
|
93 |
|
94 |
public Function ST_Area(Value geom);
|
95 |
|
96 |
public Function ST_AsBinary(Value geom);
|
97 |
|
98 |
public Function ST_AsEWKB(Value geom);
|
99 |
|
100 |
public Function ST_AsText(Value geom);
|
101 |
|
102 |
public Function ST_Buffer(Value geom);
|
103 |
|
104 |
public Function ST_Buffer(Value geom, Value dist);
|
105 |
|
106 |
public Function ST_Centroid(Value geom);
|
107 |
|
108 |
public Function ST_Contains(Value geom1, Value geom2);
|
109 |
|
110 |
public Function ST_CoveredBy(Value geom1, Value geom2);
|
111 |
|
112 |
public Function ST_Covers(Value geom1, Value geom2);
|
113 |
|
114 |
public Function ST_Crosses(Value geom1, Value geom2);
|
115 |
|
116 |
public Function ST_Diference(Value geom1, Value geom2);
|
117 |
|
118 |
public Function ST_Dimension(Value geom1);
|
119 |
|
120 |
public Function ST_Disjoint(Value geom1, Value geom2);
|
121 |
|
122 |
public Function ST_Distance(Value geom1, Value geom2);
|
123 |
|
124 |
public Function ST_EndPoint(Value geom1);
|
125 |
|
126 |
public Function ST_Envelope(Value geom);
|
127 |
|
128 |
public Function ST_Equals(Value geom1, Value geom2);
|
129 |
|
130 |
public Function ST_GeomFromText(Value geom, Value crs);
|
131 |
|
132 |
public Function ST_GeomFromWKB(Value geom, Value crs);
|
133 |
|
134 |
public Function ST_GeomFromEWKB(Value geom, Value crs);
|
135 |
|
136 |
public Function ST_Intersection(Value geom1, Value geom2);
|
137 |
|
138 |
public Function ST_Intersects(Value geom1, Value geom2);
|
139 |
|
140 |
public Function ST_IsClosed(Value geom);
|
141 |
|
142 |
public Function ST_IsSimple(Value geom);
|
143 |
|
144 |
public Function ST_IsValid(Value geom);
|
145 |
|
146 |
public Function ST_Force2D(Value geom);
|
147 |
|
148 |
public Function ST_NumGeometries(Value geom);
|
149 |
|
150 |
public Function ST_NumPoints(Value geom);
|
151 |
|
152 |
public Function ST_Overlaps(Value geom1, Value geom2);
|
153 |
|
154 |
public Function ST_Perimeter(Value geom);
|
155 |
|
156 |
public Function ST_Point(Value x, Value y);
|
157 |
|
158 |
public Function ST_MakePoint(Value x, Value y);
|
159 |
|
160 |
public Function ST_MakePoint(Value x, Value y, Value z);
|
161 |
|
162 |
public Function ST_MakePoint(Value x, Value y, Value z, Value m);
|
163 |
|
164 |
public Function ST_PointN(Value geom, Value n);
|
165 |
|
166 |
public Function ST_SRID(Value geom);
|
167 |
|
168 |
public Function ST_SetSRID(Value geom, Value srid);
|
169 |
|
170 |
public Function ST_StartPoint(Value geom);
|
171 |
|
172 |
public Function ST_Simplify(Value geom, Value tolerance);
|
173 |
|
174 |
public Function ST_Touches(Value geom1, Value geom2);
|
175 |
|
176 |
public Function ST_Union(Value geom1, Value geom2);
|
177 |
|
178 |
public Function ST_Within(Value geom1, Value geom2);
|
179 |
|
180 |
public Function ST_X(Value geom);
|
181 |
|
182 |
public Function ST_Y(Value geom);
|
183 |
|
184 |
public Function ST_Z(Value geom);
|
185 |
|
186 |
public Function ST_UnionAggregate(Value geom);
|
187 |
|
188 |
public Function ST_ExtentAggregate(Value geom);
|
189 |
|
190 |
} |