Changeset 839

Show
Ignore:
Timestamp:
08/14/07 12:28:49
Author:
dokai
Message:

Added an 'ows_style' attribute for explicitly defining a WMS style.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PCL/trunk/PCL-Core/cartography/data/ows.py

    r544 r839  
    9595            return None 
    9696             
    97     def source(self, typename,  ows_srs=None, ows_format=None): 
    98         return WMSRasterSource(self, typename, ows_srs, ows_format
     97    def source(self, typename,  ows_srs=None, ows_format=None, ows_style=None): 
     98        return WMSRasterSource(self, typename, ows_srs, ows_format, ows_style
    9999      
    100100    def info(self, typename): 
     
    109109    #implements(IOWSMapRequest) 
    110110 
    111     def __init__(self, store, typename, ows_srs=None, ows_format=None): 
     111    def __init__(self, store, typename, ows_srs=None, ows_format=None, ows_style=None): 
    112112        """Initialize""" 
    113113        self.store = store 
     
    115115        self.ows_srs = ows_srs 
    116116        self.ows_format = ows_format 
     117        self.ows_style = ows_style 
    117118 
    118119 
  • PCL/trunk/PCL-Core/cartography/styles/interfaces.py

    r544 r839  
    4848    ows_srs = Attribute("Request SRS, like 'EPSG:4326' (string)") 
    4949 
     50    ows_style = Attribute("Request style") 
     51 
    5052 
    5153class ILayer(Interface):