Re: [mapserver-users] label issues...

2013-03-19 Thread Worth Lutz
You seem to be missing:

 

  LABELITEM  field to use for label

 

This tells what data to use for the label.

 

See below for location.

 

Also see other responses about color.

 

Worth

 

  _  

From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] 
Sent: Monday, March 18, 2013 5:31 PM
To: w...@mindspring.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...

 

Hi there, 

Ok so I have revised the mapfile to this...

 

  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALEDENOM 100
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END

   LABELITEM field to use for label

CLASS
NAME 'mjcities' 
   STYLE
 SYMBOL circle 
 SIZE 15.0 
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END
   LABEL 
   COLOR 255 255 255
   FONT arial
   TYPE truetype
   SIZE 10
   ANGLE 0
   POSITION cc
   FORCE false
   PARTIALS false
   END

 

But when I zoom into my layers I see the symbols that were created but the
labels still don't show up...any suggestions?

 

Thanks for the help everyone as I do appreciate it!

Mark

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 2641/6185 - Release Date: 03/17/13

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-19 Thread Mark Mirrlees

Hi Steve, Thanks for yor help! I managed to figure it out what I needed to do 
to make changes to the different font etc, and the main thing was I forgot to 
put LABELNAME near the top of the code as now it works! Mark

 
  Date: Mon, 18 Mar 2013 18:21:04 -0400
 From: wood...@swoodbridge.com
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] label issues...
 
 So you want you labels to be white?
 
 What color is your background?
 
 Do you have a FONTSET fonts.txt that maps arial to a font. I assume 
 you probably do as it is not throwing an error about it.
 
 Also you can get some debug info if you add to the MAP section:
 
 CONFIG MS_ERRORFILE stderr
 DEBUG 5
 
 Then when you render you map look in the apache error.log file. Or try 
 it with:
 
 shp2img -m mymapfile.map -o image.png
 
 There are lots of other parameters, but that should be enough to get 
 some output.
 
 -Steve
 
 On 3/18/2013 5:30 PM, Mark Mirrlees wrote:
  Hi there,
 
  Ok so I have revised the mapfile to this...
 
 LAYER
   NAME 'mjcities'
   TYPE POINT
   DUMP false
 EXTENT -143.210462 39.001401 -50.461045 85.911094
   DATA '../data/mjcities.shp'
   METADATA
 'ows_title' 'mjcities'
   END
   STATUS default
MAXSCALEDENOM 100
   TRANSPARENCY 100
   PROJECTION
   'proj=longlat'
   'datum=WGS84'
   'no_defs'
   END
   CLASS
   NAME 'mjcities'
  STYLE
SYMBOL circle
SIZE 15.0
OUTLINECOLOR 0 0 0
COLOR 182 109 194
  END
  LABEL
  COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  PARTIALS false
  END
 
  But when I zoom into my layers I see the symbols that were created but
  the labels still don't show up...any suggestions?
 
  Thanks for the help everyone as I do appreciate it!
 
  Mark
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] label issues...

2013-03-18 Thread Mark Mirrlees

Hi all, Ok so now I have a new problem with the labeling. I would like to get 
my labels to start showing up at a scale of 1:100 but nothing is working... 
here is a snippet of my mapfile...   LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100
 CLASSITEM 'NAME'
  LABELITEM 'NAME'
 PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
   STYLE
 SYMBOL circle 
 SIZE 15.0 
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END Thanks,Mark 

 
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Fawcett, David (MNIT)
Mark,

You will want to add a LABEL block to your mapfile.  
http://mapserver.org/mapfile/label.html

I would also comment out the maxscale until you get the labels working.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Monday, March 18, 2013 2:48 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] label issues...

Hi all,

Ok so now I have a new problem with the labeling.

I would like to get my labels to start showing up at a scale of 1:100 but 
nothing is working...

here is a snippet of my mapfile...

  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100
 CLASSITEM 'NAME'
  LABELITEM 'NAME'
 PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities'
   STYLE
 SYMBOL circle
 SIZE 15.0
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END

Thanks,
Mark





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Mark Mirrlees

Ok so I want to stick this code into the .map file... where should it be placed 
in the section that i bolded? LABEL
  COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  ANTIALIAS false
  PARTIALS false
 END 

Thanks,MarkFrom: david.fawc...@state.mn.us
To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 19:51:42 +









Mark,

 
You will want to add a LABEL block to your mapfile. 
http://mapserver.org/mapfile/label.html
 
I would also comment out the maxscale until you get the labels working.
 
David.
 


From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org]
On Behalf Of Mark Mirrlees

Sent: Monday, March 18, 2013 2:48 PM

To: mapserver-users@lists.osgeo.org

Subject: [mapserver-users] label issues...


 

Hi all,

 

Ok so now I have a new problem with the labeling.

 

I would like to get my labels to start showing up at a scale of 1:100 but 
nothing is working...

 

here is a snippet of my mapfile...

 

  LAYER

NAME 'mjcities'

TYPE POINT

DUMP false

  EXTENT -143.210462 39.001401 -50.461045 85.911094

DATA '../data/mjcities.shp'

METADATA

  'ows_title' 'mjcities'

END

STATUS default

 MAXSCALE 100

 TRANSPARENCY 100

 CLASSITEM 'NAME'

  LABELITEM 'NAME'

 PROJECTION

'proj=longlat'

'datum=WGS84'

'no_defs'

END

CLASS

NAME 'mjcities' 


   STYLE

 SYMBOL circle 


 SIZE 15.0 


 OUTLINECOLOR 0 0 0

 COLOR 182 109 194

   END

 

Thanks,

Mark

 





 

 


  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Yves Jacolin
Hello,

You should use also LABELMAXSCALE instead of MAXSCALE.

Y.
Le lundi 18 mars 2013 15:59:41 Mark Mirrlees a écrit :
 Ok so I want to stick this code into the .map file... where should it be
 placed in the section that i bolded? LABEL COLOR 255 255 255
   FONT arial
   TYPE truetype
   SIZE 10
   ANGLE 0
   POSITION cc
   FORCE false
   ANTIALIAS false
   PARTIALS false
  END
 
 Thanks,MarkFrom: david.fawc...@state.mn.us
 To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] label issues...
 Date: Mon, 18 Mar 2013 19:51:42 +
 
 
 
 
 
 
 
 
 
 Mark,
 
 
 You will want to add a LABEL block to your mapfile.
 http://mapserver.org/mapfile/label.html
 
 I would also comment out the maxscale until you get the labels working.
 
 David.
 
 
 
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
 
 Sent: Monday, March 18, 2013 2:48 PM
 
 To: mapserver-users@lists.osgeo.org
 
 Subject: [mapserver-users] label issues...
 
 
 
 
 Hi all,
 
 
 
 Ok so now I have a new problem with the labeling.
 
 
 
 I would like to get my labels to start showing up at a scale of 1:100
 but nothing is working...
 
 
 
 here is a snippet of my mapfile...
 
 
 
   LAYER
 
 NAME 'mjcities'
 
 TYPE POINT
 
 DUMP false
 
   EXTENT -143.210462 39.001401 -50.461045 85.911094
 
 DATA '../data/mjcities.shp'
 
 METADATA
 
   'ows_title' 'mjcities'
 
 END
 
 STATUS default
 
  MAXSCALE 100
 
  TRANSPARENCY 100
 
  CLASSITEM 'NAME'
 
   LABELITEM 'NAME'
 
  PROJECTION
 
 'proj=longlat'
 
 'datum=WGS84'
 
 'no_defs'
 
 END
 
 CLASS
 
 NAME 'mjcities'
 
 
STYLE
 
  SYMBOL circle
 
 
  SIZE 15.0
 
 
  OUTLINECOLOR 0 0 0
 
  COLOR 182 109 194
 
END
 
 
 
 Thanks,
 
 Mark
-- 
Yves Jacolin
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Fawcett, David (MNIT)
You want to create a class in your layer and place it there.

http://mapserver.org/mapfile/class.html

Like this:

MAP
LAYER
CLASS
LABEL
END # end of label
END # end of class

END  #end of layer

END #end of map

From: Mark Mirrlees [mailto:mmirrl...@hotmail.com]
Sent: Monday, March 18, 2013 3:00 PM
To: Fawcett, David (MNIT); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...

Ok so I want to stick this code into the .map file... where should it be placed 
in the section that i bolded?

LABEL
  COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  ANTIALIAS false
  PARTIALS false
 END

Thanks,
Mark

From: david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us
To: mmirrl...@hotmail.commailto:mmirrl...@hotmail.com; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 19:51:42 +
Mark,

You will want to add a LABEL block to your mapfile.  
http://mapserver.org/mapfile/label.html

I would also comment out the maxscale until you get the labels working.

David.

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Monday, March 18, 2013 2:48 PM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] label issues...

Hi all,

Ok so now I have a new problem with the labeling.

I would like to get my labels to start showing up at a scale of 1:100 but 
nothing is working...

here is a snippet of my mapfile...

  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100
 CLASSITEM 'NAME'
  LABELITEM 'NAME'
 PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities'
   STYLE
 SYMBOL circle
 SIZE 15.0
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END

Thanks,
Mark





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Mark Mirrlees

Ok so if I understand this is what it should look like? (stuff thats been added 
is in red) Please correct this if i'm wrong as I am still having a bit of 
problems...   LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100CLASSLABEL COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  ANTIALIAS false
  PARTIALS falseENDPROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
   STYLE
 SYMBOL circle 
 SIZE 15.0 
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END


 
 From: david.fawc...@state.mn.us
To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 20:05:55 +









You want to create a class in your layer and place it there. 

 
http://mapserver.org/mapfile/class.html
 
Like this:
 
MAP
LAYER
CLASS
LABEL
END # end of label
END # end of class
 
END  #end of layer
 
END #end of map
 


From: Mark Mirrlees [mailto:mmirrl...@hotmail.com]


Sent: Monday, March 18, 2013 3:00 PM

To: Fawcett, David (MNIT); mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] label issues...


 

Ok so I want to stick this code into the .map file... where should it be placed 
in the section that i bolded?

 

LABEL

  COLOR 255 255 255

  FONT arial

  TYPE truetype

  SIZE 10

  ANGLE 0

  POSITION cc

  FORCE false

  ANTIALIAS false

  PARTIALS false

 END 



Thanks,

Mark




From:
david.fawc...@state.mn.us

To: mmirrl...@hotmail.com; 
mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] label issues...

Date: Mon, 18 Mar 2013 19:51:42 +

Mark,

 
You will want to add a LABEL block to your mapfile. 
http://mapserver.org/mapfile/label.html
 
I would also comment out the maxscale until you get the labels working.
 
David.
 


From:
mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org]
On Behalf Of Mark Mirrlees

Sent: Monday, March 18, 2013 2:48 PM

To: mapserver-users@lists.osgeo.org

Subject: [mapserver-users] label issues...


 

Hi all,

 

Ok so now I have a new problem with the labeling.

 

I would like to get my labels to start showing up at a scale of 1:100 but 
nothing is working...

 

here is a snippet of my mapfile...

 

  LAYER

NAME 'mjcities'

TYPE POINT

DUMP false

  EXTENT -143.210462 39.001401 -50.461045 85.911094

DATA '../data/mjcities.shp'

METADATA

  'ows_title' 'mjcities'

END

STATUS default

 MAXSCALE 100

 TRANSPARENCY 100

 CLASSITEM 'NAME'

  LABELITEM 'NAME'

 PROJECTION

'proj=longlat'

'datum=WGS84'

'no_defs'

END

CLASS

NAME 'mjcities' 


   STYLE

 SYMBOL circle 


 SIZE 15.0 


 OUTLINECOLOR 0 0 0

 COLOR 182 109 194

   END

 

Thanks,

Mark

 





 

 





  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Worth Lutz
No the label block goes into your original class block.

 

LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
'ows_title' 'mjcities'
END
STATUS default
MAXSCALE 100
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
STYLE
SYMBOL circle 
SIZE 15.0 
OUTLINECOLOR 0 0 0
COLOR 182 109 194

LABEL 
COLOR 255 255 255
FONT arial
TYPE truetype
SIZE 10
ANGLE 0
POSITION cc
FORCE false
PARTIALS false
END
END



 

  _  

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Monday, March 18, 2013 4:21 PM
To: david.fawc...@state.mn.us; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] label issues...

 

Ok so if I understand this is what it should look like? (stuff thats been
added is in red) Please correct this if i'm wrong as I am still having a bit
of problems...
 
  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
'ows_title' 'mjcities'
END
STATUS default
MAXSCALE 100
TRANSPARENCY 100
CLASS
LABEL 
COLOR 255 255 255
FONT arial
TYPE truetype
SIZE 10
ANGLE 0
POSITION cc
FORCE false
ANTIALIAS false
PARTIALS false
END
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
STYLE
SYMBOL circle 
SIZE 15.0 
OUTLINECOLOR 0 0 0
COLOR 182 109 194
END



 


 

  _  

From: david.fawc...@state.mn.us
To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 20:05:55 +

You want to create a class in your layer and place it there.  

 

http://mapserver.org/mapfile/class.html

 

Like this:

 

MAP

LAYER

CLASS

LABEL

END # end of label

END # end of class

 

END  #end of layer

 

END #end of map

 

From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] 
Sent: Monday, March 18, 2013 3:00 PM
To: Fawcett, David (MNIT); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...

 

Ok so I want to stick this code into the .map file... where should it be
placed in the section that i bolded?
 
LABEL
  COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  ANTIALIAS false
  PARTIALS false
 END 

Thanks,
Mark

  _  

From: david.fawc...@state.mn.us
To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 19:51:42 +

Mark, 

 

You will want to add a LABEL block to your mapfile.
http://mapserver.org/mapfile/label.html

 

I would also comment out the maxscale until you get the labels working.

 

David.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Monday, March 18, 2013 2:48 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] label issues...

 

Hi all,
 
Ok so now I have a new problem with the labeling.
 
I would like to get my labels to start showing up at a scale of 1:100
but nothing is working...
 
here is a snippet of my mapfile...
 
  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100
 CLASSITEM 'NAME'
  LABELITEM 'NAME'
 PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
   STYLE
 SYMBOL circle 
 SIZE 15.0 
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END
 
Thanks,
Mark
 


 

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 2641/6184 - Release Date: 03/17/13

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Fawcett, David (MNIT)
Mark,

I think that you are close.  You can likely simplify your layer a little by 
dropping out the properties that have a default, e.g. angle, position, etc.  
You also might want to comment out the FORCE and PARTIALS until you see that 
you are drawing labels.

You should also be able to put the combine the two classes and have your label 
and symbol in the same class.

Classes are about 'classifying' your data.  In some cases you have multiple 
classes, one for each data range.  E.g. where a column value is less than 10, 
one where it is more than 10 and less than 100, and one where it is greater 
than 100.  Each class would likely have a different symbolization then.

At a minimum, you need one class.  This is what you need.

David.

From: Mark Mirrlees [mailto:mmirrl...@hotmail.com]
Sent: Monday, March 18, 2013 3:21 PM
To: Fawcett, David (MNIT); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...

Ok so if I understand this is what it should look like? (stuff thats been added 
is in red) Please correct this if i'm wrong as I am still having a bit of 
problems...

  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
'ows_title' 'mjcities'
END
STATUS default
MAXSCALE 100
TRANSPARENCY 100
CLASS
LABEL
COLOR 255 255 255
FONT arial
TYPE truetype
SIZE 10
ANGLE 0
POSITION cc
FORCE false
ANTIALIAS false
PARTIALS false
END
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities'
STYLE
SYMBOL circle
SIZE 15.0
OUTLINECOLOR 0 0 0
COLOR 182 109 194
END





From: david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us
To: mmirrl...@hotmail.commailto:mmirrl...@hotmail.com; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 20:05:55 +
You want to create a class in your layer and place it there.

http://mapserver.org/mapfile/class.html

Like this:

MAP
LAYER
CLASS
LABEL
END # end of label
END # end of class

END  #end of layer

END #end of map

From: Mark Mirrlees [mailto:mmirrl...@hotmail.com]
Sent: Monday, March 18, 2013 3:00 PM
To: Fawcett, David (MNIT); 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...

Ok so I want to stick this code into the .map file... where should it be placed 
in the section that i bolded?

LABEL
  COLOR 255 255 255
  FONT arial
  TYPE truetype
  SIZE 10
  ANGLE 0
  POSITION cc
  FORCE false
  ANTIALIAS false
  PARTIALS false
 END

Thanks,
Mark

From: david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us
To: mmirrl...@hotmail.commailto:mmirrl...@hotmail.com; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] label issues...
Date: Mon, 18 Mar 2013 19:51:42 +
Mark,

You will want to add a LABEL block to your mapfile.  
http://mapserver.org/mapfile/label.html

I would also comment out the maxscale until you get the labels working.

David.

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Monday, March 18, 2013 2:48 PM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] label issues...

Hi all,

Ok so now I have a new problem with the labeling.

I would like to get my labels to start showing up at a scale of 1:100 but 
nothing is working...

here is a snippet of my mapfile...

  LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALE 100
 TRANSPARENCY 100
 CLASSITEM 'NAME'
  LABELITEM 'NAME'
 PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities'
   STYLE
 SYMBOL circle
 SIZE 15.0
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END

Thanks,
Mark





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Mark Mirrlees

Hi there, Ok so I have revised the mapfile to this...   LAYER
NAME 'mjcities'
TYPE POINT
DUMP false
  EXTENT -143.210462 39.001401 -50.461045 85.911094
DATA '../data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS default
 MAXSCALEDENOM 100
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
NAME 'mjcities' 
   STYLE
 SYMBOL circle 
 SIZE 15.0 
 OUTLINECOLOR 0 0 0
 COLOR 182 109 194
   END
   LABEL 
   COLOR 255 255 255
   FONT arial
   TYPE truetype
   SIZE 10
   ANGLE 0
   POSITION cc
   FORCE false
   PARTIALS false
   END But when I zoom into my layers I see the symbols that were created but 
the labels still don't show up...any suggestions? Thanks for the help everyone 
as I do appreciate it!Mark   ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] label issues...

2013-03-18 Thread Stephen Woodbridge

So you want you labels to be white?

What color is your background?

Do you have a FONTSET fonts.txt that maps arial to a font. I assume 
you probably do as it is not throwing an error about it.


Also you can get some debug info if you add to the MAP section:

CONFIG MS_ERRORFILE stderr
DEBUG 5

Then when you render you map look in the apache error.log file. Or try 
it with:


shp2img -m mymapfile.map -o image.png

There are lots of other parameters, but that should be enough to get 
some output.


-Steve

On 3/18/2013 5:30 PM, Mark Mirrlees wrote:

Hi there,

Ok so I have revised the mapfile to this...

   LAYER
 NAME 'mjcities'
 TYPE POINT
 DUMP false
   EXTENT -143.210462 39.001401 -50.461045 85.911094
 DATA '../data/mjcities.shp'
 METADATA
   'ows_title' 'mjcities'
 END
 STATUS default
  MAXSCALEDENOM 100
 TRANSPARENCY 100
 PROJECTION
 'proj=longlat'
 'datum=WGS84'
 'no_defs'
 END
 CLASS
 NAME 'mjcities'
STYLE
  SYMBOL circle
  SIZE 15.0
  OUTLINECOLOR 0 0 0
  COLOR 182 109 194
END
LABEL
COLOR 255 255 255
FONT arial
TYPE truetype
SIZE 10
ANGLE 0
POSITION cc
FORCE false
PARTIALS false
END

But when I zoom into my layers I see the symbols that were created but
the labels still don't show up...any suggestions?

Thanks for the help everyone as I do appreciate it!

Mark



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users