Ticket #3752 (closed defect: fixed)
Scalable symbols - GAP and PATTERN
|Reported by:||havatv||Owned by:||tbonfort|
|Severity:||major||Keywords:||style, symbol, line, gap, pattern, size, width, units|
In order to enable scalable decorated lines, LAYER-> CLASS-> STYLE-> PATTERN and LAYER-> CLASS-> STYLE-> GAP must both be scalable (and their units compatible). PATTERN seems to scale in 6.0.0beta1, while GAP does not seem scale (gaps seem to be constant over scales).
For scalable symbols, it is important that the units of LAYER-> CLASS-> STYLE-> PATTERN and LAYER-> CLASS-> STYLE-> GAP are compatible with WIDTH/SIZE.
This means that when I specify "WIDTH 5", and "PATTERN 5 5" (and LINECAP BUTT), I expect to see a line that is 5 units wide, in dashes of 5 units with a spacing of 5 units. Currently, there seems to be a scale difference between the PATTERN units and the WIDTH units, but the scale seems to depend on the value of WIDTH...? GAP has to use the same units as SIZE, WIDTH and PATTERN in order to allow scalable decorated patterned lines, for example:
---#--- ---#--- ---#--- ---#---
The numbers for SIZE, WIDTH, PATTERN and GAP must refer
to the same units.
When the map scale is SYMBOLSCALEDENOM, SIZE should specify the final height of a symbol on the map (before rotation). WIDTH should specify the final width of a line on the map. GAP should specify the final gap between symbols on the map. PATTERN should specify the final dash lengths and spacing between dashes on the map. The numbers could refer to pixels for images, or some length unit for vector graphics (possibly with a scaling factor).