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 |
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 |
|
|