Opened 15 years ago
Last modified 15 years ago
#3016 assigned enhancement
Label alignment
Reported by: | blammo | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | label alignement |
Cc: |
Description
Label Alignment control (for lines) where separate polyline labels can be aligned vertically/horizontally for use as a map collar image, tic/labels/symbols that surround a map image vs being applied on top of the map itself. This ticket is for the label alignment specifically at this time.
The labeling by mapserver seems to jump around somewhat, probably based on whether there is a polyline vertice within the view or not and the amount of space available for placing the label in the output image. (Map grids are in many instances not rectangular and the map can also be rotated, so following the polyline for labeling is a must in this case).
See data attachment.
An example link aht demonstrates MapServers' varied label placement is here: http://pwultra5.ci.stpaul.mn.us/GILDA/collar_test/collar_01.html
The MAPFILE file follows:
MAP
NAME 'USNG' SIZE 800 650 STATUS ON ##IMAGECOLOR 254 254 254 ##EXTENT 540000 135000 600000 175000 EXTENT 593133.398829 170094.734526 593893.148973 170712.010326 UNITS FEET
FONTSET ./0000_00/MN_Line_Experiments/fonts/font.list SYMBOLSET ./0000_00/MN_Line_Experiments/symbols/symbol.list
TRANSPARENT TRUE IMAGETYPE PNG
LAYER
METADATA
"ows_title" "layer_0" "gml_include_items" "all"
END
NAME 'usng_l1'
DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS OFF TYPE LINE LABELITEM 'NORTHING' CLASS
COLOR 0 0 0 LABEL
TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 OFFSET -15 -1 ANGLE follow FORCE true
END
END
END
LAYER
METADATA
"ows_title" "layer_0" "gml_include_items" "all"
END
NAME 'usng_l2'
DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS OFF TYPE LINE LABELITEM 'NORTHING' CLASS
LABEL
TYPE TRUETYPE FONT bluehigh SIZE 15 COLOR 25 25 25 OUTLINECOLOR 255 255 254 FORCE true ANGLE follow
END
END
END
LAYER
METADATA
"ows_title" "layer_0" "gml_include_items" "all"
END
NAME 'usng_l3'
DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS OFF TYPE LINE LABELITEM 'NORTHING' CLASS
LABEL
TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 OFFSET 14 -1 ANGLE follow FORCE true
END
END MAXSCALE 5000000
END
END ## end Map