Changeset 4971 for cows


Ignore:
Timestamp:
13/02/09 09:47:01 (11 years ago)
Author:
domlowe
Message:

Default to global bounding box if missing in CSML document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/csmlbackend/wms_csmllayer.py

    r4912 r4971  
    114114        self._feature=feature 
    115115        self.legendSize=(30,100) 
    116         bb= self._feature.getCSMLBoundingBox().getBox() 
     116        try:  
     117            bb = self._feature.getCSMLBoundingBox().getBox() 
     118        except: 
     119            #default to global 
     120            bb=[-180,-90,180,90] 
    117121        #convert 0 - 360 to -180, 180 as per common WMS convention 
    118122        if abs(bb[2]-bb[0]) >= 359 and abs(bb[2]-bb[0]) < 361: 
Note: See TracChangeset for help on using the changeset viewer.