comparison geo-backend/src/test/java/de/intevation/gnv/geobackend/base/query/QueryExecutorTestCase.java @ 264:5bbdbc0bbddc

Added SFS-Support to ArcSDE-Query-Part geo-backend/trunk@211 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 13 Oct 2009 09:00:30 +0000
parents 9f2eaefe9dd4
children 1530890b28c9
comparison
equal deleted inserted replaced
263:031ef9649cd1 264:5bbdbc0bbddc
47 47
48 48
49 public void testSpatialQuery(){ 49 public void testSpatialQuery(){
50 try { 50 try {
51 51
52 this.testQuery(27031, "spatial_query", null); 52 this.testQuery(5, "spatial_query", null);
53 } catch (QueryException e) { 53 } catch (QueryException e) {
54 log.error(e,e); 54 log.error(e,e);
55 fail(); 55 fail();
56 } 56 }
57 } 57 }
117 Result tmpResult = it.next(); 117 Result tmpResult = it.next();
118 ResultDescriptor resultDescriptor = tmpResult.getResultDescriptor(); 118 ResultDescriptor resultDescriptor = tmpResult.getResultDescriptor();
119 int columns = resultDescriptor.getColumnCount(); 119 int columns = resultDescriptor.getColumnCount();
120 for (int i = 0; i < columns; i++){ 120 for (int i = 0; i < columns; i++){
121 String columnName = resultDescriptor.getColumnName(i); 121 String columnName = resultDescriptor.getColumnName(i);
122 Object value = tmpResult.getObject(columnName); 122 Object value = tmpResult.getString(columnName);
123 log.debug(columnName + " ==> "+value.toString()); 123 log.debug(columnName + " ==> "+value.toString());
124 } 124 }
125 } 125 }
126 } 126 }
127 log.debug("Query dauerte: "+(System.currentTimeMillis()-start) +"ms"); 127 log.debug("Query dauerte: "+(System.currentTimeMillis()-start) +"ms");

http://dive4elements.wald.intevation.org