Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#578 closed enhancement (duplicate)

[FR] Dynamic Symbol creation/add/remove

Reported by: romain@… 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()

Change History (3)

comment:1 by romain@…, 20 years ago

Resolution: duplicate
Status: newclosed

*** This bug has been marked as a duplicate of 579 ***

comment:2 by sdlime, 20 years ago

Cc: morissette@… added

comment:3 by sdlime, 20 years ago

Cc: sgillies@… added
Note: See TracTickets for help on using tickets.