Opened 17 years ago

Last modified 13 years ago

#2319 new defect

Support for named styles in mapfile — at Initial Version

Reported by: dmorissette Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc: crschmidt, sderle, jmckenna

Description

crschmidt submitted a patch to ticket #1280 to support named styles in a mapfile, but since #1280 is about named stiles in OGC SLD (a different beast), we are moving this patch to its own ticket here.

crschmidt wrote:

Old, old patch (5-2006) from Schuyler implementing named styles, which we just found when cleaning something up. Attaching patch here so it doesn't get lost. i think schuyler plans on doing some cleanup here, but at least it's here for the future regardless.

sderle wrote:

The patch works slightly better if you run patch with -F3. The idea was to allow STYLE blocks at the top level of the map file, with NAME directives to assign names to them. Then, in the LAYER blocks, one would simply be able to say "STYLE stylename" instead of having a STYLE block. Additionally, I added the INHERITS directive, which imports the style definitions from a named style into the current STYLE block, making it possible to "subclass" named styles. Please let me know if this ticket needs any attention at all on my part to move forward. Thanks!

Change History (1)

by dmorissette, 17 years ago

patch from schuyler

Note: See TracTickets for help on using tickets.