Bug 229

Summary: [SECTStudio-Classifier] Default Font Preview when applying to map
Product: MapLab Reporter: Chris Thorne <cthorne@dmsolutions.ca>
Component: SECT (Studio)Assignee: Paul Spencer <pspencer@dmsolutions.ca>
Status: ASSIGNED    
Severity: major CC: maplab-dev@lists.maptools.org
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description From 2004-02-19 14:44:44
Ok, If the user sets the Label item in the classifer for a Layer. Then does NOT
set a font in the preview you see "X". Then when the user applied the class to
map. An SLD default Font Style is applied to the map. The problem is that the
preview does not show this default font type once it has been applied. 

I am not sure if this preview is to late? Maybe the default Font Preview should
be set once the user defines a Label item. What do you like?
------- Comment #1 From 2004-02-23 11:37:42 -------
I'll take a look at this one.
------- Comment #2 From 2004-02-23 12:11:47 -------
fixed.
------- Comment #3 From 2004-02-24 18:09:28 -------
I am a little confused about this. Can you have a layer with a class with no
font and have a second class with a set font? 

IF the answer is "YES". We have a problem. Any suggestions to fixing this?


If the answer is "NO" than we still have a problem in that I produced the
following error when I wanted to change the font type to true type:

Warning: [MapServer Error]: getString(): Parsing error near (MAXSIZE):(line 104)
in C:\ms4w\apps\_cvsdev\chameleon\htdocs\common\wrapper\map_session.php on line 221

Warning: Failed to open map file
/ms4w/tmp/sess_403bd451f1b4e/1077663453-1199.map in
C:\ms4w\apps\_cvsdev\chameleon\htdocs\common\wrapper\map_session.php on line 221
ERROR: moSLDSession has layers!

Fatal error: Call to a member function on a non-object in
C:\ms4w\apps\_cvsdev\studio\htdocs\widgets\SLDCache.widget.php on line 247

------- Comment #4 From 2004-02-26 11:37:46 -------
Sorry to bug you guys but can some one answer my last comment. It is effecting
my tests. As a recall before this enhancement I was able to have the set to no
font on one class and have a font style on an other class. But not anymore :)

Thanks
------- Comment #5 From 2004-02-26 14:07:18 -------
if labelitem is set then every class has a label.  
------- Comment #6 From 2004-02-26 14:24:51 -------
if this is the case for sld how come I was able to set one class if label and
one without, before this was defined?

I mapserver you are able to do this. meaning you don't have to have a label
object in every class.
------- Comment #7 From 2004-02-27 11:54:56 -------
this is a design flaw in sect that I should deal with. It should be possible to
set the label for a class to 
none. This is supported in mapserver and SLD so it should be possible in sect.
------- Comment #8 From 2004-03-15 13:46:11 -------
Maybe if we set the face to none then we could use that as an indicator as to
whether we create a lable object in the mapfile or not.. just an idea