<font size=2 face="sans-serif">I don't know why </font><tt><font size=2>LABELITEM
'filed_3' would not work in your case</font></tt>
<br>
<br><font size=2 face="sans-serif">You can try to specify column names
by using a  .csvt file</font>
<br><a href=http://www.gdal.org/drv_csv.html><font size=2 color=blue face="sans-serif">http://www.gdal.org/drv_csv.html</font></a>
<br>
<br><font size=2 face="sans-serif">Example: </font><a href="https://anitagraser.com/2011/03/07/how-to-specify-data-types-of-csv-columns-for-use-in-qgis/"><font size=2 color=blue face="sans-serif">https://anitagraser.com/2011/03/07/how-to-specify-data-types-of-csv-columns-for-use-in-qgis/</font></a>
<br>
<br>
<br>
<p>
<br>
<br>
<br>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=40% style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif"><b>Ian
Walberg <ian.walberg@airborne.aero>@lists.osgeo.org</b> </font>
<br><font size=1 face="sans-serif">Envoyé par : "mapserver-users"
<mapserver-users-bounces@lists.osgeo.org></font>
<p><font size=1 face="sans-serif">2016-04-23 22:50</font>
<td width=59% style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=21>
<td width=57 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align=right><font size=1 face="sans-serif">A</font></div>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">"mapserver-users@lists.osgeo.org"
<mapserver-users@lists.osgeo.org></font>
<tr valign=top height=21>
<td width=57 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<tr valign=top height=21>
<td width=57 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">[mapserver-users]
OGR csv - no field names</font></table>
<br>
<table width=393 style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=57 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<td width=336 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Folks,<br>
<br>
Can a csv file with no field names as the first row be used as an OGR source?<br>
<br>
GDAL creates dummy field names, are these passed to mapserver?<br>
<br>
OGRFeature(USA-Hilton):652<br>
  field_1 (String) = -74.16958<br>
  field_2 (String) =  40.73526<br>
  field_3 (String) =  Penn Station<br>
<br>
What do we need in the layer to make this work?<br>
<br>
LABELITEM 'name' - this throws an error, 'field_3' does not seem to work
either.<br>
CONNECTIONTYPE OGR<br>
CONNECTION 'Stations.csv'<br>
<br>
Thanks<br>
<br>
Ian<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
</font></tt><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>http://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a>
<br>
<br>
<br>