Re: [mapserver-users] RE OGR csv - no field names

2016-04-26 Thread Ian Walberg
@lists.osgeo.org Subject: Re: [mapserver-users] RE OGR csv - no field names try to get it through your mapfile! base on what I read here http://mapserver.org/input/vector/ogr.html#using-ogr-data-sources-in-the-map-file, you'll supposed to be able to add an SQL in DATA tag for any OGR data source

Re: [mapserver-users] RE OGR csv - no field names

2016-04-26 Thread Simon Mercier
record. Thanks Ian -Original Message- From: Simon Mercier [mailto:smerc...@mapgears.com] Sent: Tuesday, April 26, 2016 8:01 AM To: Ian Walberg <ian.walb...@airborne.aero>; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE OGR csv - no field names Ian Try with FID f

Re: [mapserver-users] RE OGR csv - no field names

2016-04-26 Thread Ian Walberg
<ian.walb...@airborne.aero>; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE OGR csv - no field names Ian Try with FID field, OGR generate this ID for you. But you should try use your own ID field for consistency between version of your data (if needed). I tested with my dem

Re: [mapserver-users] RE OGR csv - no field names

2016-04-26 Thread Simon Mercier
Next is there any way of getting the row ID as part of the data passed to mapserver? We are planning to serve this data as a WFS layer. Thanks Ian -Original Message- From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, April 25, 2

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Ian Walberg
] On Behalf Of Jeff McKenna Sent: Monday, April 25, 2016 3:03 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE OGR csv - no field names On 2016-04-25 6:49 PM, Simon Mercier wrote: > really not sure CSVT file is supported by ogr, but you can easily > define field type

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Jeff McKenna
On 2016-04-25 6:49 PM, Simon Mercier wrote: really not sure CSVT file is supported by ogr, but you can easily define field type in VRT Simon is right, very nice, specifying the field name to classify in the vrt works, for a csv without field names:

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Jeff McKenna
ne.aero> *Cc:* mapserver-users@lists.osgeo.org; mapserver-users <mapserver-users-boun...@lists.osgeo.org> *Subject:* Re: [mapserver-users] RE OGR csv - no field names why not use a vrt file instead! http://www.gdal.org/drv_vrt.html precipitation.csv wkbPoint

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Simon Mercier
-users <mapserver-users-boun...@lists.osgeo.org> *Subject:* Re: [mapserver-users] RE OGR csv - no field names why not use a vrt file instead! http://www.gdal.org/drv_vrt.html precipitation.csv wkbPoint EPSG:4326 On 16-04-25 08:01 AM, steve.tout...

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Ian Walberg
AM To: steve.tout...@inspq.qc.ca; Ian Walberg <ian.walb...@airborne.aero> Cc: mapserver-users@lists.osgeo.org; mapserver-users <mapserver-users-boun...@lists.osgeo.org> Subject: Re: [mapserver-users] RE OGR csv - no field names why not use a vrt file instead! http://www.gdal.org/

Re: [mapserver-users] RE OGR csv - no field names

2016-04-25 Thread Simon Mercier
why not use a vrt file instead! http://www.gdal.org/drv_vrt.html precipitation.csv wkbPoint EPSG:4326 On 16-04-25 08:01 AM, steve.tout...@inspq.qc.ca wrote: I don't know why LABELITEM 'filed_3' would not work in your case You can try to