I don't know why LABELITEM 'filed_3' would not work in your case

You can try to specify column names by using a  .csvt file
http://www.gdal.org/drv_csv.html

Example: 
https://anitagraser.com/2011/03/07/how-to-specify-data-types-of-csv-columns-for-use-in-qgis/







Ian Walberg <ian.walb...@airborne.aero>@lists.osgeo.org 
Envoyé par : "mapserver-users" <mapserver-users-boun...@lists.osgeo.org>
2016-04-23 22:50

A
"mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org>
cc

Objet
[mapserver-users] OGR csv - no field names








Folks,

Can a csv file with no field names as the first row be used as an OGR 
source?

GDAL creates dummy field names, are these passed to mapserver?

OGRFeature(USA-Hilton):652
  field_1 (String) = -74.16958
  field_2 (String) =  40.73526
  field_3 (String) =  Penn Station

What do we need in the layer to make this work?

LABELITEM 'name' - this throws an error, 'field_3' does not seem to work 
either.
CONNECTIONTYPE OGR
CONNECTION 'Stations.csv'

Thanks

Ian
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to