Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/SDEQuery.java @ 546:210716612c30
Removed Encodingerrors from listed Files. All Files are now UTF-8 compliant.
geo-backend/trunk@517 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 08 Jan 2010 14:40:08 +0000 |
parents | 122fdc9da5f0 |
children | 7615ee5d1345 |
comparison
equal
deleted
inserted
replaced
545:347c84467478 | 546:210716612c30 |
---|---|
194 public ResultSet executeQuery(String pLayername, String pSpatialColumnName, double[][] pPoints, String[] pReturnFields) throws TechnicalException { | 194 public ResultSet executeQuery(String pLayername, String pSpatialColumnName, double[][] pPoints, String[] pReturnFields) throws TechnicalException { |
195 sLogger.debug("executeQuery()"); | 195 sLogger.debug("executeQuery()"); |
196 Connection con = null; | 196 Connection con = null; |
197 try { | 197 try { |
198 con = getConnection(); | 198 con = getConnection(); |
199 // // get the layer for querying | 199 return null; |
200 // SeLayer lLayer = new SeLayer(con, pLayername, pSpatialColumnName); | |
201 // SeCoordinateReference cref = lLayer.getCoordRef(); | |
202 // | |
203 // | |
204 // SeShape shape = new SeShape(); | |
205 // shape.setCoordRef(lLayer.getCoordRef()); | |
206 // SDEPoint[] lPoints = ArcSDEUtils.createPoints(pPoints); | |
207 // | |
208 // /* | |
209 // * int numPts, int numParts, int[] partOffsets,SDEPoint[] ptArray | |
210 // * */ | |
211 // shape.generatePolygon(lPoints.length, 1, null, lPoints); | |
212 // SeShapeFilter filter = new SeShapeFilter(pLayername, pSpatialColumnName, shape, SeFilter.METHOD_AI); | |
213 // SeShapeFilter[] filters = new SeShapeFilter[1]; | |
214 // filters[0] = filter; | |
215 // | |
216 // SeQuery spatialQuery = null; | |
217 // SeSqlConstruct sqlCons = new SeSqlConstruct(pLayername); | |
218 // spatialQuery = new SeQuery(con, pReturnFields, sqlCons); | |
219 // spatialQuery.prepareQuery(); | |
220 // /* | |
221 // * Set spatial constraints | |
222 // */ | |
223 // spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, filters); | |
224 // spatialQuery.execute(); | |
225 | |
226 return null;//handleResultSet(spatialQuery); | |
227 | 200 |
228 } catch (TechnicalException e) { | 201 } catch (TechnicalException e) { |
229 sLogger.error(e.getMessage(), e); | 202 sLogger.error(e.getMessage(), e); |
230 throw e; | 203 throw e; |
231 } catch (Exception e) { | 204 } catch (Exception e) { |
251 public ResultSet executeQuery(String pLayername, String pSpatialColumnName, String pWhere, double[][] pPoints, String[] pReturnFields) throws TechnicalException { | 224 public ResultSet executeQuery(String pLayername, String pSpatialColumnName, String pWhere, double[][] pPoints, String[] pReturnFields) throws TechnicalException { |
252 sLogger.debug("executeQuery()"); | 225 sLogger.debug("executeQuery()"); |
253 Connection con = null; | 226 Connection con = null; |
254 try { | 227 try { |
255 con = getConnection(); | 228 con = getConnection(); |
256 // // get the layer for querying | 229 return null; |
257 // SeLayer lLayer = new SeLayer(con, pLayername, pSpatialColumnName); | |
258 // SeCoordinateReference cref = lLayer.getCoordRef(); | |
259 // | |
260 // | |
261 // SeShape shape = new SeShape(); | |
262 // shape.setCoordRef(lLayer.getCoordRef()); | |
263 // SDEPoint[] lPoints = ArcSDEUtils.createPoints(pPoints); | |
264 // | |
265 // /* | |
266 // * int numPts, int numParts, int[] partOffsets,SDEPoint[] ptArray | |
267 // * */ | |
268 // shape.generatePolygon(lPoints.length, 1, null, lPoints); | |
269 // SeShapeFilter filter = new SeShapeFilter(pLayername, pSpatialColumnName, shape, SeFilter.METHOD_AI); | |
270 // SeShapeFilter[] filters = new SeShapeFilter[1]; | |
271 // filters[0] = filter; | |
272 // | |
273 // SeQuery spatialQuery = null; | |
274 // SeSqlConstruct sqlCons = new SeSqlConstruct(pLayername,pWhere); | |
275 // spatialQuery = new SeQuery(con, pReturnFields, sqlCons); | |
276 // spatialQuery.prepareQuery(); | |
277 // /* | |
278 // * Set spatial constraints | |
279 // */ | |
280 // spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, filters); | |
281 // spatialQuery.execute(); | |
282 | |
283 return null;//handleResultSet(spatialQuery); | |
284 | 230 |
285 } catch (TechnicalException e) { | 231 } catch (TechnicalException e) { |
286 sLogger.error(e.getMessage(), e); | 232 sLogger.error(e.getMessage(), e); |
287 throw e; | 233 throw e; |
288 } catch (Exception e) { | 234 } catch (Exception e) { |