Ticket #3475 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Drawing inline text not working (in some instances in 5.6)...

Reported by: sdlime Owned by: sdlime
Priority: normal Milestone: 5.6.5 release
Component: MapServer C Library Version: 5.6
Severity: normal Keywords:
Cc: aboudreault, dmorissette, jmckenna

Description

Will attach a mapfile that defines a single inline point and a text label. The label doesn't render in 5.6 but does in 5.4. Not sure why. There's something funky going on... I was encountering a segfault with 5.6 and inline features but it's not easy to reproduce. I'm wondering if it's related to this...

The call I'm using (via the CGI) is:

mapserv -nh "QUERY_STRING=map=/usr/local/mapserver/apps/mr/compass/test.map&mode=map&mapxy=450000+5250000&scale=50000&layer=test" > test.png

It should produce an image with 1 red dot and one label.

Steve

Attachments

test.map Download (496 bytes) - added by sdlime 3 years ago.

Change History

Changed 3 years ago by sdlime

Changed 3 years ago by sdlime

  • cc aboudreault added

Changed 3 years ago by sdlime

If you add "LABELCACHE FALSE" to the layer definition the labels show up, meaning the problem is in msAddLabel() or the label cache drawing code...

Steve

Changed 3 years ago by sdlime

Ok, I've isolated to some label scaling code in msDrawLabelCache() around line 2460 (I've got shitloads of fprintf's inline). Anyway this looks to be related to the resolution factor changes. I think the issue is trying to scale bitmap fonts, which have fixed sizes and can't be scaled. This results in some wacked out values for offsets which then cause other things to blow up.

This is definitely an area of change between 5.4 and 5.6.

Alan, can you have a look?

Steve

Changed 3 years ago by aboudreault

Yes, I'll take a look at this.

Changed 3 years ago by aboudreault

  • status changed from new to closed
  • resolution set to fixed

Since the bitmap text cannot be scaled, we'll only scale the text of type truetype.

Fixed and committed in r10238.

Changed 3 years ago by dmorissette

  • cc dmorissette added
  • milestone set to 5.6.5 release

Backported the fix to branch-5-6 in r10351 (will be in 5.6.5)

Changed 3 years ago by jmckenna

  • cc jmckenna added
Note: See TracTickets for help on using tickets.