Opened 19 years ago

Last modified 13 years ago

#1452 closed defect

[Symbol] SIZE does not affect symbol STYLE — at Initial Version

Reported by: jlacroix Owned by: mapserverbugs
Priority: high Milestone: 6.0 release
Component: MapServer C Library Version: 4.8
Severity: normal Keywords:
Cc: sdlime, dmorissette, assefa, tbonfort

Description

We can specify a STYLE in a symbol definition. This is used to draw praw pattern
in lines (dashed lines). However, the STYLE does not scale depending on the size
of the symbol. This cause the symbol's style to be un-useable when changing the
symbol size.

Image this symbol definition:
SYMBOL
  NAME "test"
  TYPE Ellipse
  STYLE 1 5 END
  FILLED TRUE
  POINTS
  1 1
  END
END

With a size of 5 in the STYLE object this would render very nicely. But with a
size of 10 or more the circle will overlap on each other. I'll attach an example.

Steve, I don't think this is hard to change. Instead of putting the one pixel of
space between each symbol draw, we can put [SIZE] number of pixels.

We can either change the default behavior (I don't think this funcitonality is
used to much) or use negative numbers. Or we can add a param in the symbols, but
usually I think you try to prevent to add new parameters in the MapFile/Symbols
definition :) .

What do you think?
If you give me your opinion I can take care of this.

Julien

PS: Should I do a RFC for this?

Change History (1)

by jlacroix, 19 years ago

Attachment: symbol_style.png added

symbol_style.png - Patterned lines, 2 different size

Note: See TracTickets for help on using tickets.