Opened 14 years ago
Closed 14 years ago
#3648 closed defect (fixed)
Label now following lines with ANGLE FOLLOW
Reported by: | adube | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | 5.6 |
Severity: | normal | Keywords: | label, follow |
Cc: |
Description
Issue
With a particular set of data, I'm unable to make the labels follow the line features. My configuration used to work in the past and there seems to be plenty of space left for the labels to follow the lines.
Sample showing the issue
I will attach a sample of the data with a mapfile that shows the issue.
More infos
- MS Version : 5.6.3
- The line features are Multilinestring.
- To test the sample, you can download it and read the readme.txt file for more instructions
Attachments (3)
Change History (6)
by , 14 years ago
Attachment: | labels-not-following.png added |
---|
by , 14 years ago
Attachment: | 3648.tar.gz added |
---|
The sample data with a mapfile that reproduces the issue
follow-up: 3 comment:1 by , 14 years ago
Since the shapes are multilinestring... MapServer cannot assume the lines are continuous. Most of the lines are too small in length to draw the text, so the angle follow fails and the labels are only drawn at specific points.
However, it seems that there is a bad behavior using MapServer trunk. See the attached image. I'll investigate in that issue.
by , 14 years ago
Attachment: | mapserver-trunk-label-fail.png added |
---|
Here's the label fail with mapserver trunk
comment:2 by , 14 years ago
For the record, the features the sample data contains are the result of a COLLECT(the_geom) in PostGIS. Using ST_LineMerge(ST_Collect(the_geom)) instead merged the features collected, thus solved my original issue.
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to aboudreault:
Since the shapes are multilinestring... MapServer cannot assume the lines are continuous. Most of the lines are too small in length to draw the text, so the angle follow fails and the labels are only drawn at specific points.
However, it seems that there is a bad behavior using MapServer trunk. See the attached image. I'll investigate in that issue.
Fixed and committed in r10837.
A screenshot of the labels not quite following the line features