/[thuban]/trunk/thuban/Extensions/umn_mapserver/mapfile.py
ViewVC logotype

Diff of /trunk/thuban/Extensions/umn_mapserver/mapfile.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2858 by elachuni, Tue Jul 29 06:17:34 2008 UTC revision 2859 by elachuni, Tue Jul 29 07:14:45 2008 UTC
# Line 327  class MF_Symbol: Line 327  class MF_Symbol:
327      style, imagepath, transparent, transparentcolor, character, antialias,      style, imagepath, transparent, transparentcolor, character, antialias,
328      font, gap, position, linecap, linejoin, linejoinmaxsize, setPoints(),      font, gap, position, linecap, linejoin, linejoinmaxsize, setPoints(),
329      getPoints(), setStyle()      getPoints(), setStyle()
330      """          """
331      def __init__(self, mf_symbol = "newone"):      def __init__(self, mf_symbol = "newone"):
332          # create a circle Object like shown in Thuban          # create a circle Object like shown in Thuban
333          # because Thuban don't support other symbols          # because Thuban don't support other symbols
# Line 335  class MF_Symbol: Line 335  class MF_Symbol:
335          # TODO: include the options to create a symbol, but          # TODO: include the options to create a symbol, but
336          #      first implement a methode to edit Symbols in Thuban          #      first implement a methode to edit Symbols in Thuban
337          if mf_symbol == "newone":          if mf_symbol == "newone":
338              mf_symbol = symbolObj("")                          mf_symbol = symbolObj("")
339              newpoint = pointObj()              newpoint = pointObj()
340              newpoint.x = 1              newpoint.x = 1
341              newpoint.y = 1              newpoint.y = 1
342              newline = lineObj()              newline = lineObj()
343              newline.add(newpoint)              newline.add(newpoint)
344              mf_symbol.setPoints(newline)              mf_symbol.setPoints(newline)
345                mf_symbol.type = mapscript.MS_SYMBOL_ELLIPSE
346                    
347          self._symbol = mf_symbol          self._symbol = mf_symbol
348            

Legend:
Removed from v.2858  
changed lines
  Added in v.2859

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26