[Schmitzm-commits] r369 - branches/1.0-gt2-2.6/src/schmitzm/geotools/gui
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 3 19:53:48 CEST 2009
Author: alfonx
Date: 2009-09-03 19:53:47 +0200 (Thu, 03 Sep 2009)
New Revision: 369
Modified:
branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/FeatureTablePane.java
Log:
Add the rendering hint to use the not-so-accurate scale calculations. We don't want annoying Bursa-Wolf-Pameter-missing exception coming from the preview JMapPane
Map<Object, Object> hints = this.mapPane.getRenderer().getRendererHints();
if (hints == null)
hints = new HashMap<Object, Object>();
hints.put(StreamingRenderer.SCALE_COMPUTATION_METHOD_KEY, StreamingRenderer.SCALE_OGC);
Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/FeatureTablePane.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/FeatureTablePane.java 2009-09-03 10:09:31 UTC (rev 368)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/gui/FeatureTablePane.java 2009-09-03 17:53:47 UTC (rev 369)
@@ -32,6 +32,8 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
+import java.util.HashMap;
+import java.util.Map;
import javax.swing.BorderFactory;
import javax.swing.JScrollPane;
@@ -47,6 +49,7 @@
import org.apache.log4j.Logger;
import org.geotools.feature.FeatureCollection;
import org.geotools.map.DefaultMapLayer;
+import org.geotools.renderer.lite.StreamingRenderer;
import org.geotools.styling.Style;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
@@ -222,6 +225,17 @@
// MapPane fuer Preview der in der Tabelle selektieren Features
if (geomPreview) {
this.mapPane = new JMapPane();
+
+ /**
+ * Add the rendering hint to use the not-so-accurate scale calculations. We
+ * don't want annoying Bursa-Wolf-Pameter-missing exception coming
+ * from the preview JMapPane
+ */
+ Map<Object, Object> hints = this.mapPane.getRenderer()
+ .getRendererHints();
+ if (hints == null)
+ hints = new HashMap<Object, Object>();
+ hints.put(StreamingRenderer.SCALE_COMPUTATION_METHOD_KEY, StreamingRenderer.SCALE_OGC);
// {
// // Bei Links-Klick auf das gesamte Layer zoomen
More information about the Schmitzm-commits
mailing list