[Schmitzm-commits] r1353 - trunk/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Dec 18 00:08:39 CET 2010


Author: alfonx
Date: 2010-12-18 00:08:37 +0100 (Sat, 18 Dec 2010)
New Revision: 1353

Modified:
   trunk/src/skrueger/geotools/RenderingExecutor.java
Log:
* AS: Added a static cache for Statistics about ColoredQuantities
* AS: Improved handling of Shapefiles that have no or a broken spaital .fix or .qix index - and how to deal with them on  read-only filesystems.

Modified: trunk/src/skrueger/geotools/RenderingExecutor.java
===================================================================
--- trunk/src/skrueger/geotools/RenderingExecutor.java	2010-12-17 21:11:40 UTC (rev 1352)
+++ trunk/src/skrueger/geotools/RenderingExecutor.java	2010-12-17 23:08:37 UTC (rev 1353)
@@ -122,14 +122,15 @@
 				graphics.clearRect(paintArea.x, paintArea.y, paintArea.width,
 						paintArea.height);
 
-				// TODO It should be enough to set only the Local Value, but it isn't 
+				// TODO It should be enough to set only the Local Value, but it
+				// isn't
 				EnvFunction.setGlobalValue(XMapPane.ENV_LANG,
 						mapPane.getRenderLanguage());
 				EnvFunction.setLocalValue(XMapPane.ENV_LANG,
 						mapPane.getRenderLanguage());
 
-//				LOGGER.debug("Renderer language set to "
-//						+ mapPane.getRenderLanguage());
+				// LOGGER.debug("Renderer language set to "
+				// + mapPane.getRenderLanguage());
 
 				renderer.paint(graphics, paintArea, mapEnv);
 
@@ -139,7 +140,8 @@
 				mapPane.onRenderingCompleted(System.currentTimeMillis()
 						- startT);
 			} catch (Exception e) {
-				mapPane.onRenderingFailed(e);
+				if (e != null && !e.toString().equals("0"))
+					mapPane.onRenderingFailed(e);
 			} finally {
 				renderer.removeRenderListener(this);
 			}



More information about the Schmitzm-commits mailing list