This is my ovf file: Name is the field I want to label on...
Anyone have any thoughts?
<OGRVRTDataSource>
<OGRVRTLayer name="Coordinatedata">
<SrcDataSource>MYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates</SrcDataSource>
<SrcSQL>SELECT X,Y,Name FROM coordinates</SrcSQL>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns"
x="X" y="Y"/>
</OGRVRTLayer>
</OGRVRTDataSource>
From: Jay Kapalczynski
Sent: Thursday, April 16, 2009 12:02 PM
To: [email protected]
Subject: Labeling via OGR, MySQL table
I am plotting a few points via an OVF file and MySQL table
The points show up fine...
As soon as I try to label from the MySQL table the Star points disappear...
I imagine I have some syntax issues or missing something in the map file (See
below)
Any thoughts?
THANKS
HERE ARE THE POINTS
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
CLASS
#NAME "ID"
STYLE
SYMBOL "star"
SIZE 15
COLOR 238 0 0
END
END
END
CANT GET THE LABELS TO SHOW UP
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'Name'
LABELCACHE ON
CLASS
LABEL
COLOR 0 0 0
SIZE 7
END
END
END
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users