[MS4W-Users] Problem using a feature attribute from an OGR file
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Mar 17 09:56:36 EDT 2017
Hi Allan,
Using MS4W 3.2.1 I have successfully displayed the VALDCO values of the
DEPCNT layer, from NOAA's "US1GC09M" file, as labels along its lines.
Here is the resulting map image: http://pasteboard.co/Kwr9Tvr1Q.png And
here is the mapfile LAYER:
MAP
NAME "s57"
STATUS ON
SIZE 400 300
SYMBOLSET "../etc/symbols.txt"
EXTENT -98.150000 17.738333 -76.083333 33.633333
UNITS DD
SHAPEPATH "./data"
IMAGECOLOR 255 255 255
FONTSET "../etc/fonts.txt"
LAYER
NAME "DEPCNT_US1GC09M"
STATUS ON
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "US1GC09M.000"
DATA "DEPCNT"
LABELITEM "VALDCO"
CLASS
NAME 'DEPCNT'
STYLE
WIDTH 0.91
COLOR 0 170 255
END #style
LABEL
PRIORITY 10
SIZE 10
COLOR 255 0 0
ANGLE FOLLOW
POSITION AUTO
ANTIALIAS TRUE
PARTIALS FALSE
MINFEATURESIZE 5
MINDISTANCE 10
BUFFER 5
REPEATDISTANCE 50
MAXOVERLAPANGLE 30
END #label
END #class
END #layer DEPCNT_US1GC09M
END # Map File
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2017-03-17 9:31 AM, Gillis, Allan via MS4W-Users wrote:
> Hi Jeff,
>
> That one is working, here's the original one that I think should work but doesn't. You can see several things I've tried with the TEXT of the LABEL definition...
>
More information about the MS4W-Users
mailing list