Opened 19 years ago
Closed 19 years ago
#1114 closed defect (fixed)
shape.text has no effect on labels
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | 4.4 release |
Component: | MapServer C Library | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
Although our shapeObjs have a 'text' member and we can set this member through mapscript, msShapeGetAnnotation() does not check this value for use as a feature label.
Change History (4)
comment:2 by , 19 years ago
I didn't add the msShapeGetAnnotation function so I'm not sure what's going on. This is probably not a result of any updates, just something that was missed. Go ahead if you like. I'm curious though and would like to see what you have to fix. Steve
comment:3 by , 19 years ago
Hmmm... The text property was always meant to be set and used with the shape draw method. Only the layer drawing methods call that annotation function. How is this being used in MapScript? Steve
comment:4 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Only change I made to msShapeGetAnnotation is to protect against trying get a value when shape->values is NULL. One less possible segfault. Implemented a setValue() method for mapscript and 4 default values for newly created shapeObjs through mapscript. This allows us to pop values into a shape that can be used for labeling.
Note:
See TracTickets
for help on using tickets.