Exemplo n.º 1
0
 def __init__(self, property, font=None, color=None):
   Symbolizer.__init__(self)
   self.property = Property(property)
   self.color = Color(color) if color else None
   self._font = Font(font) if font else None
   self._halo = None
   self._placement = None
Exemplo n.º 2
0
  def __init__(self, url, format=None):
    Symbolizer.__init__(self)
    self.url = toURL(url)

    if not format:
      format = mimetypes.guess_type(url)[0]
    
    self.format = format
Exemplo n.º 3
0
 def __init__(self, color=None, size=6, type='circle', opacity=1.0, rotation=0):
   Symbolizer.__init__(self)
   self.color = Color(color) if color else None
   self.size = Expression(size)
   self.type = type
   self.opacity = Expression(opacity)
   self.rotation = Expression(rotation)
   self._stroke = None
Exemplo n.º 4
0
 def __init__(self, color='#000000', width=1, dash=None, cap=None, join=None):
   Symbolizer.__init__(self)
   self.color = Color(color)
   self.width = Expression(width)
   self.dash = dash
   self.cap = Expression(cap) if cap else None
   self.join = Expression(join) if join else None
   self._hatch = None
Exemplo n.º 5
0
  def __init__(self, name, stroke=None, size=None):
    Symbolizer.__init__(self)
    self.name = name
    if not stroke:
      from geoscript.style.stroke import Stroke
      stroke = Stroke()

    self.stroke = stroke 
    self.size = Expression(size if size else 8)
Exemplo n.º 6
0
 def __init__(self, fill=None, radius=1):
   Symbolizer.__init__(self)
   if fill:
     if not isinstance(fill, Fill):
       fill = Fill(Color(fill))
   else:
     fill = Fill('#ffffff')
   self.fill = fill
   self.radius = Expression(radius)
Exemplo n.º 7
0
    def __init__(self, name, stroke=None, size=None):
        Symbolizer.__init__(self)
        self.name = name
        if not stroke:
            from geoscript.style.stroke import Stroke
            stroke = Stroke()

        self.stroke = stroke
        self.size = Expression(size if size else 8)
Exemplo n.º 8
0
  def __init__(self, url, format=None, size=None):
    Symbolizer.__init__(self)
    self.url = toURL(url)

    if not format:
      format = mimetypes.guess_type(url)[0]

    self.format = format
    self.size = Expression(size) if size else None
Exemplo n.º 9
0
    def __init__(self, url, format=None, size=None):
        Symbolizer.__init__(self)
        self.url = toURL(url)

        if not format:
            format = mimetypes.guess_type(url)[0]

        self.format = format
        self.size = Expression(size) if size else None
Exemplo n.º 10
0
  def __init__(self, font=None, style='normal', weight='normal', size=10, 
               family='serif'):
    Symbolizer.__init__(self)
    
    self.style = style
    self.weight = weight
    self.size = size
    self.family = family

    if font:
      self._parse(font)
Exemplo n.º 11
0
 def __init__(self, property, font=None, color=None, priority=None, 
              options=None):
   Symbolizer.__init__(self)
   self.property = Property(property)
   self.color = Color(color) if color else None
   self.priority = Property(priority) if priority else None
   self.options = options if options else {}
   self._font = Font(font) if font else None
   self._halo = None
   self._icon = None
   self._placement = None
Exemplo n.º 12
0
 def __init__(self,
              property,
              font=None,
              color=None,
              priority=None,
              options=None):
     Symbolizer.__init__(self)
     self.property = Property(property)
     self.color = Color(color) if color else None
     self.priority = Property(priority) if priority else None
     self.options = options if options else {}
     self._font = Font(font) if font else None
     self._halo = None
     self._icon = None
     self._placement = None
Exemplo n.º 13
0
    def __init__(self,
                 font=None,
                 style='normal',
                 weight='normal',
                 size=10,
                 family='serif'):
        Symbolizer.__init__(self)

        self.style = style
        self.weight = weight
        self.size = size
        self.family = family

        if font:
            self._parse(font)
Exemplo n.º 14
0
 def __init__(self,
              color='#000000',
              width=1,
              dash=None,
              cap=None,
              join=None,
              opacity=1.0):
     Symbolizer.__init__(self)
     self.color = Color(color)
     self.width = Expression(width)
     self.opacity = Expression(opacity)
     self.dash = dash
     self.cap = Expression(cap) if cap else None
     self.join = Expression(join) if join else None
     self._hatch = None
     self._icon = None
Exemplo n.º 15
0
 def __init__(self, color=None, size=6, type='circle'):
   Symbolizer.__init__(self)
   self.color = Color(color) if color else None
   self.size = Expression(size)
   self.type = type
Exemplo n.º 16
0
 def __init__(self, values, interpolate='ramp'):
   Symbolizer.__init__(self)
   self.values = values
   self.interpolate = interpolate
Exemplo n.º 17
0
 def __init__(self, value=1.0):
     Symbolizer.__init__(self)
     self.value = Expression(value)
Exemplo n.º 18
0
 def __init__(self, values, interpolate='ramp'):
     Symbolizer.__init__(self)
     self.values = values
     self.interpolate = interpolate
Exemplo n.º 19
0
 def __init__(self, color=None, opacity=1.0):
   Symbolizer.__init__(self)
   self.color = Color(color) if color else None
   self.opacity = Expression(opacity)
   self._icon = None
   self._hatch = None
Exemplo n.º 20
0
 def __init__(self, value=1.0):
   Symbolizer.__init__(self)
   self.value = Expression(value)
Exemplo n.º 21
0
 def __init__(self, color=None, opacity=1.0):
     Symbolizer.__init__(self)
     self.color = Color(color) if color else None
     self.opacity = Expression(opacity)
     self._icon = None
     self._hatch = None
Exemplo n.º 22
0
 def __init__(self, fn):
   Symbolizer.__init__(self)
   self.function = Function(fn)
Exemplo n.º 23
0
 def __init__(self, *parts):
     Symbolizer.__init__(self)
     self.parts = parts
Exemplo n.º 24
0
 def __init__(self, fn):
     Symbolizer.__init__(self)
     self.function = Function(fn)
Exemplo n.º 25
0
 def __init__(self, *parts):
   Symbolizer.__init__(self)
   self.parts = parts