Opened 20 years ago

Closed 20 years ago

#499 closed defect (duplicate)

Can't have a layer with LABEL but no STYLE component.

Reported by: jlacroix Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.0
Severity: normal Keywords:
Cc:

Description

 

Change History (5)

comment:1 by jlacroix, 20 years ago

Owner: changed from sdlime to morissette@…
This problem occurs on both mapscript and CGI (mapserver 4.0).

I have a test mapfile with only one layer in it. This layer contains a CLASS,
with a LABEL, but no STYLE components. When I try to draw the map, the cgi
returns a blank page and mapscript return false when calling draw(). In both
cases, no error message are processed. 

A turn around is to put an empty STYLE object or the parameter "COLOR -1 -1 -1"
in the CLASS.

comment:2 by sdlime, 20 years ago

Status: newassigned
Hmmm... Easy enough to reproduce. I thought there were 2 default styles (they 
map to the base and overlay symbols in older versions), but perhaps they're 
only created as needed.

comment:3 by dmorissette, 20 years ago

Cc: mapserver-bugs@… added
Owner: changed from morissette@… to sdlime
Status: assignednew
Reassigned to Steve

comment:4 by dmorissette, 20 years ago

Status: newassigned

comment:5 by sdlime, 20 years ago

Resolution: duplicate
Status: assignedclosed

*** This bug has been marked as a duplicate of 495 ***
Note: See TracTickets for help on using tickets.