Opened 13 years ago
Closed 13 years ago
#3870 closed defect (fixed)
Union layer with labels: segmentation fault when styling source layers using attributes
Reported by: | jgolinowski | Owned by: | tamas |
---|---|---|---|
Priority: | normal | Milestone: | 6.0.1 release |
Component: | MapServer C Library | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: | jmckenna |
Description
Using attributes to style the source layers (COLOR, WIDTH, ANGLE ...) of a union layer causes a segmentation fault in maputils.c (method bindStyle). shape->values isn't filled correctly in this case.
For reproduction I took the union-example.zip attached to Ticket #3859 and just made some changes in the mapfile ([REG_CODE] for WIDTH).
A workaround is to add an EXPRESSION to the union layer containing all attributes that are used in the source layers.
Attachments (2)
Change History (8)
by , 13 years ago
Attachment: | unionlabel-example.zip added |
---|
comment:1 by , 13 years ago
Owner: | changed from | to
---|
comment:2 by , 13 years ago
Milestone: | → 6.0.1 release |
---|
comment:3 by , 13 years ago
Cc: | added |
---|
comment:4 by , 13 years ago
comment:5 by , 13 years ago
I just tested on Unix - no segfaults anymore. Labeling works fine using LABELITEM resp. TEXT in the source layers.
Example for reproduction