I'm importing some MapInfo tab files into a PostgreSQL database running the following command in FWTools Shell:
ogr2ogr -f "PostgreSQL" PG:"dbname='' host='' port='5432' user='' password=''" -lco SCHEMA= -lco PRECISION=NO -nlt GEOMETRY -t_srs EPSG:25832 C:\\file.tabSome of the files run through just fine, but some of the files have date values like that 0000/00/00 0:00:00 which ogr2ogr, justifiably, cannot interpret.
ERROR 1: INSERT command for new feature failed.ERROR: date/time field value out of range: "0000/00/00 0:00:00"LINE 1: ...ning', 'Tilslutning af stik', 'I brug/drift', '', '0000/00/0...Is there a flag which will make ogr2ogr ignore those, and just insert a null?
Thanks
أكثر...
ogr2ogr -f "PostgreSQL" PG:"dbname='' host='' port='5432' user='' password=''" -lco SCHEMA= -lco PRECISION=NO -nlt GEOMETRY -t_srs EPSG:25832 C:\\file.tabSome of the files run through just fine, but some of the files have date values like that 0000/00/00 0:00:00 which ogr2ogr, justifiably, cannot interpret.
ERROR 1: INSERT command for new feature failed.ERROR: date/time field value out of range: "0000/00/00 0:00:00"LINE 1: ...ning', 'Tilslutning af stik', 'I brug/drift', '', '0000/00/0...Is there a flag which will make ogr2ogr ignore those, and just insert a null?
Thanks
أكثر...