Specify solid pen style in -W option
|Target version:||Candidate for next bugfix release|
Currently pen styles are only for dashed lines. If pen style is omitted it does not default
to solid line, but to the previous style (which can be dashed) defined by MAP_DEFAULT_PEN.
The suggestion is to allow explicit style specification like:
if style is omitted, always use solid, regardless of previous defined variables.
Just a suggestion.
#1 Updated by Paul about 3 years ago
- Status changed from New to Resolved
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
- % Done changed from 0 to 100
I fixed this so "solid" is a valid style that overrides any default style the pen has been initialized with. While at it I added "dashed" and "dotted" as valid longforms for single "-" and ".". Also updated the usage message that had GMT4 short-hands "a" and "o" listed as valid styles. Finally, under compatibility mode we now accept those old "a" and "o" but give the usual deprecated message. In r13301.
#2 Updated by Mikhail about 3 years ago
- File dotted.png added
It works as expected. If no option is given then it takes MAP_DEFAULT_PEN.
If solid, it makes it solid.
I am a bit puzzled with "dotted" Please see attached sample. I would
expect dotted to be like ......... and not combination of dots and dashes.
"Dashed" looks similar to the sample but has long and short dashes.
Thank you very much!