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 | 44006 | jjdelcerro | package org.gvsig.expressionevaluator; |
---|---|---|---|
2 | 43020 | jjdelcerro | |
3 | import org.cresques.cts.IProjection; |
||
4 | 44644 | jjdelcerro | 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 | 43020 | jjdelcerro | import org.gvsig.fmap.geom.Geometry; |
9 | 43034 | jjdelcerro | import org.gvsig.fmap.geom.primitive.Envelope; |
10 | 43020 | jjdelcerro | |
11 | 44644 | jjdelcerro | public interface GeometryExpressionBuilderHelper { |
12 | 43020 | jjdelcerro | |
13 | 44198 | jjdelcerro | 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 | 44253 | jjdelcerro | public static final String FUNCTION_ST_SETSRID = "ST_SetSRID"; |
32 | public static final String FUNCTION_ST_POINT = "ST_Point"; |
||
33 | 44431 | jjdelcerro | public static final String FUNCTION_ST_MAKEPOINT = "ST_MakePoint"; |
34 | 44198 | jjdelcerro | public static final String FUNCTION_ST_UNIONAGGREGATE = "ST_UnionAggregate"; |
35 | public static final String FUNCTION_ST_EXTENTAGGREGATE = "ST_ExtentAggregate"; |
||
36 | 44612 | jjdelcerro | public static final String FUNCTION_ST_FORCE2D = "ST_Force2D"; |
37 | 44198 | jjdelcerro | |
38 | 44644 | jjdelcerro | public static final int PARAMETER_TYPE_GEOMETRY = 2; |
39 | 44198 | jjdelcerro | |
40 | 43020 | jjdelcerro | public enum GeometrySupportType { |
41 | WKT, |
||
42 | WKB, |
||
43 | 43358 | jjdelcerro | EWKB, |
44 | NATIVE |
||
45 | 43020 | jjdelcerro | } |
46 | |||
47 | 44644 | jjdelcerro | public interface GeometryParameter extends Parameter { |
48 | 44198 | jjdelcerro | @Override
|
49 | 44644 | jjdelcerro | public GeometryParameter as_constant();
|
50 | 44198 | jjdelcerro | @Override
|
51 | 44644 | jjdelcerro | public GeometryParameter as_variable();
|
52 | public GeometryParameter as_geometry_variable();
|
||
53 | 44198 | jjdelcerro | @Override
|
54 | 44644 | jjdelcerro | public GeometryParameter value(Object value); |
55 | |||
56 | 44198 | jjdelcerro | @Override
|
57 | 44644 | jjdelcerro | public GeometryParameter name(String value); |
58 | 44198 | jjdelcerro | |
59 | 44644 | jjdelcerro | 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 | 44198 | jjdelcerro | } |
67 | 44644 | jjdelcerro | |
68 | public ExpressionBuilder builder();
|
||
69 | 43020 | jjdelcerro | |
70 | public GeometrySupportType geometry_support_type();
|
||
71 | 44198 | jjdelcerro | |
72 | 44644 | jjdelcerro | public GeometryExpressionBuilderHelper geometry_support_type(GeometrySupportType geometrySupportType);
|
73 | 43020 | jjdelcerro | |
74 | 44198 | jjdelcerro | public Object srs_id(IProjection projection); |
75 | 43020 | jjdelcerro | |
76 | 44644 | jjdelcerro | public GeometryParameter parameter(Object value); |
77 | 44198 | jjdelcerro | |
78 | 44644 | jjdelcerro | public GeometryParameter parameter(String name); |
79 | 43020 | jjdelcerro | |
80 | 44644 | jjdelcerro | public GeometryParameter parameter();
|
81 | 43020 | jjdelcerro | |
82 | 44644 | jjdelcerro | public Constant geometry(Geometry geom, IProjection srs);
|
83 | 43020 | jjdelcerro | |
84 | 44198 | jjdelcerro | public Constant geometry(Geometry geom);
|
85 | 43020 | jjdelcerro | |
86 | 44644 | jjdelcerro | public Constant envelope(Envelope envelope, IProjection srs);
|
87 | 44006 | jjdelcerro | |
88 | 44198 | jjdelcerro | public Constant envelope(Envelope envelope);
|
89 | 43034 | jjdelcerro | |
90 | 44644 | jjdelcerro | public Constant srs(IProjection srs);
|
91 | 44006 | jjdelcerro | |
92 | 44198 | jjdelcerro | public Function as_geometry(Value value);
|
93 | 44644 | jjdelcerro | |
94 | 44364 | jjdelcerro | public Function ST_Area(Value geom);
|
95 | 43020 | jjdelcerro | |
96 | public Function ST_AsBinary(Value geom);
|
||
97 | |||
98 | public Function ST_AsEWKB(Value geom);
|
||
99 | |||
100 | 44364 | jjdelcerro | public Function ST_AsText(Value geom);
|
101 | |||
102 | public Function ST_Buffer(Value geom);
|
||
103 | |||
104 | 44568 | jjdelcerro | public Function ST_Buffer(Value geom, Value dist);
|
105 | |||
106 | 44364 | jjdelcerro | 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 | 43020 | jjdelcerro | public Function ST_Envelope(Value geom);
|
127 | |||
128 | 44364 | jjdelcerro | public Function ST_Equals(Value geom1, Value geom2);
|
129 | |||
130 | 43020 | jjdelcerro | 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 | 44364 | jjdelcerro | public Function ST_Intersection(Value geom1, Value geom2);
|
137 | 43355 | jjdelcerro | |
138 | 43020 | jjdelcerro | public Function ST_Intersects(Value geom1, Value geom2);
|
139 | |||
140 | 44364 | jjdelcerro | public Function ST_IsClosed(Value geom);
|
141 | 43020 | jjdelcerro | |
142 | 44364 | jjdelcerro | public Function ST_IsSimple(Value geom);
|
143 | 43034 | jjdelcerro | |
144 | 44364 | jjdelcerro | public Function ST_IsValid(Value geom);
|
145 | 43020 | jjdelcerro | |
146 | 44612 | jjdelcerro | public Function ST_Force2D(Value geom);
|
147 | |||
148 | 44364 | jjdelcerro | public Function ST_NumGeometries(Value geom);
|
149 | |||
150 | public Function ST_NumPoints(Value geom);
|
||
151 | 43020 | jjdelcerro | |
152 | public Function ST_Overlaps(Value geom1, Value geom2);
|
||
153 | |||
154 | 44364 | jjdelcerro | public Function ST_Perimeter(Value geom);
|
155 | |||
156 | public Function ST_Point(Value x, Value y);
|
||
157 | |||
158 | 44431 | jjdelcerro | 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 | 44364 | jjdelcerro | 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 | 43020 | jjdelcerro | public Function ST_Touches(Value geom1, Value geom2);
|
175 | |||
176 | 44364 | jjdelcerro | public Function ST_Union(Value geom1, Value geom2);
|
177 | |||
178 | 43020 | jjdelcerro | public Function ST_Within(Value geom1, Value geom2);
|
179 | |||
180 | 44364 | jjdelcerro | public Function ST_X(Value geom);
|
181 | 44253 | jjdelcerro | |
182 | 44364 | jjdelcerro | public Function ST_Y(Value geom);
|
183 | 44253 | jjdelcerro | |
184 | 44364 | jjdelcerro | public Function ST_Z(Value geom);
|
185 | |||
186 | 44198 | jjdelcerro | public Function ST_UnionAggregate(Value geom);
|
187 | 43020 | jjdelcerro | |
188 | 44198 | jjdelcerro | public Function ST_ExtentAggregate(Value geom);
|
189 | 44364 | jjdelcerro | |
190 | 43020 | jjdelcerro | } |