Ignore:
Timestamp:
14/09/07 12:52:37 (12 years ago)
Author:
spascoe
Message:

Some visualise glitches fixed: large longitude squashing problem and coasts
not drawing on intitialisation.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/render.py

    r2629 r2886  
    156156    # If a non-CRS:84 bbox is requested we must retrieve the valid 
    157157    # sub-bbox and paste it into an image of the correct size. 
    158     if bbox != bbox_obj.crs84: 
     158    if tuple(bbox) != bbox_obj.crs84: 
    159159        logger.info('Padding image outside CRS:84 BBOX') 
    160160        logger.info('Bbox: %s' % (bbox,)) 
     161        logger.info('CRS84-BBox: %s' % (bbox_obj.crs84,)) 
    161162        logger.info('Aspect ratio: %s, %s' % (width, height)) 
    162163        img = Image.new('RGBA', (width, height)) 
     
    168169        # If the image is too small just send a blank image 
    169170        if bbox_obj.crs84Width > abs(dlon) and bbox_obj.crs84Height > abs(dlat): 
    170             img1 = render(var, nwidth, nheight) 
    171             img.paste(img1, (ox, oy)) 
     171            img1 = render(var, width, nheight) 
     172            img.paste(img1, (0, oy)) 
    172173    else: 
    173174        img = render(var, width, height) 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/js/VisMapBox.js

    r2883 r2886  
    9090        this.visLayer.setZIndex(300); 
    9191        this.map.addLayer(this.visLayer); 
     92        // Sometimes the coast layer doesn't get drawn at initialisation.  This forces a redraw. 
     93        if (this.coastLayer) { 
     94            this.coastLayer.moveTo(null, true); 
     95        } 
    9296        // this.loadLegend(); 
    9397    }, 
Note: See TracChangeset for help on using the changeset viewer.