[mapserver-users] Re: Labeling problem

2010-03-27 Thread Kiks

I understand where I was wrong:

1 - I missed to delcare the fontset used that in my case is:

FONTSET c:\Windows\Fonts\font.list

This has to be defined at MAP level

2 - the file font.list is the same as in
http://mapserver.org/mapfile/fontset.html

Specifiing the fonts that WindowsXP has installed, and specifiing the right
path it works fine!
-- 
View this message in context: 
http://n2.nabble.com/Labeling-problem-tp4798590p4808835.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


[mapserver-users] RE: Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
This is my ovf file: Name is the field I want to label on...
Anyone have any thoughts?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,Name FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource



From: Jay Kapalczynski
Sent: Thursday, April 16, 2009 12:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Labeling via OGR, MySQL table

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] RE: Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
I was able to get some text to display with this:
ALTHOUGH I could only get the fields that were Numeric to label...cant get text 
fields to display.

Is this a syntax thing or is it not possible?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Letmein,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,ID FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource




   LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE ANNOTATION
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'ID'
LABELCACHE ON
CLASS
LABEL
POSITION CC
FONT vera_sans
TYPE TRUETYPE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
SIZE 7
END
END
END

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, April 16, 2009 1:29 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] RE: Labeling via OGR, MySQL table

This is my ovf file: Name is the field I want to label on...
Anyone have any thoughts?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,Name FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource



From: Jay Kapalczynski
Sent: Thursday, April 16, 2009 12:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Labeling via OGR, MySQL table

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] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Mark Volz
In response to Jay's Labeling question:


I have multi line / field labels working:

In this example I am stringing together both the name and the parcel id as a
label, then splitting the label into two lines

CLASS
NAME 'Parcels'
TEXT ([TXLname] * [PARCEL_ID])  #label
LABEL
WRAP * #select character to wrap on
END #label
END #class

I tried using precision in the query results, I have not tried it as part of
a label

[item name=NORTHING precision=2]








Mark Volz
GIS Specialist
Lyon County, MN
(507) 532-8218
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
mapserver-users-requ...@lists.osgeo.org
Sent: Thursday, March 26, 2009 11:02 AM
To: mapserver-users@lists.osgeo.org
Subject: mapserver-users Digest, Vol 14, Issue 80

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. RE: Labeling (Jay Kapalczynski)


--

Message: 1
Date: Thu, 26 Mar 2009 10:57:39 -0500
From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us
Subject: RE: [mapserver-users] Labeling
To: 'Fawcett, David' david.fawc...@state.mn.us,
mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Message-ID:

d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us

Content-Type: text/plain; charset=us-ascii

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
-- next part --
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92
b/attachment-0001.html


[mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
This works . BUT???



For some reason the 2nd and 3rd line seem indented a bit



Result:

1982

  19961001

  $ 250854



Do you know what could be causing this indent?



This is my Code:



   LAYER # Maple Grove Parcels

   NAME Parcel_Labels

   DATA './parcels.shp'

   STATUS DEFAULT

   TYPE annotation

   MAXSCALE 2000

   MINSCALE 100



  LABELCACHE ON



  CLASS

 TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1])  
#label

   LABEL

  COLOR 0 0 0

  OUTLINECOLOR 255 255 128

  WRAP * #select character to wrap on

   END #label

  END #class

END # Maple Grove Parcels







PRECISION:

As for the Precision I have also done that on the query resultsdont really 
know if or how I can use that in the Labelingfor now I just converted the 
test data.  But in a real world setting I am not going to be able to do that.  
I will be reading live...

If I have to I can created another database that has links and convert it 
therebut would rather bypass all that additional work...



THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED

THANKS MARK





-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz
Sent: Thursday, March 26, 2009 1:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] RE: Labeling issue mutli lines and precision



In response to Jay's Labeling question:





I have multi line / field labels working:



In this example I am stringing together both the name and the parcel id as a

label, then splitting the label into two lines



CLASS

  NAME 'Parcels'

  TEXT ([TXLname] * [PARCEL_ID])  #label

  LABEL

WRAP * #select character to wrap on

  END #label

END #class



I tried using precision in the query results, I have not tried it as part of

a label



[item name=NORTHING precision=2]

















Mark Volz

GIS Specialist

Lyon County, MN

(507) 532-8218

-Original Message-

From: mapserver-users-boun...@lists.osgeo.org

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

mapserver-users-requ...@lists.osgeo.org

Sent: Thursday, March 26, 2009 11:02 AM

To: mapserver-users@lists.osgeo.org

Subject: mapserver-users Digest, Vol 14, Issue 80



Send mapserver-users mailing list submissions to

  mapserver-users@lists.osgeo.org



To subscribe or unsubscribe via the World Wide Web, visit

  http://lists.osgeo.org/mailman/listinfo/mapserver-users

or, via email, send a message with subject or body 'help' to

  mapserver-users-requ...@lists.osgeo.org



You can reach the person managing the list at

  mapserver-users-ow...@lists.osgeo.org



When replying, please edit your Subject line so it is more specific

than Re: Contents of mapserver-users digest...





Today's Topics:



   1. RE: Labeling (Jay Kapalczynski)





--



Message: 1

Date: Thu, 26 Mar 2009 10:57:39 -0500

From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us

Subject: RE: [mapserver-users] Labeling

To: 'Fawcett, David' david.fawc...@state.mn.us,

  mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org

Message-ID:



d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us



Content-Type: text/plain; charset=us-ascii



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

RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
Fantasticworks...

one last quick question..



Can I add actual text...



THANKS A MILLIONVERY APPRECIATED...





CODE:

TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total 
Value:'EMV_TOTAL_])  #label



RESULT:

Land Value: $45000

Building Value: $25

Total Value: $295000







-Original Message-
From: Steve Lime [mailto:steve.l...@dnr.state.mn.us]
Sent: Thursday, March 26, 2009 2:26 PM
To: Jay Kapalczynski; 'Mark Volz'; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] RE: Labeling issue mutli lines and precision



Jay, the spaces in your TEXT expression are preserved, try removing them.



Steve



 On 3/26/2009 at 2:00 PM, in message

d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay

Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:

 This works . BUT???







 For some reason the 2nd and 3rd line seem indented a bit







 Result:



 1982



   19961001



   $ 250854







 Do you know what could be causing this indent?







 This is my Code:







LAYER # Maple Grove Parcels



NAME Parcel_Labels



DATA './parcels.shp'



STATUS DEFAULT



TYPE annotation



MAXSCALE 2000



MINSCALE 100







   LABELCACHE ON







   CLASS



  TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1])

 #label



LABEL



   COLOR 0 0 0



   OUTLINECOLOR 255 255 128



   WRAP * #select character to wrap on



END #label



   END #class



 END # Maple Grove Parcels















 PRECISION:



 As for the Precision I have also done that on the query resultsdont

 really know if or how I can use that in the Labelingfor now I just

 converted the test data.  But in a real world setting I am not going to be

 able to do that.  I will be reading live...



 If I have to I can created another database that has links and convert it

 therebut would rather bypass all that additional work...







 THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED



 THANKS MARK











 -Original Message-

 From: mapserver-users-boun...@lists.osgeo.org

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

 Sent: Thursday, March 26, 2009 1:30 PM

 To: mapserver-users@lists.osgeo.org

 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision







 In response to Jay's Labeling question:











 I have multi line / field labels working:







 In this example I am stringing together both the name and the parcel id as a



 label, then splitting the label into two lines







 CLASS



   NAME 'Parcels'



   TEXT ([TXLname] * [PARCEL_ID])  #label



   LABEL



 WRAP * #select character to wrap on



   END #label



 END #class







 I tried using precision in the query results, I have not tried it as part of



 a label







 [item name=NORTHING precision=2]



































 Mark Volz



 GIS Specialist



 Lyon County, MN



 (507) 532-8218



 -Original Message-



 From: mapserver-users-boun...@lists.osgeo.org



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



 mapserver-users-requ...@lists.osgeo.org



 Sent: Thursday, March 26, 2009 11:02 AM



 To: mapserver-users@lists.osgeo.org



 Subject: mapserver-users Digest, Vol 14, Issue 80







 Send mapserver-users mailing list submissions to



   mapserver-users@lists.osgeo.org







 To subscribe or unsubscribe via the World Wide Web, visit



   http://lists.osgeo.org/mailman/listinfo/mapserver-users



 or, via email, send a message with subject or body 'help' to



   mapserver-users-requ...@lists.osgeo.org







 You can reach the person managing the list at



   mapserver-users-ow...@lists.osgeo.org







 When replying, please edit your Subject line so it is more specific



 than Re: Contents of mapserver-users digest...











 Today's Topics:







1. RE: Labeling (Jay Kapalczynski)











 --







 Message: 1



 Date: Thu, 26 Mar 2009 10:57:39 -0500



 From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us



 Subject: RE: [mapserver-users] Labeling



 To: 'Fawcett, David' david.fawc...@state.mn.us,



   mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org



 Message-ID:







 d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us







 Content-Type: text/plain; charset=us-ascii







 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

RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Steve Lime
Yup, but the text goes outside the column references, e.g. Land Value: 
[EMV_LAND_].

Steve

 On 3/26/2009 at 2:33 PM, in message
d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay
Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:
 Fantasticworks...
 
 one last quick question..
 
 
 
 Can I add actual text...
 
 
 
 THANKS A MILLIONVERY APPRECIATED...
 
 
 
 
 
 CODE:
 
 TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total 
 Value:'EMV_TOTAL_])  #label
 
 
 
 RESULT:
 
 Land Value: $45000
 
 Building Value: $25
 
 Total Value: $295000
 
 
 
 
 
 
 
 -Original Message-
 From: Steve Lime [mailto:steve.l...@dnr.state.mn.us] 
 Sent: Thursday, March 26, 2009 2:26 PM
 To: Jay Kapalczynski; 'Mark Volz'; mapserver-users@lists.osgeo.org 
 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision
 
 
 
 Jay, the spaces in your TEXT expression are preserved, try removing them.
 
 
 
 Steve
 
 
 
 On 3/26/2009 at 2:00 PM, in message
 
 d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay
 
 Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:
 
 This works . BUT???
 

 

 

 
 For some reason the 2nd and 3rd line seem indented a bit
 

 

 

 
 Result:
 

 
 1982
 

 
   19961001
 

 
   $ 250854
 

 

 

 
 Do you know what could be causing this indent?
 

 

 

 
 This is my Code:
 

 

 

 
LAYER # Maple Grove Parcels
 

 
NAME Parcel_Labels
 

 
DATA './parcels.shp'
 

 
STATUS DEFAULT
 

 
TYPE annotation
 

 
MAXSCALE 2000
 

 
MINSCALE 100
 

 

 

 
   LABELCACHE ON
 

 

 

 
   CLASS
 

 
  TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1])
 
 #label
 

 
LABEL
 

 
   COLOR 0 0 0
 

 
   OUTLINECOLOR 255 255 128
 

 
   WRAP * #select character to wrap on
 

 
END #label
 

 
   END #class
 

 
 END # Maple Grove Parcels
 

 

 

 

 

 

 

 
 PRECISION:
 

 
 As for the Precision I have also done that on the query resultsdont
 
 really know if or how I can use that in the Labelingfor now I just
 
 converted the test data.  But in a real world setting I am not going to be
 
 able to do that.  I will be reading live...
 

 
 If I have to I can created another database that has links and convert it
 
 therebut would rather bypass all that additional work...
 

 

 

 
 THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED
 

 
 THANKS MARK
 

 

 

 

 

 
 -Original Message-
 
 From: mapserver-users-boun...@lists.osgeo.org 
 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz
 
 Sent: Thursday, March 26, 2009 1:30 PM
 
 To: mapserver-users@lists.osgeo.org 
 
 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision
 

 

 

 
 In response to Jay's Labeling question:
 

 

 

 

 

 
 I have multi line / field labels working:
 

 

 

 
 In this example I am stringing together both the name and the parcel id as a
 

 
 label, then splitting the label into two lines
 

 

 

 
 CLASS
 

 
   NAME 'Parcels'
 

 
   TEXT ([TXLname] * [PARCEL_ID])  #label
 

 
   LABEL
 

 
 WRAP * #select character to wrap on
 

 
   END #label
 

 
 END #class
 

 

 

 
 I tried using precision in the query results, I have not tried it as part of
 

 
 a label
 

 

 

 
 [item name=NORTHING precision=2]
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 Mark Volz
 

 
 GIS Specialist
 

 
 Lyon County, MN
 

 
 (507) 532-8218
 

 
 -Original Message-
 

 
 From: mapserver-users-boun...@lists.osgeo.org 
 

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

 
 mapserver-users-requ...@lists.osgeo.org 
 

 
 Sent: Thursday, March 26, 2009 11:02 AM
 

 
 To: mapserver-users@lists.osgeo.org 
 

 
 Subject: mapserver-users Digest, Vol 14, Issue 80
 

 

 

 
 Send mapserver-users mailing list submissions to
 

 
   mapserver-users@lists.osgeo.org 
 

 

 

 
 To subscribe or unsubscribe via the World Wide Web, visit
 

 
   http://lists.osgeo.org/mailman/listinfo/mapserver-users 
 

 
 or, via email, send a message with subject or body 'help' to
 

 
   mapserver-users-requ...@lists.osgeo.org 
 

 

 

 
 You can reach the person managing the list at
 

 
   mapserver-users-ow...@lists.osgeo.org 
 

 

 

 
 When replying, please edit your Subject line so it is more specific
 

 
 than Re: Contents of mapserver-users digest...
 

 

 

 

 

 
 Today's Topics:
 

 

 

 
1. RE: Labeling (Jay Kapalczynski)
 

 

 

 

 

 
 --
 

 

 

 
 Message: 1
 

 
 Date: Thu, 26 Mar 2009 10:57:39 -0500
 

 
 From: Jay Kapalczynski

RE: [mapserver-users] RE: Labeling issue mutli lines and precision

2009-03-26 Thread Jay Kapalczynski
GOT IT

TEXT (HI 
[EMV_LAND_]*[EMV_BLDG_]*[EMV_TOTAL_])  #label

THANKS FOR ALL YOU HELP

From: Jay Kapalczynski
Sent: Thursday, March 26, 2009 2:33 PM
To: 'Steve Lime'; 'Mark Volz'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Labeling issue mutli lines and precision


Fantasticworks...

one last quick question..



Can I add actual text...



THANKS A MILLIONVERY APPRECIATED...





CODE:

TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total 
Value:'EMV_TOTAL_])  #label



RESULT:

Land Value: $45000

Building Value: $25

Total Value: $295000







-Original Message-
From: Steve Lime [mailto:steve.l...@dnr.state.mn.us]
Sent: Thursday, March 26, 2009 2:26 PM
To: Jay Kapalczynski; 'Mark Volz'; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] RE: Labeling issue mutli lines and precision



Jay, the spaces in your TEXT expression are preserved, try removing them.



Steve



 On 3/26/2009 at 2:00 PM, in message

d7a5eac385604446ab1dd24bf4f5a9181e06947...@mg-mail.ci.maple-grove.mn.us, Jay

Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote:

 This works . BUT???







 For some reason the 2nd and 3rd line seem indented a bit







 Result:



 1982



   19961001



   $ 250854







 Do you know what could be causing this indent?







 This is my Code:







LAYER # Maple Grove Parcels



NAME Parcel_Labels



DATA './parcels.shp'



STATUS DEFAULT



TYPE annotation



MAXSCALE 2000



MINSCALE 100







   LABELCACHE ON







   CLASS



  TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1])

 #label



LABEL



   COLOR 0 0 0



   OUTLINECOLOR 255 255 128



   WRAP * #select character to wrap on



END #label



   END #class



 END # Maple Grove Parcels















 PRECISION:



 As for the Precision I have also done that on the query resultsdont

 really know if or how I can use that in the Labelingfor now I just

 converted the test data.  But in a real world setting I am not going to be

 able to do that.  I will be reading live...



 If I have to I can created another database that has links and convert it

 therebut would rather bypass all that additional work...







 THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED



 THANKS MARK











 -Original Message-

 From: mapserver-users-boun...@lists.osgeo.org

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

 Sent: Thursday, March 26, 2009 1:30 PM

 To: mapserver-users@lists.osgeo.org

 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision







 In response to Jay's Labeling question:











 I have multi line / field labels working:







 In this example I am stringing together both the name and the parcel id as a



 label, then splitting the label into two lines







 CLASS



   NAME 'Parcels'



   TEXT ([TXLname] * [PARCEL_ID])  #label



   LABEL



 WRAP * #select character to wrap on



   END #label



 END #class







 I tried using precision in the query results, I have not tried it as part of



 a label







 [item name=NORTHING precision=2]



































 Mark Volz



 GIS Specialist



 Lyon County, MN



 (507) 532-8218



 -Original Message-



 From: mapserver-users-boun...@lists.osgeo.org



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



 mapserver-users-requ...@lists.osgeo.org



 Sent: Thursday, March 26, 2009 11:02 AM



 To: mapserver-users@lists.osgeo.org



 Subject: mapserver-users Digest, Vol 14, Issue 80







 Send mapserver-users mailing list submissions to



   mapserver-users@lists.osgeo.org







 To subscribe or unsubscribe via the World Wide Web, visit



   http://lists.osgeo.org/mailman/listinfo/mapserver-users



 or, via email, send a message with subject or body 'help' to



   mapserver-users-requ...@lists.osgeo.org







 You can reach the person managing the list at



   mapserver-users-ow...@lists.osgeo.org







 When replying, please edit your Subject line so it is more specific



 than Re: Contents of mapserver-users digest...











 Today's Topics:







1. RE: Labeling (Jay Kapalczynski)











 --







 Message: 1



 Date: Thu, 26 Mar 2009 10:57:39 -0500



 From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us



 Subject: RE: [mapserver-users] Labeling



 To: 'Fawcett, David' david.fawc...@state.mn.us,



   mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org

Re: [mapserver-users] RE: Labeling

2008-08-06 Thread Steve Lime
From your example I can see that your ANGLE parameter is in the wrong object 
it should be in the label object
to rotate the text. As is you should be throwing parsing errors. the item 
storing the angle need not be numeric although the values must represent 
numbers upon conversion.

Steve

 Jay Kapalczynski [EMAIL PROTECTED] 08/06/08 2:15 AM 
What I am trying to do is use annotation from a Geodatabase.  From what
I hear GeoMoose / Map Server will not read it.

I converted the Annotation Feature Class to a Point.

Then created a Polygon from the Annotation Feature Classes, pointing to
the Point Feature class for the Attributes (label field, degree field)

I then read the Polygons into GeoMoose and label on the field and Angle
the text by Angle' Field.

The ANGLE call to Map Server dosent seem to work in this case

Any thoughts?

From: Jay Kapalczynski 
Sent: Tuesday, August 05, 2008 2:48 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: Labeling

 

Don't know if I have to correct location.

 

I have been successful labeling street centerlines using the ANGLE
FOLLOW in the .map File


This is being performed on a Shapefile Line feature

 

I also have a Polygon Feature that has a field that I am trying to
labelonce again I need the text to follow the polygon 

As you can see from the image the road names a following properly, but
the labels for the polygons are not following...

I tried the ANGLE FOLLOW on the Polygon and It will not draw..

I tried ANGLE [Angle] with Angle being a field name that holds Degree
values (ex 270) does the field have to be numeric?

 

 

Is there some other syntax that I have to put in the map file that will
force the text to follow the Polygon?

 

THANKS

 

 

 

 

STREET MAP FILE

 

LAYER # Maple Grove Streets Name

NAME Streets_Labels

DATA './GEOCODED_CENTERLINES2.shp'

STATUS DEFAULT

TYPE annotation

MAXSCALE 6000

MINSCALE 100

LABELITEM 'STREET_NAM'

 

LABELCACHE ON

 CLASS

   COLOR -1 -1 -1

   LABEL

TYPE TRUETYPE

FONT vera_sans

ANGLE FOLLOW

POSITION AUTO

MAXSIZE 10

SIZE 8

MINSIZE 8

ANTIALIAS TRUE

COLOR 0 0 0

OUTLINECOLOR 255 255 192

BUFFER 2

   END

 END

  END # Maple Grove Streets Name

 

PARCELS MAP FILE THAT DOES NOT WORK

 

LAYER # Maple Grove Parcels

NAME Parcel_Labels

DATA './parcels.shp'

STATUS DEFAULT

TYPE annotation

MAXSCALE 2500

MINSCALE 100

LABELITEM 'TextString'

 

   ANGLE [Angle]

   POSITION AUTO

   PARTIALS FALSE



LABELCACHE ON

 CLASS

   COLOR -1 -1 -1

   LABEL

TYPE TRUETYPE

FONT vera_sans

MAXSIZE 8

SIZE 8

MINSIZE 2

#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] RE: Labeling

2008-08-06 Thread Jay Kapalczynski
That was itmoved the lines inside the LABEL CLASS

Credit due to the GeoMoose Forum...(Dan)

But I do thank you all for your help...it is very appreciated.

Especially for Green coders like myself...

 

Thanks again Steve for your response

 

CLASS

  LABEL 

PUT LINES HERE

  END

END 

 

 

 

-Original Message-
From: Steve Lime [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 9:42 AM
To: Jay Kapalczynski; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Labeling

 

From your example I can see that your ANGLE parameter is in the wrong
object it should be in the label object

to rotate the text. As is you should be throwing parsing errors. the
item storing the angle need not be numeric although the values must
represent numbers upon conversion.

 

Steve

 

 Jay Kapalczynski [EMAIL PROTECTED] 08/06/08 2:15
AM 

What I am trying to do is use annotation from a Geodatabase.  From what

I hear GeoMoose / Map Server will not read it.

 

I converted the Annotation Feature Class to a Point.

 

Then created a Polygon from the Annotation Feature Classes, pointing to

the Point Feature class for the Attributes (label field, degree field)

 

I then read the Polygons into GeoMoose and label on the field and Angle

the text by Angle' Field.

 

The ANGLE call to Map Server dosent seem to work in this case

 

Any thoughts?

 

From: Jay Kapalczynski 

Sent: Tuesday, August 05, 2008 2:48 PM

To: 'mapserver-users@lists.osgeo.org'

Subject: Labeling

 

 

 

Don't know if I have to correct location.

 

 

 

I have been successful labeling street centerlines using the ANGLE

FOLLOW in the .map File

 

 

This is being performed on a Shapefile Line feature

 

 

 

I also have a Polygon Feature that has a field that I am trying to

labelonce again I need the text to follow the polygon 

 

As you can see from the image the road names a following properly, but

the labels for the polygons are not following...

 

I tried the ANGLE FOLLOW on the Polygon and It will not draw..

 

I tried ANGLE [Angle] with Angle being a field name that holds Degree

values (ex 270) does the field have to be numeric?

 

 

 

 

 

Is there some other syntax that I have to put in the map file that will

force the text to follow the Polygon?

 

 

 

THANKS

 

 

 

 

 

 

 

 

 

STREET MAP FILE

 

 

 

LAYER # Maple Grove Streets Name

 

NAME Streets_Labels

 

DATA './GEOCODED_CENTERLINES2.shp'

 

STATUS DEFAULT

 

TYPE annotation

 

MAXSCALE 6000

 

MINSCALE 100

 

LABELITEM 'STREET_NAM'

 

 

 

LABELCACHE ON

 

 CLASS

 

   COLOR -1 -1 -1

 

   LABEL

 

TYPE TRUETYPE

 

FONT vera_sans

 

ANGLE FOLLOW

 

POSITION AUTO

 

MAXSIZE 10

 

SIZE 8

 

MINSIZE 8

 

ANTIALIAS TRUE

 

COLOR 0 0 0

 

OUTLINECOLOR 255 255 192

 

BUFFER 2

 

   END

 

 END

 

  END # Maple Grove Streets Name

 

 

 

PARCELS MAP FILE THAT DOES NOT WORK

 

 

 

LAYER # Maple Grove Parcels

 

NAME Parcel_Labels

 

DATA './parcels.shp'

 

STATUS DEFAULT

 

TYPE annotation

 

MAXSCALE 2500

 

MINSCALE 100

 

LABELITEM 'TextString'

 

 

 

   ANGLE [Angle]

 

   POSITION AUTO

 

   PARTIALS FALSE

 



 

LABELCACHE ON

 

 CLASS

 

   COLOR -1 -1 -1

 

   LABEL

 

TYPE TRUETYPE

 

FONT vera_sans

 

MAXSIZE 8

 

SIZE 8

 

MINSIZE 2

 

#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