[OpenMap Users] BufferedImageRenderPolicy problem

From: Tore Halset <halset_at_email.domain.hidden>
Date: Mon Sep 13 2010 - 04:57:45 EDT

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)
@@ -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();
@@ -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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Sep 13 08:18:48 2010

This archive was generated by hypermail 2.1.8 : Mon Sep 13 2010 - 08:18:49 EDT