Opened 13 years ago

Closed 13 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)

labels-not-following.png (38.8 KB ) - added by adube 13 years ago.
A screenshot of the labels not quite following the line features
3648.tar.gz (145.7 KB ) - added by adube 13 years ago.
The sample data with a mapfile that reproduces the issue
mapserver-trunk-label-fail.png (38.1 KB ) - added by aboudreault 13 years ago.
Here's the label fail with mapserver trunk

Download all attachments as: .zip

Change History (6)

by adube, 13 years ago

Attachment: labels-not-following.png added

A screenshot of the labels not quite following the line features

by adube, 13 years ago

Attachment: 3648.tar.gz added

The sample data with a mapfile that reproduces the issue

comment:1 by aboudreault, 13 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 aboudreault, 13 years ago

Here's the label fail with mapserver trunk

comment:2 by adube, 13 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.

in reply to:  1 comment:3 by aboudreault, 13 years ago

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.