[MAPSERVER-USERS] Displaying points & labels
fastturtle
beckjoh at KNOLOGY.NET
Fri May 30 18:14:52 PDT 2008
Hi!
I am also trying to displaying points. My points are also on a MySql
database table and I use OGR to display them on a map. I am able to map the
points and see the points in my web browser. But I really need to color
code the points by an attibute from one of the Mysql fields. How can I
alter my code to include in the map file the attribute data?
<OGRVRTDataSource>
<OGRVRTLayer name="data">
<SrcDataSource>MYSQL:test,user=user,password=password,port=3306,tables=data1</SrcDataSource>
<SrcSQL>SELECT * FROM data1</SrcSQL>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns" x="Long" y="Lat"/>
</OGRVRTLayer>
</OGRVRTDataSource>
#
# Start of layer definitions
#
LAYER
NAME "MyAqui"
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION "aquidata.ovf"
DATA "data"
CLASS
NAME "MyClass"
STYLE
SYMBOL 'circle'
SIZE 15
COLOR 0 255 0
END
END
END
Thanks
_________________________________________________________________
Créez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage
gratuit !
http://www.windowslive.fr/skydrive/_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
View this message in context: http://www.nabble.com/Displaying-points---labels-tp16765743p17551004.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list