[mapserver-users] Re: Import of KML
kaipi
mapcollect at gmx.net
Fri Sep 2 05:06:10 PDT 2011
You can do that with EXPRESSION and ANGLE.
I am not sure if this works with KML - maybe you need to convert to
shapefile before (eg. with ogr2ogr).
LAYER
NAME WINDS
EXTENT -180 -90 180 90
TYPE POINT
CONNECTIONTYPE ogr
CONNECTION "C:/MapData/maps/KML/wind1.kml"
DATA "wind1"
CLASS
EXPRESSION ([ATTRIBUTE_FIELD] = 'windstyle') # only points with
attribute 'windstyle' will be rendered
NAME "windstyle"
STYLE
COLOR 32 32 128
SYMBOL "circle"
ANGLE [ROTATION] # if your points have an attribute field "ROTATION"
with an angle given in degrees the value will be used to rotate the symbol
SIZE 6
END
END
END
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Import-of-KML-tp6747216p6753628.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list