Ticket #578 (closed enhancement: duplicate)

Opened 9 years ago

Last modified 9 years ago

[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

Changed 9 years ago by romain@…

  • status changed from new to closed
  • resolution set to duplicate

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

Changed 9 years ago by sdlime

  • cc morissette@… added

Changed 9 years ago by sdlime

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