Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/WMSDBArtifact.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e4606eae8ea5 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
237 | 237 |
238 @Override | 238 @Override |
239 public void endOfLife(Artifact owner, Object context) { | 239 public void endOfLife(Artifact owner, Object context) { |
240 log.info("Destroy WMSDBState: " + getID()); | 240 log.info("Destroy WMSDBState: " + getID()); |
241 | 241 |
242 String p = RiverUtils.getXPathString(RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); | 242 String p = RiverUtils.getXPathString( |
243 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); | |
243 File dir = new File(p, owner.identifier()); | 244 File dir = new File(p, owner.identifier()); |
244 | 245 |
245 if (dir != null && dir.exists()) { | 246 if (dir != null && dir.exists()) { |
246 log.debug("Try to delete directory '" + dir + "'"); | 247 log.debug("Try to delete directory '" + dir + "'"); |
247 | 248 |
248 FileTools.deleteRecursive(dir); | 249 FileTools.deleteRecursive(dir); |
249 } | 250 } |
250 } | 251 } |
251 | 252 |
252 /** | 253 /** |
253 * This method returns the extent of a DB layer in the projection of the | 254 * This method returns the extent of a DB layer |
254 * database. | 255 * in the projection of the database. |
255 * | 256 * |
256 * @return the extent of the DB layer in the projection of the database. | 257 * @return the extent of the DB layer |
258 * in the projection of the database. | |
257 */ | 259 */ |
258 protected Envelope getExtent() { | 260 protected Envelope getExtent() { |
259 return getExtent(false); | 261 return getExtent(false); |
260 } | 262 } |
261 | 263 |
265 protected abstract String getUrl(); | 267 protected abstract String getUrl(); |
266 | 268 |
267 protected abstract String getSrid(); | 269 protected abstract String getSrid(); |
268 | 270 |
269 /** | 271 /** |
270 * This method returns the extent of the DB layer. The projection of the | 272 * Returns the extent of the DB layer. The projection of the |
271 * extent depends on the <i>reproject</i> parameter. If reproject is set, | 273 * extent depends on the <i>reproject</i> parameter. |
274 * If reproject is set, | |
272 * the extent is reprojected into the original projection which is | 275 * the extent is reprojected into the original projection which is |
273 * specified in the configuration. Otherwise, the projection of the | 276 * specified in the configuration. Otherwise, the projection of the |
274 * database is used. | 277 * database is used. |
275 * | 278 * |
276 * @param reproject True, to reproject the extent into the projection | 279 * @param reproject True, to reproject the extent into the projection |