Mercurial > dive4elements > gnv-client
diff 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 |
line wrap: on
line diff
--- a/geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/SDEQuery.java Tue Jan 05 15:08:01 2010 +0000 +++ b/geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/SDEQuery.java Fri Jan 08 14:40:08 2010 +0000 @@ -196,34 +196,7 @@ Connection con = null; try { con = getConnection(); -// // get the layer for querying -// SeLayer lLayer = new SeLayer(con, pLayername, pSpatialColumnName); -// SeCoordinateReference cref = lLayer.getCoordRef(); -// -// -// SeShape shape = new SeShape(); -// shape.setCoordRef(lLayer.getCoordRef()); -// SDEPoint[] lPoints = ArcSDEUtils.createPoints(pPoints); -// -// /* -// * int numPts, int numParts, int[] partOffsets,SDEPoint[] ptArray -// * */ -// shape.generatePolygon(lPoints.length, 1, null, lPoints); -// SeShapeFilter filter = new SeShapeFilter(pLayername, pSpatialColumnName, shape, SeFilter.METHOD_AI); -// SeShapeFilter[] filters = new SeShapeFilter[1]; -// filters[0] = filter; -// -// SeQuery spatialQuery = null; -// SeSqlConstruct sqlCons = new SeSqlConstruct(pLayername); -// spatialQuery = new SeQuery(con, pReturnFields, sqlCons); -// spatialQuery.prepareQuery(); -// /* -// * Set spatial constraints -// */ -// spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, filters); -// spatialQuery.execute(); - - return null;//handleResultSet(spatialQuery); + return null; } catch (TechnicalException e) { sLogger.error(e.getMessage(), e); @@ -253,34 +226,7 @@ Connection con = null; try { con = getConnection(); -// // get the layer for querying -// SeLayer lLayer = new SeLayer(con, pLayername, pSpatialColumnName); -// SeCoordinateReference cref = lLayer.getCoordRef(); -// -// -// SeShape shape = new SeShape(); -// shape.setCoordRef(lLayer.getCoordRef()); -// SDEPoint[] lPoints = ArcSDEUtils.createPoints(pPoints); -// -// /* -// * int numPts, int numParts, int[] partOffsets,SDEPoint[] ptArray -// * */ -// shape.generatePolygon(lPoints.length, 1, null, lPoints); -// SeShapeFilter filter = new SeShapeFilter(pLayername, pSpatialColumnName, shape, SeFilter.METHOD_AI); -// SeShapeFilter[] filters = new SeShapeFilter[1]; -// filters[0] = filter; -// -// SeQuery spatialQuery = null; -// SeSqlConstruct sqlCons = new SeSqlConstruct(pLayername,pWhere); -// spatialQuery = new SeQuery(con, pReturnFields, sqlCons); -// spatialQuery.prepareQuery(); -// /* -// * Set spatial constraints -// */ -// spatialQuery.setSpatialConstraints(SeQuery.SE_OPTIMIZE, false, filters); -// spatialQuery.execute(); - - return null;//handleResultSet(spatialQuery); + return null; } catch (TechnicalException e) { sLogger.error(e.getMessage(), e);