Ticket #751 (closed defect: fixed)
[OGR] STYLEITEM "AUTO" does not set symbol size.
| Reported by: | jlacroix | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | OGR Support | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In mapserver 4.3, the StyleItem "Auto" option in mapogr.cpp only set the color,
backgroundcolor and symbol for brush. The size is not setted. It cause problem
when trying to fill a polygon with a symbol. Since no symbol size is specified,
size 1 is use. Then the icon used to fill the polygon is not appear.
For example we want to use this symbol:
Symbol
Name 'mapinfo-brush-70'
TYPE vector
FILLED true
POINTS
9 9
9 10
10 10
10 9
END
in this layer:
LAYER
TYPE POLYGON
STATUS DEFAULT
NAME "ICE 1"
CONNECTIONTYPE OGR
CONNECTION "ttt.mif"
STYLEITEM "AUTO"
CLASS
END
END
but to have the result we want, we need to set the SIZE to 5 in the STYLE.
Since the STYLEITEM "AUTO" option override the class, we can't set the SIZE so
we use the styleitem auto option. One solution we can use, would be to force a
symbol to a certain size if not setted in the mapfile. Something like this would
solve the issue:
Symbol
Name 'mapinfo-brush-70'
TYPE vector
FILLED true
SIZE 5
POINTS
9 9
9 10
10 10
10 9
END
I can attach a test case if needed.
Change History
Note: See
TracTickets for help on using
tickets.
