[Schmitzm-commits] r368 - branches/1.0-gt2-2.6/src/schmitzm/geotools/gui

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


Author: alfonx
Date: 2009-09-03 12:09:31 +0200 (Thu, 03 Sep 2009)
New Revision: 368

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java
Log:
* JMapPane now sets SCALE_COMPUTATION_METHOD_KEY to SCALE_OGC to avoid regular exceptions when not BW parameters are provided.

getRenderer().getRendererHints().put(
	StreamingRenderer.SCALE_COMPUTATION_METHOD_KEY,
	StreamingRenderer.SCALE_OGC);


Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java	2009-09-03 10:08:29 UTC (rev 367)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/JMapPane.java	2009-09-03 10:09:31 UTC (rev 368)
@@ -506,10 +506,17 @@
 		// werden
 		RenderingHints hints = ImageUtilities.NN_INTERPOLATION_HINT;
 		
-//		hints.put(ShapefileRenderer.SCALE_COMPUTATION_METHOD_KEY, ShapefileRenderer.SCALE_OGC);
-		
 		getRenderer().setJava2DHints(hints);
 		
+		/**
+		 * This hint avoids "Bursa Wolf Parameters missing" exceptions while
+		 * zooming which slow down the rendering process. 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,



More information about the Schmitzm-commits mailing list