Revision 1755 branches/FMap_SLD/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DBStrategy.java
DBStrategy.java | ||
---|---|---|
86 | 86 |
// teniendo en cuenta el boundingbox que toca. |
87 | 87 |
FLayer capa = getCapa(); |
88 | 88 |
VectorialDBAdapter dbAdapter = (VectorialDBAdapter) ((SingleLayer) capa).getSource(); |
89 |
|
|
89 |
dbAdapter.start(); |
|
90 | 90 |
String strEPSG = viewPort.getProjection().getAbrev().substring(5); |
91 | 91 |
GeometryIterator geomIt = dbAdapter.getGeometryIterator(viewPort.getAdjustedExtent(), strEPSG); |
92 | 92 |
VectorialLegend l = (VectorialLegend) ((ClassifiableVectorial) capa).getLegend(); |
... | ... | |
94 | 94 |
while (geomIt.hasNext()) |
95 | 95 |
{ |
96 | 96 |
if (cancel.isCanceled()) { |
97 |
// TODO: Deber?amos cerrar el resulset que va dentro del iterator
|
|
97 |
dbAdapter.stop();
|
|
98 | 98 |
break; |
99 | 99 |
} |
100 | 100 |
|
... | ... | |
111 | 111 |
e.printStackTrace(); |
112 | 112 |
throw new DriverException(e); |
113 | 113 |
} |
114 |
dbAdapter.stop(); |
|
114 | 115 |
|
115 |
|
|
116 | 116 |
} |
117 | 117 |
|
118 | 118 |
|
Also available in: Unified diff