[Schmitzm-commits] r367 - trunk/src/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 3 12:08:29 CEST 2009


Author: alfonx
Date: 2009-09-03 12:08:29 +0200 (Thu, 03 Sep 2009)
New Revision: 367

Modified:
   trunk/src/schmitzm/geotools/gui/JMapPane.java
Log:
* JMapPane now sets SCALE_COMPUTATION_METHOD_KEY to SCALE_OGC for faster rendering

Modified: trunk/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-09-03 09:55:31 UTC (rev 366)
+++ trunk/src/schmitzm/geotools/gui/JMapPane.java	2009-09-03 10:08:29 UTC (rev 367)
@@ -411,6 +411,16 @@
 		RenderingHints hints = ImageUtilities.NN_INTERPOLATION_HINT;
 		getRenderer().setJava2DHints(hints);
 
+		/**
+		 * In GT2.6 this hint is important to avaoid regular "Bursa Wolf Parameters missing" 
+		 * exceptions during every zoom. The exceptions appeared for example in maps that consisted 
+		 * only of layers of DHDN2 CRS.
+		 */
+		getRenderer().getRendererHints().put(
+				StreamingRenderer.SCALE_COMPUTATION_METHOD_KEY,
+				StreamingRenderer.SCALE_OGC);
+
+
 		// hints.add( new RenderingHints(RenderingHints.KEY_ANTIALIASING,
 		// RenderingHints.VALUE_ANTIALIAS_OFF ) );
 		// hints.add( new RenderingHints(RenderingHints.KEY_INTERPOLATION,



More information about the Schmitzm-commits mailing list