Esempio n. 1
0
 def _apply(self, sym):
   Symbolizer._apply(self, sym)
   eg = self.factory.createExternalGraphic(self.url, self.format)
   g = util.graphic(sym)
   g.setMarks([])
   if g:
     g.graphicalSymbols().add(eg)
Esempio n. 2
0
 def _apply(self, sym):
   Symbolizer._apply(self, sym)
   g = util.graphic(sym)
   g.setSize(self.size.expr)
   if self.rotation != None and self.rotation.expr != None:
       g.setRotation(self.rotation.expr)
   g.graphicalSymbols().clear()
   g.graphicalSymbols().add(self._mark())
Esempio n. 3
0
 def _apply(self, sym):
     Symbolizer._apply(self, sym)
     eg = self.factory.createExternalGraphic(self.url, self.format)
     g = util.graphic(sym)
     if self.size:
         g.size = self.size.expr
     g.setMarks([])
     if g:
         g.graphicalSymbols().add(eg)
Esempio n. 4
0
 def _apply(self, sym):
   Symbolizer._apply(self, sym)
   g = util.graphic(sym)
   g.setSize(self.size.expr)
   g.graphicalSymbols().clear()
   g.graphicalSymbols().add(self._mark())