RE: [mapserver-users] Labeling behavior at the edge of image

2012-01-20 Thread Lime, Steve D (DNR)
MINFEATURESIZE is used only for labeling and makes sense when a polygons are 
clipped. It
allows you avoid labeling slivers.

Steve


-Original Message-
From: Jackey Cheung [mailto:cheung.jac...@gmail.com] 
Sent: Thursday, January 19, 2012 6:52 PM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Labeling behavior at the edge of image

Hi Steve,

Thanks for you promptly reply. I've definitely try label_no_clip
out. However, I don't think the MINFEATURESIZE if for me. The polygon
as a whole is big enough for labeling, the problem is just that it's
sliced into two parts. Having a min size limit on it may render the
label gone at the edge, which is not the desire result.


On Thu, Jan 19, 2012 at 10:26 PM, Lime, Steve D (DNR)
steve.l...@state.mn.us wrote:
 You can use the label_no_clip (I think that's right) PROCESSING parameter 
 to force label position to be computed on the untransformed geometry. This 
 results in a stable position regardless of scale or map extent.

 You can also use the label parameter MINFEATURESIZE to limit the size of the 
 features being labeled. Its value is given in pixel and for polygons its 
 compared against the narrowest portion of the computed bounding box for the 
 feature.

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org 
 [mapserver-users-boun...@lists.osgeo.org] on behalf of Jackey Cheung 
 [cheung.jac...@gmail.com]
 Sent: Thursday, January 19, 2012 3:49 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Labeling behavior at the edge of image

 Hi all,

 I've met an issue during my work. There is a polygon right at the edge
 of an generated image. By setting position to auto, the label is
 rendered, shifted a little bit off. It's as expected I would say.
 However, a question arose immediately, what happen to the label of the
 other part of the same polygon in the tile right next to this image?
 Answer is that it's not render, no label to the other part. It seems
 reasonable too. But it does seems a bit odd to viewers, since after
 tiles are shown on a browser tile by tile side by side. No one will
 notice that there is the edge slicing the polygon right into two
 parts, and the label is shifted off from the center of the polygon.
 So, if I would like to have the label sits right at the middle
 (position cc) of the polygon, then what?

 Not sure if it can be achieved. I've tried allowing partial label, but
 doesn't seem working. Anyone have any idea?
 ___
 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] Labeling behavior at the edge of image

2012-01-19 Thread Jackey Cheung
Hi all,

I've met an issue during my work. There is a polygon right at the edge
of an generated image. By setting position to auto, the label is
rendered, shifted a little bit off. It's as expected I would say.
However, a question arose immediately, what happen to the label of the
other part of the same polygon in the tile right next to this image?
Answer is that it's not render, no label to the other part. It seems
reasonable too. But it does seems a bit odd to viewers, since after
tiles are shown on a browser tile by tile side by side. No one will
notice that there is the edge slicing the polygon right into two
parts, and the label is shifted off from the center of the polygon.
So, if I would like to have the label sits right at the middle
(position cc) of the polygon, then what?

Not sure if it can be achieved. I've tried allowing partial label, but
doesn't seem working. Anyone have any idea?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling behavior at the edge of image

2012-01-19 Thread Lime, Steve D (DNR)
You can use the label_no_clip (I think that's right) PROCESSING parameter to 
force label position to be computed on the untransformed geometry. This results 
in a stable position regardless of scale or map extent. 

You can also use the label parameter MINFEATURESIZE to limit the size of the 
features being labeled. Its value is given in pixel and for polygons its 
compared against the narrowest portion of the computed bounding box for the 
feature.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Jackey Cheung 
[cheung.jac...@gmail.com]
Sent: Thursday, January 19, 2012 3:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Labeling behavior at the edge of image

Hi all,

I've met an issue during my work. There is a polygon right at the edge
of an generated image. By setting position to auto, the label is
rendered, shifted a little bit off. It's as expected I would say.
However, a question arose immediately, what happen to the label of the
other part of the same polygon in the tile right next to this image?
Answer is that it's not render, no label to the other part. It seems
reasonable too. But it does seems a bit odd to viewers, since after
tiles are shown on a browser tile by tile side by side. No one will
notice that there is the edge slicing the polygon right into two
parts, and the label is shifted off from the center of the polygon.
So, if I would like to have the label sits right at the middle
(position cc) of the polygon, then what?

Not sure if it can be achieved. I've tried allowing partial label, but
doesn't seem working. Anyone have any idea?
___
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] Labeling problem

2010-03-25 Thread Kiks

Hi, I have a problem labeling in true type.
This is an extract from my WORKING mapfile, using TYPE BITMAP. If I
substitute TYPE BITMAP with TYPE truetype, It still works, but no label is
shown..
Any idea?
thanks,
Kiks

LAYER
 NAME CG_GEO_TESTI
 TYPE ANNOTATION
 STATUS OFF
 CONNECTIONTYPE PLUGIN 
 PLUGIN C:\programmi\ms4w\Apache\specialplugins\msplugin_mssql2008.dll 
 CONNECTION Driver={SQL Server Native Client
10.0};Server=localhost\SQLEXPRESS;Database=GIS;Trusted_Connection=yes; 
 DATA G_POSIZIONE FROM CG_GEO_TESTI WITH(INDEX(SPATIAL_CG_GEO_TESTI))
USING UNIQUE ID_TESTO USING SRID=3003
 LABELITEM 'TESTO'
 METADATA 
   wms_title Testi catastali 
   gml_include_items all 
 END 
 DUMP TRUE 
 PROJECTION
   init=epsg:3003
 END
 OPACITY 100
 MAXSCALEDENOM 1
 MINSCALEDENOM  2000
 CLASS
   STYLE
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 WIDTH 3
   END
   LABEL 
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 TYPE BITMAP
 OUTLINEWIDTH 5
 FONT georgia
#  TYPE truetype
#  SIZE 12
#  ANGLE [ANGOLO]
  POSITION AUTO
  PARTIALS FALSE

   END 
 END
   END  

-- 
View this message in context: 
http://n2.nabble.com/Labeling-problem-tp4798590p4798590.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] labeling streets

2009-06-11 Thread Raivo Alla
Hi,

I think I found the cause.
When declaring ANGLE AUTO, then MINFEATURESIZE auto was working.
But with ANGLE FOLLOW there was a problem displaying labels.
Could it be considered as a bug?


Raivo

On Tue, Jun 9, 2009 at 9:48 AM, Raivo Allasnaper...@gmail.com wrote:
 Hi,

 I added red box to visualize line vertices
 (style
  geomtransform start
  symbol box
  color 255 0 0
  size 6
  end) and the result is displayed here:

 http://picasaweb.google.com/snaperski/Ort#5345215158256974066


 Best wishes,
 Raivo

 On Tue, Jun 9, 2009 at 9:18 AM, Thomas
 Bonfortthomas.bonf...@camptocamp.com wrote:
 Raivo,

 are you sure that your streets only contain one feature?
 If you are using 5.4+, you can check by appending a geomtransform
 style to your street layer, to draw a symbol at the beginning of each
 feature:

 style
  geomtransform start
  symbol circle
  color 255 0 0
  size 15
 end

 regards,

 thomas

 www.camptocamp.com
 +33 4 79 26 57 97



 On Tue, Jun 9, 2009 at 07:50, Raivo Allasnaper...@gmail.com wrote:
 Thank You,

 so it should be, but somehow in my case it does not work properly.
 When i have no declaration of MINFEATURESIZE, then the picture looks fine:
 http://picasaweb.google.com/snaperski/Ort#5345194219497220482
 But when I add MINFEATURESIZE AUTO, most labels just disappear, even
 if they have enough space to fit in:
 http://picasaweb.google.com/snaperski/Ort#5345195269825705586

 And those labeled straight streets contain only one feature (line
 feature) each - so the label should fit in decently.

 Label is declared this way:
                LABEL
                        TYPE truetype
                        ANTIALIAS true
                        FONT arial
                        COLOR 240 240 240
                        OUTLINECOLOR 52 52 52
                        SIZE 9
                        force false
                        MINDISTANCE 250
                        MINFEATURESIZE auto
                        ANGLE follow
                        POSITION cc
                        BUFFER 1
                END

 Changing FORCE or POSITION parameters didnt help either


 Raivo

 On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca 
 wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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


Re: [mapserver-users] labeling streets

2009-06-09 Thread Thomas Bonfort
Raivo,

are you sure that your streets only contain one feature?
If you are using 5.4+, you can check by appending a geomtransform
style to your street layer, to draw a symbol at the beginning of each
feature:

style
  geomtransform start
  symbol circle
  color 255 0 0
  size 15
end

regards,

thomas

www.camptocamp.com
+33 4 79 26 57 97



On Tue, Jun 9, 2009 at 07:50, Raivo Allasnaper...@gmail.com wrote:
 Thank You,

 so it should be, but somehow in my case it does not work properly.
 When i have no declaration of MINFEATURESIZE, then the picture looks fine:
 http://picasaweb.google.com/snaperski/Ort#5345194219497220482
 But when I add MINFEATURESIZE AUTO, most labels just disappear, even
 if they have enough space to fit in:
 http://picasaweb.google.com/snaperski/Ort#5345195269825705586

 And those labeled straight streets contain only one feature (line
 feature) each - so the label should fit in decently.

 Label is declared this way:
                LABEL
                        TYPE truetype
                        ANTIALIAS true
                        FONT arial
                        COLOR 240 240 240
                        OUTLINECOLOR 52 52 52
                        SIZE 9
                        force false
                        MINDISTANCE 250
                        MINFEATURESIZE auto
                        ANGLE follow
                        POSITION cc
                        BUFFER 1
                END

 Changing FORCE or POSITION parameters didnt help either


 Raivo

 On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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


Re: [mapserver-users] labeling streets

2009-06-09 Thread Raivo Alla
Hi,

I added red box to visualize line vertices
(style
  geomtransform start
  symbol box
  color 255 0 0
  size 6
 end) and the result is displayed here:

http://picasaweb.google.com/snaperski/Ort#5345215158256974066


Best wishes,
Raivo

On Tue, Jun 9, 2009 at 9:18 AM, Thomas
Bonfortthomas.bonf...@camptocamp.com wrote:
 Raivo,

 are you sure that your streets only contain one feature?
 If you are using 5.4+, you can check by appending a geomtransform
 style to your street layer, to draw a symbol at the beginning of each
 feature:

 style
  geomtransform start
  symbol circle
  color 255 0 0
  size 15
 end

 regards,

 thomas

 www.camptocamp.com
 +33 4 79 26 57 97



 On Tue, Jun 9, 2009 at 07:50, Raivo Allasnaper...@gmail.com wrote:
 Thank You,

 so it should be, but somehow in my case it does not work properly.
 When i have no declaration of MINFEATURESIZE, then the picture looks fine:
 http://picasaweb.google.com/snaperski/Ort#5345194219497220482
 But when I add MINFEATURESIZE AUTO, most labels just disappear, even
 if they have enough space to fit in:
 http://picasaweb.google.com/snaperski/Ort#5345195269825705586

 And those labeled straight streets contain only one feature (line
 feature) each - so the label should fit in decently.

 Label is declared this way:
                LABEL
                        TYPE truetype
                        ANTIALIAS true
                        FONT arial
                        COLOR 240 240 240
                        OUTLINECOLOR 52 52 52
                        SIZE 9
                        force false
                        MINDISTANCE 250
                        MINFEATURESIZE auto
                        ANGLE follow
                        POSITION cc
                        BUFFER 1
                END

 Changing FORCE or POSITION parameters didnt help either


 Raivo

 On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca 
 wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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] labeling streets

2009-06-08 Thread Raivo Alla
Hello!

I'm stuck in simple-looking problem, but the solution is just hiding somewhere.

The question is: how I can label only those line features, whos label
does not run over the line like that:

http://picasaweb.google.com/snaperski/Ort#5344831130138846050

As street lengths are very different, I cant solve the problem by
setting suitable MINFEATURESIZE for

respective MINSCALE,MAXSCALE range.


All the best,
Raivo Alla
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] labeling streets

2009-06-08 Thread Christy Nieman

Hi,

You could set MINFEATURESIZE to AUTO and then only the labels that fit 
on the lines should be drawn.


Regards,
Christy

Raivo Alla wrote:

Hello!

I'm stuck in simple-looking problem, but the solution is just hiding somewhere.

The question is: how I can label only those line features, whos label
does not run over the line like that:

http://picasaweb.google.com/snaperski/Ort#5344831130138846050

As street lengths are very different, I cant solve the problem by
setting suitable MINFEATURESIZE for

respective MINSCALE,MAXSCALE range.


All the best,
Raivo Alla
___
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


Re: [mapserver-users] labeling streets

2009-06-08 Thread Raivo Alla
Thank You,

so it should be, but somehow in my case it does not work properly.
When i have no declaration of MINFEATURESIZE, then the picture looks fine:
http://picasaweb.google.com/snaperski/Ort#5345194219497220482
But when I add MINFEATURESIZE AUTO, most labels just disappear, even
if they have enough space to fit in:
http://picasaweb.google.com/snaperski/Ort#5345195269825705586

And those labeled straight streets contain only one feature (line
feature) each - so the label should fit in decently.

Label is declared this way:
LABEL
TYPE truetype
ANTIALIAS true
FONT arial
COLOR 240 240 240
OUTLINECOLOR 52 52 52
SIZE 9
force false
MINDISTANCE 250
MINFEATURESIZE auto
ANGLE follow
POSITION cc
BUFFER 1
END

Changing FORCE or POSITION parameters didnt help either


Raivo

On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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] Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
I am plotting a few points via an OVF file and MySQL table
The points show up fine...
As soon as I try to label from the MySQL table the Star points disappear...
I imagine I have some syntax issues or missing something in the map file (See 
below)

Any thoughts?

THANKS

HERE ARE THE POINTS
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
CLASS
   #NAME ID
   STYLE
   SYMBOL star
   SIZE 15
   COLOR 238 0 0
   END
END
END

CANT GET THE LABELS TO SHOW UP
  LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'Name'
LABELCACHE ON
CLASS
LABEL
 COLOR 0 0 0
  SIZE 7
END
END
END


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


[mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski

Is there any way to eliminate the decimal places here...I looked online but was 
unable to find anything.

Thanks

The fields I am labeling are numeric...so I get this

3434.
123.

I am looking to drop all the extra decimal places...

Or maybe set it to keep two

3434.00

THANKS



LAYER # Maple Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2000
MINSCALE 100
LABELITEM 'EMV_LAND'


LABELCACHE ON
 CLASS
   COLOR -1 -1 -1
   LABEL
POSITION UC
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 7
SIZE 7
OFFSET 0 10
MINSIZE 4
#ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
BUFFER 2
   END
 END
  END # Maple Grove Parcels
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Fawcett, David
It is always an option to create a string column and then populate it
with your numbers formatted the way that you want them to appear.  I am
sure that you realize this, but it is something that I have done in the
past.
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay
Kapalczynski
Sent: Thursday, March 26, 2009 9:14 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Labeling



 

Is there any way to eliminate the decimal places here...I looked
online but was unable to find anything.


Thanks

 

The fields I am labeling are numeric...so I get this

 

3434.

123.

 

I am looking to drop all the extra decimal places...

 

Or maybe set it to keep two

 

3434.00

 

THANKS

 

 

 

LAYER # Maple Grove Parcels

NAME Parcel_Labels

DATA './parcels.shp'

STATUS DEFAULT

TYPE annotation

MAXSCALE 2000

MINSCALE 100

LABELITEM 'EMV_LAND'





LABELCACHE ON

 CLASS

   COLOR -1 -1 -1

   LABEL

POSITION UC

TYPE TRUETYPE

FONT vera_sans

MAXSIZE 7

SIZE 7

OFFSET 0 10

MINSIZE 4

#ANTIALIAS TRUE

COLOR 0 0 0

OUTLINECOLOR 255 255 128

BUFFER 2

   END

 END

  END # Maple Grove Parcels

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


RE: [mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski
Yea I can do that but then I have to build processes to do all the converting...
I want to read this data live.

Anyone else have any ideas?

Thanks

One Last thought, don't know if I should enter a new topic...

I have three labels I want to label.  Right now I am using an Offset to push 
one above, and one below (UC, CC, LC) with offsets.
And as such these are three separate layers in my app
I tried to combine all three into one map file but it only labels the first one 
(I copied the original code in the original email and simply changed the label 
field)(no matter what I do it just labels the first one it reads)

Can I combine these into one and still have them label on three different rows

Value 1
Value 2
Value 3

Can I concatenate like this?

LABELITEM  'Value 1'  'VALUE 2'  'VALUE 3'

But how would I specify they are supposed to create 3 lines???

THANKS


From: Fawcett, David [mailto:david.fawc...@state.mn.us]
Sent: Thursday, March 26, 2009 9:38 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Labeling

It is always an option to create a string column and then populate it with your 
numbers formatted the way that you want them to appear.  I am sure that you 
realize this, but it is something that I have done in the past.

David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, March 26, 2009 9:14 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Labeling

Is there any way to eliminate the decimal places here...I looked online but was 
unable to find anything.

Thanks

The fields I am labeling are numeric...so I get this

3434.
123.

I am looking to drop all the extra decimal places...

Or maybe set it to keep two

3434.00

THANKS



LAYER # Maple Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2000
MINSCALE 100
LABELITEM 'EMV_LAND'


LABELCACHE ON
 CLASS
   COLOR -1 -1 -1
   LABEL
POSITION UC
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 7
SIZE 7
OFFSET 0 10
MINSIZE 4
#ANTIALIAS TRUE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
BUFFER 2
   END
 END
  END # Maple Grove Parcels
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Labeling

2009-03-26 Thread Steve Lime
The decimal truncation simply can't be done with a shapefile at the moment. 
There's a ticket in place
to add this functionality but it will be a 6.0 improvement. Wish I have better 
news.

One the other question you can use the class TEXT property along with a wrap 
character to achieve
the multiline labels. E.g.:

CLASS
  ...
  TEXT [col1]|[col2]|[col3]
  LABEL
...
WRAP |
  END
END

and that should get you a multi-line label based on 3 attributes.

Steve

 On 3/26/2009 at 10:57 AM, in message
d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay
Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:
 Yea I can do that but then I have to build processes to do all the 
 converting...
 I want to read this data live.
 
 Anyone else have any ideas?
 
 Thanks
 
 One Last thought, don't know if I should enter a new topic...
 
 I have three labels I want to label.  Right now I am using an Offset to push 
 one above, and one below (UC, CC, LC) with offsets.
 And as such these are three separate layers in my app
 I tried to combine all three into one map file but it only labels the first 
 one (I copied the original code in the original email and simply changed the 
 label field)(no matter what I do it just labels the first one it reads)
 
 Can I combine these into one and still have them label on three different 
 rows
 
 Value 1
 Value 2
 Value 3
 
 Can I concatenate like this?
 
 LABELITEM  'Value 1'  'VALUE 2'  'VALUE 3'
 
 But how would I specify they are supposed to create 3 lines???
 
 THANKS
 
 
 From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
 Sent: Thursday, March 26, 2009 9:38 AM
 To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
 Subject: RE: [mapserver-users] Labeling
 
 It is always an option to create a string column and then populate it with 
 your numbers formatted the way that you want them to appear.  I am sure that 
 you realize this, but it is something that I have done in the past.
 
 David.
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay 
 Kapalczynski
 Sent: Thursday, March 26, 2009 9:14 AM
 To: 'mapserver-users@lists.osgeo.org'
 Subject: [mapserver-users] Labeling
 
 Is there any way to eliminate the decimal places here...I looked online but 
 was unable to find anything.
 
 Thanks
 
 The fields I am labeling are numeric...so I get this
 
 3434.
 123.
 
 I am looking to drop all the extra decimal places...
 
 Or maybe set it to keep two
 
 3434.00
 
 THANKS
 
 
 
 LAYER # Maple Grove Parcels
 NAME Parcel_Labels
 DATA './parcels.shp'
 STATUS DEFAULT
 TYPE annotation
 MAXSCALE 2000
 MINSCALE 100
 LABELITEM 'EMV_LAND'
 
 
 LABELCACHE ON
  CLASS
COLOR -1 -1 -1
LABEL
 POSITION UC
 TYPE TRUETYPE
 FONT vera_sans
 MAXSIZE 7
 SIZE 7
 OFFSET 0 10
 MINSIZE 4
 #ANTIALIAS TRUE
 COLOR 0 0 0
 OUTLINECOLOR 255 255 128
 BUFFER 2
END
  END
   END # Maple Grove Parcels

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


RE: [mapserver-users] Labeling

2009-03-26 Thread Jay Kapalczynski
Thank you all for your help...

No worries on the decimal truncationwill patiently wait for the 6.0 
releasein the mean time I have just updated the test data to a string (text)

As for the multi-lineThank you Steve and Mark Volz for your thoughts...

They are working although it seems to indent the 2nd and 3rd line...I posted 
this on the other email sent by Mark Volz

Any thoughts



-Original Message-
From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] 
Sent: Thursday, March 26, 2009 11:46 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org; David' 'Fawcett
Subject: RE: [mapserver-users] Labeling

The decimal truncation simply can't be done with a shapefile at the moment. 
There's a ticket in place
to add this functionality but it will be a 6.0 improvement. Wish I have better 
news.

One the other question you can use the class TEXT property along with a wrap 
character to achieve
the multiline labels. E.g.:

CLASS
  ...
  TEXT [col1]|[col2]|[col3]
  LABEL
...
WRAP |
  END
END

and that should get you a multi-line label based on 3 attributes.

Steve

 On 3/26/2009 at 10:57 AM, in message
d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay
Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:
 Yea I can do that but then I have to build processes to do all the 
 converting...
 I want to read this data live.
 
 Anyone else have any ideas?
 
 Thanks
 
 One Last thought, don't know if I should enter a new topic...
 
 I have three labels I want to label.  Right now I am using an Offset to push 
 one above, and one below (UC, CC, LC) with offsets.
 And as such these are three separate layers in my app
 I tried to combine all three into one map file but it only labels the first 
 one (I copied the original code in the original email and simply changed the 
 label field)(no matter what I do it just labels the first one it reads)
 
 Can I combine these into one and still have them label on three different 
 rows
 
 Value 1
 Value 2
 Value 3
 
 Can I concatenate like this?
 
 LABELITEM  'Value 1'  'VALUE 2'  'VALUE 3'
 
 But how would I specify they are supposed to create 3 lines???
 
 THANKS
 
 
 From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
 Sent: Thursday, March 26, 2009 9:38 AM
 To: Jay Kapalczynski; mapserver-users@lists.osgeo.org 
 Subject: RE: [mapserver-users] Labeling
 
 It is always an option to create a string column and then populate it with 
 your numbers formatted the way that you want them to appear.  I am sure that 
 you realize this, but it is something that I have done in the past.
 
 David.
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay 
 Kapalczynski
 Sent: Thursday, March 26, 2009 9:14 AM
 To: 'mapserver-users@lists.osgeo.org'
 Subject: [mapserver-users] Labeling
 
 Is there any way to eliminate the decimal places here...I looked online but 
 was unable to find anything.
 
 Thanks
 
 The fields I am labeling are numeric...so I get this
 
 3434.
 123.
 
 I am looking to drop all the extra decimal places...
 
 Or maybe set it to keep two
 
 3434.00
 
 THANKS
 
 
 
 LAYER # Maple Grove Parcels
 NAME Parcel_Labels
 DATA './parcels.shp'
 STATUS DEFAULT
 TYPE annotation
 MAXSCALE 2000
 MINSCALE 100
 LABELITEM 'EMV_LAND'
 
 
 LABELCACHE ON
  CLASS
COLOR -1 -1 -1
LABEL
 POSITION UC
 TYPE TRUETYPE
 FONT vera_sans
 MAXSIZE 7
 SIZE 7
 OFFSET 0 10
 MINSIZE 4
 #ANTIALIAS TRUE
 COLOR 0 0 0
 OUTLINECOLOR 255 255 128
 BUFFER 2
END
  END
   END # Maple Grove Parcels

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


[MAPSERVER-USERS] Labeling Road

2008-06-30 Thread Ila

Hi List,

  I am newbie to this forum  stuck in a problem. Hope to get help from
this forum. I want to show labels on the road along with road directions 
fortunately I have successfully implemented it, but at some places on the
road the label is not getting displayed on the road. It comes above the road
or at road boundary, not in between the road boundary. If someone has any
idea, then please share with me. Thanks in advance. Yours suggestions will
be appreciated. 
-- 
View this message in context: 
http://www.nabble.com/Labeling-Road-tp18192553p18192553.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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