#578 closed enhancement (duplicate)
[FR] Dynamic Symbol creation/add/remove
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript | Version: | 4.0 |
Severity: | minor | Keywords: | |
Cc: | sgillies@… |
Description
Mapscript should support complete handling of symbols set. The main idea is to repeat the same concept as the mapObj. If we instanciate a symbolSetObj with an empty string, we have an empty symbolSet. symbolSetObj = mapscript.symbolSetObj('') # here we could this symbolObj = mapscript.symbolObj() # we define the symbolObj objet. ... # and then add it to the symbolSet index = symbolSetObj.add(symbol) if we want to remove it: symbolSetObj.remove(index) or symbolSetObj.removeByName('name') After all: symbolSetObj.save(path) The main thinking is how to handle the fact that we can define symbol in the MapFile or in a symbolSet file. We could use: symbolSet.symbolFile This attribute would be filled automaticaly when we do a save(), or manualy. If it is set, mapObj.save() would save data and call mapObj.symbolSet.save()
Note:
See TracTickets
for help on using tickets.