Ticket #308 (new defect)

Opened 5 years ago

Last modified 5 years ago

Bitmap symbols won't display without a COLOR setting

Reported by: ed@topozone.com Assigned to: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.0
Severity: major Keywords:
Cc:

Description

In 3.7, bitmap symbols seem to disappear unless the CLASS object has either a 
COLOR or an OUTLINECOLOR specified.  These colors are not used and they have 
no effect, but if they're not there the symbol just doesn't get drawn.  
There's no error message.

I'm calling this a software bug because (a) 3.6 does not behave this way and 
(b) the COLOR/OUTLINECOLOR statements have no effect.  You could call it a 
documentation bug, but that's cheating <g>.

Here's a layer that works in 3.6 and shows nothing in 3.7:

Layer
  Name Anno1
  Type Point
  Status Default
  Feature
    Points 269586.800000 4844435.200000 End
  End
  Class
    Symbol 'TRE'
  End
End

If the CLASS object is changed to:

  Class
    Symbol 'TRE'
    COLOR 0 0 0
  End

Then the symbol is displayed.  No error is generated in either case.

     - Ed

Change History

04/26/03 12:01:39 changed by sdlime

I'm very tempted to leave as is and document it. Color/outlinecolor are used for
discriminating between polygon fills and outlines. So in that case if you want
to use a bitmap outline symbol you would have to set an outlinecolor. That's an
unusual case granted.

The GD drawing routines need updating so they actually return
MS_SUCCESS/MS_FAILURE. At the moment they are void...

What do you think?

Steve

04/26/03 12:08:55 changed by sdlime

Ok, I did change the code for line and point drawing to ignore color with pixmap
symbols. I've not changed the polygon code yet...

Steve