Opened 17 years ago

Closed 17 years ago

#1761 closed enhancement (fixed)

CSV driver: Date, Time, DateTime added - patch

Reported by: Markus Neteler Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.4.3
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: csv
Cc: warmerdam

Description

Frank,

I have extended the OGR-CSV driver to support also Date, Time, DateTime via .csvt file.

cat RR_LOCID000140.csv
SOUID,DATE,RR,Q_RR
...
916090,2007-05-31,0,0

cat RR_LOCID000140.csvt
"Integer","Date","Real","Integer"

ogrinfo  RR_LOCID000140.csv  RR_LOCID000140
...
OGRFeature(RR_LOCID000140):20605
  SOUID (Integer) = 916090
  DATE (Date) = 2007/05/31
  RR (Real) = 0
  Q_RR (Integer) = 0

Works. Also tested with db.in.ogr of GRASS (which calls v.in.ogr).

The rather trivial patch attached including extended documentation.

Best, Markus

Attachments (1)

ogr_csv_datetime.patch (1.9 KB ) - added by Markus Neteler 17 years ago.
CSV driver extension for Date,Time,DateTime

Download all attachments as: .zip

Change History (8)

by Markus Neteler, 17 years ago

Attachment: ogr_csv_datetime.patch added

CSV driver extension for Date,Time,DateTime

comment:1 by warmerdam, 17 years ago

Cc: warmerdam added
Component: defaultOGR_SF
Keywords: csv added
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot

Mateusz,

Could you integrate this in trunk, and add some appropriate test suite tests for the new features in gdalautotest/ogr/ogr_csv.py?

comment:2 by Markus Neteler, 17 years ago

Hi Mateusz,

would you mind to apply this path? Sorry for bothering... If you need any test data, please let me know.

thanks, Markus

comment:3 by Mateusz Łoskot, 17 years ago

Status: newassigned

Markus, sorry you've been waiting for the fix so long. This is to be tested and fixed today.

comment:4 by Mateusz Łoskot, 17 years ago

Milestone: 1.5.01.4.3

comment:5 by Mateusz Łoskot, 17 years ago

The patch has been applied to the SVN trunk (r12174).

comment:6 by Mateusz Łoskot, 17 years ago

Also backported to branches/1.4 targeting 1.4.3 release (r12175)

comment:7 by Markus Neteler, 17 years ago

Resolution: fixed
Status: assignedclosed

Closing & thanks! Markus

Note: See TracTickets for help on using tickets.