[OpenMap Users] VPF Rendering Bug

From: Guy Pascarella <guy.pascarella_at_issinc.com>
Date: Fri, 17 Mar 2006 09:52:32 -0500

Hey All,
I was playing around with World Vector Shoreline Plus data at the world view
level. It seems that in certain cases when the dateline is on the screen a
rendering error will occur that only draws the data to one side of the

I had seens similar errors in other plugin/layer code where the dateline
wasn't being checked for. So I replaced the LibrarySelectionTable's
dateline test with the one from the ShapeLayer

Offending code (com.bbn.openmap.layer.vpf.LibrarySelectionTable) :
        //if ((scale < BROWSE_CUTOFF)
        // && (ll1.getLongitude() > ll2.getLongitude())) {

Fixed code:
            if ((leftLon > rightLon)
                            || MoreMath.approximately_equal(leftLon, rightLon,

This was occurring in v4.6.1. Just trying to give back.


Guy Pascarella
Intelligent Software Solutions
Guy.Pascarella_at_issinc.com <mailto:Guy.Pascarella_at_issinc.com>

[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 Fri Mar 17 2006 - 09:53:23 EST

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