[Geomoose-users] [Geomoose-developers] Labeling
Dan Little
danlittle at yahoo.com
Tue Aug 5 20:06:46 EDT 2008
Jay,
ANGLE [Angle]
Needs to be *inside* of the LABEL ... END tags.
Also, you might need to use the all upper case version of "ANGLE"... IE
LAYER
CLASS
LABEL
ANGLE [ANGLE]
END
END
END
----- Original Message ----
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: Dan Little <danlittle at yahoo.com>
Cc: geomoose-users at lists.sourceforge.net; geomoose-developers at lists.sourceforge.net
Sent: Tuesday, August 5, 2008 4:35:27 PM
Subject: RE: [Geomoose-users] [Geomoose-developers] Labeling
Sorry bout that…Just wanted to
explain the process I did to get to the final Shapefile being used for
labeling…just in case there was something I did that is causing the error…
I tried ANGLEITEM….then went
here and used
ANGLE [double|auto|follow|attribute]
http://mapserver.gis.umn.edu/docs/reference/mapfile/label
No luck either way….there has to
be something that I am doing wrong…I my “Angle“ field is Double and I have
values from 0 to 360
Thoughts?
LAYER # Maple
Grove Parcels
NAME Parcel_Labels
DATA './parcels.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 2500
MINSCALE 100
LABELITEM 'TextString'
ANGLE [Angle]
# AND ALSO TRIED
# ANGLEITEM 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
From:Dan Little
[mailto:danlittle at yahoo.com]
Sent: Tuesday, August 05, 2008 3:46 PM
To: Jay Kapalczynski; geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: Re: [Geomoose-users] [Geomoose-developers] Labeling
Hey
Jay,
This is a repeatish post, but try looking up "ANGLEITEM"
IIRC, it's ANGLEITEM fieldname
-Duck
----- Original Message ----
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>;
geomoose-users at lists.sourceforge.net; geomoose-developers at lists.sourceforge.net
Sent: Tuesday, August 5, 2008 3:33:10 PM
Subject: Re: [Geomoose-users] [Geomoose-developers] Labeling
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 3:19 PM
To: Jay Kapalczynski; geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: RE: [Geomoose-developers] Labeling
I have also tried Angle [Angle]
where “Angle” is the field name that holds the Degrees (ex 270)…still errors
out
Thoughts?
Can I even do what I am trying
to do?
From:geomoose-developers-bounces at lists.sourceforge.net
[mailto:geomoose-developers-bounces at lists.sourceforge.net] On Behalf Of Jay
Kapalczynski
Sent: Tuesday, August 05, 2008 1:36 PM
To: geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: [Geomoose-developers] Labeling
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 label….once 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..
Is there some other syntax that I have to put in the map
file that will force the text to follow the Polygon?
THANKS
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
-------------- next part --------------
Skipped content of type multipart/related
More information about the Geomoose-users
mailing list