Mercurial > dive4elements > gnv-client
annotate geo-backend/src/test/java/de/intevation/gnv/geobackend/base/query/GroupBySample.java @ 885:1c3efbd2fc5a
Removes trailing whitespace.
geo-backend/trunk@850 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:49:16 +0000 |
parents | 0ee3c0ed40e4 |
children | ebeb56428409 |
rev | line source |
---|---|
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.gnv.geobackend.base.query; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 import com.esri.sde.sdk.client.SDEPoint; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 import com.esri.sde.sdk.client.SeColumnDefinition; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
5 import com.esri.sde.sdk.client.SeConnection; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 import com.esri.sde.sdk.client.SeException; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 import com.esri.sde.sdk.client.SeFilter; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
8 import com.esri.sde.sdk.client.SeLayer; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 import com.esri.sde.sdk.client.SeQuery; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 import com.esri.sde.sdk.client.SeQueryInfo; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 import com.esri.sde.sdk.client.SeRow; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 import com.esri.sde.sdk.client.SeShape; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 import com.esri.sde.sdk.client.SeShapeFilter; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 import com.esri.sde.sdk.client.SeSqlConstruct; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
16 public class GroupBySample { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
18 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
19 public void executeQuery(SeConnection con, String[] pLayername, |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
20 String pSpatialColumnName, String pWhere, |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
21 SDEPoint[] g, String[] pReturnFields, String byClause) { |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
22 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
23 try { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
24 // get the layer for querying |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
25 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
26 SeShapeFilter[] filters = null; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 if (g != null){ |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 SeLayer lLayer = new SeLayer(con, pLayername[0], pSpatialColumnName); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 SeShape shape = new SeShape(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
30 shape.setCoordRef(lLayer.getCoordRef()); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
31 |
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
32 |
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
33 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 shape.generatePolygon(g.length, 1, null, g); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 SeShapeFilter filter = new SeShapeFilter(pLayername[0], |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 pSpatialColumnName, shape, SeFilter.METHOD_AI); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 filters = new SeShapeFilter[1]; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 filters[0] = filter; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
39 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
40 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 SeQuery spatialQuery = null; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 SeSqlConstruct sqlCons = new SeSqlConstruct(pLayername, pWhere); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
43 spatialQuery = new SeQuery(con); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
44 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
45 SeQueryInfo queryInfo = new SeQueryInfo(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
46 queryInfo.setColumns(pReturnFields); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
47 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
48 if (byClause != null){ |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
49 queryInfo.setByClause(byClause); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
50 } |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
51 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
52 queryInfo.setConstruct(sqlCons); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
53 spatialQuery.prepareQueryInfo(queryInfo); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
54 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
55 /* |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
56 * Set spatial constraints |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
57 */ |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
58 if (filters != null){ |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
59 spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
60 filters); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
61 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
62 spatialQuery.execute(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
63 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
64 SeRow row; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
65 int lCount; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
66 for (lCount = 0; (row =spatialQuery.fetch()) != null; lCount++) { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
67 // one time execution |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
68 if (lCount == 0) { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
69 // analyze cols of result set |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
70 SeColumnDefinition[] lCols = row.getColumns(); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
71 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
72 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
73 short lNumCols = row.getNumColumns(); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
74 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
75 for (int i = 0; i < lNumCols; i++) { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
76 System.out.println(row.getObject(i)); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
77 } |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
78 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
79 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
80 spatialQuery.close(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
81 |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
82 } catch (Exception e){ |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
83 e.printStackTrace(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
84 } |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
85 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
86 } |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
87 |
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
88 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
89 /** |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
90 * @param args |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
91 */ |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
92 public static void main(String[] args) { |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
93 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
94 try { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
95 String[] layerNames = new String[] { "median.meshpoint", "median.mesh" }; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
96 String spatialColumnName = "SHAPE"; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
97 String where = "median.meshpoint.meshid = median.mesh.meshid"; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
98 String[] returnFields = new String[] { "sourceid" }; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
99 String byClause = "group by sourceid"; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
100 SDEPoint[] g = new SDEPoint[5]; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
101 g[0] = new SDEPoint(52, 8); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
102 g[1] = new SDEPoint(52, 9); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
103 g[2] = new SDEPoint(53, 9); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
104 g[3] = new SDEPoint(53, 8); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
105 g[4] = new SDEPoint(52, 8); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
106 |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
107 String server = ""; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
108 String port = ""; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
109 String database = ""; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
110 String username = ""; |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
111 String credentials = ""; |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
112 SeConnection con = new SeConnection(server, port, |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
113 database, username, |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
114 credentials); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
115 new GroupBySample().executeQuery(con, layerNames, spatialColumnName, |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
116 where, g, returnFields, byClause); |
885
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
117 |
1c3efbd2fc5a
Removes trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
554
diff
changeset
|
118 |
554
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
119 } catch (SeException e) { |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
120 e.printStackTrace(); |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
121 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
122 } |
0ee3c0ed40e4
Added two Sample-Application demonstrating Bugs in the ArcSDE
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
123 } |