[OpenMap Users] BufferedImageRenderPolicy problem

From: Tore Halset <halset_at_pvv.ntnu.no>
Date: Mon, 13 Sep 2010 10:57:45 +0200

Hello.

Starting with svn r2202 (r2201 is fine), our swing application does not show the shape background layer when zoomed far out. This happens only on windows.

Attached is a workaround that disable the special handling of Cylindrical in BufferedImageRenderPolicy.createAndPaintImageBuffer.

Regards,
 - Tore.


Index: src/openmap/com/bbn/openmap/layer/policy/BufferedImageRenderPolicy.java
===================================================================
--- src/openmap/com/bbn/openmap/layer/policy/BufferedImageRenderPolicy.java (revision 2203)
+++ src/openmap/com/bbn/openmap/layer/policy/BufferedImageRenderPolicy.java (working copy)
_at_@ -158,6 +158,9 @@
          int w = proj.getWidth();
          int h = proj.getHeight();
 
+ /*
+ * removed special handling for Cylindrical as it causes problem on windows
+ * when zoomed far out.
          if (proj instanceof Cylindrical) {
 
             Point2D llp1 = proj.getUpperLeft();
_at_@ -196,7 +199,7 @@
 
             omr = new OMScalingRaster(llp1.getY(), llp1.getX(), llp2.getY(), llp2.getX(), bufferedImage);
 
- } else {
+ } else */{
             // For anything other than a cylindrical image, we just want to
             // paint what we would have drawn in an image that covers the map.
             BufferedImage bufferedImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Sep 13 2010 - 08:11:44 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT