[gdal-dev] Mapinfo TAB Files and DateTime

Dale Harris dharris at regisresources.com
Wed Nov 5 00:39:32 EST 2008


I am using GDAL 1.6 Beta with VB.NET (through ogr_csharp) to read a TAB
file with a Date or a Date Time field and I can't use the following to
get the date values (they are all 0):

 

.GetFeature(x).GetFieldAsDateTime(33, myyear, mymonth, myday, myhour,
mymin, mysec, mytz)

 

However if I use:

 

.GetFeature(x).GetFieldAsString(33)

 

I get "2008102600000".

 

Also if I try to create a new file with a datetime field it builds ok
but the field has no values assigned to it.

 

Is this due to the csharp wrapper not yet supporting datetime fields in
Mapinfo?

 

Cheers,

Dale Harris
GIS Manager

Regis Resources
Ground Floor 
62 Colin Street
West Perth WA 6005
Direct Line (08) 9442 2207
Fax: (08) 9442 2290
Email: dharris at regisresources.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081105/3d19a857/attachment.html


More information about the gdal-dev mailing list