Revision 41437 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/ExporrtoJDBCService.java
ExporrtoJDBCService.java | ||
---|---|---|
118 | 118 |
|
119 | 119 |
EditableFeatureType ef_type = null; |
120 | 120 |
FeatureType f_type = null; |
121 |
|
|
121 |
EditableFeature edit_feat = null; |
|
122 | 122 |
try { |
123 | 123 |
f_type = featureStore.getDefaultFeatureType(); |
124 | 124 |
f_type = f_type.getCopy(); |
... | ... | |
173 | 173 |
taskStatus.setRangeOfValues(0, featureSet.getSize()); |
174 | 174 |
int featureCount = 1; |
175 | 175 |
it1 = featureSet.fastIterator(); |
176 |
EditableFeature edit_feat = null; |
|
176 |
|
|
177 | 177 |
Geometry reproj_geom = null; |
178 | 178 |
|
179 | 179 |
while (it1.hasNext()) { |
... | ... | |
189 | 189 |
} |
190 | 190 |
// ================================================ |
191 | 191 |
target.insert(edit_feat); |
192 |
|
|
193 | 192 |
this.taskStatus.setCurValue(featureCount); |
194 | 193 |
|
195 | 194 |
if (this.taskStatus.isCancellationRequested()) { |
... | ... | |
197 | 196 |
} |
198 | 197 |
featureCount++; |
199 | 198 |
} |
199 |
edit_feat = null; |
|
200 | 200 |
target.finishEditing(); |
201 | 201 |
|
202 | 202 |
/* |
... | ... | |
219 | 219 |
|
220 | 220 |
} catch (Exception e) { |
221 | 221 |
taskStatus.message(e.getMessage()); |
222 |
throw new ExporttoServiceException(e); |
|
222 |
throw new ExporttoServiceException(e,edit_feat);
|
|
223 | 223 |
} finally { |
224 | 224 |
if (it1 != null) { |
225 | 225 |
it1.dispose(); |
Also available in: Unified diff