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 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
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
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
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
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