[gdal-dev] OGR shapefile to MapInfo [Scanned]
nicholas.g.lawrence at mainroads.qld.gov.au
nicholas.g.lawrence at mainroads.qld.gov.au
Fri Dec 5 00:14:55 EST 2008
>> GDAL list,
>> I have a shapefile "C:\DATA\asris_shp\QLD_COMBINEDSOILS_lyr.shp"
>> that I want to convert into a mapinfo file
>> "C:\DATA\asris_mi\QLD_COMBINEDSOILS_lyr.TAB"
>> The command I used was;
>> ogr2ogr -f "MapInfo File" C:\DATA\asris_mi\QLD_COMBINEDSOILS_lyr.TAB
>> C:\DATA\asris_shp\QLD_COMBINEDSOILS_lyr.shp
>> The resulting error is;
>> ERROR 1: IMapInfoFile::CreateField() called with unsupported field type
>> 9.
>> Note that MapInfo files don't support list field types.
>> I don't know what has gone wrong.
>> All the fields in the shapefile are text and numeric (double)
>> Regards,
>> nick
> "Dale Harris" <dharris at regisresources.com> wrote on 05/12/2008 02:41:49
PM:
> I believe Field Type 9 is a date field. Pre v1.6 (soon to be released)
> there was no support for Date or Time fields when creating mapinfo files
> in gdal / ogr.
> Cheers
> Dale Harris
Dale,
I checked and yes, there is a date field.
Maybe I should convert the date field to a text field first?
nick
***********************************************************************
WARNING: This e-mail (including any attachments) may contain legally
privileged, confidential or private information and may be protected by
copyright. You may only use it if you are the person(s) it was intended
to be sent to and if you use it in an authorised way. No one is
allowed to use, review, alter, transmit, disclose, distribute, print
or copy this e-mail without appropriate authority.
If this e-mail was not intended for you and was sent to you by mistake,
please telephone or e-mail me immediately, destroy any hardcopies of
this e-mail and delete it and any copies of it from your computer
system. Any right which the sender may have under copyright law, and
any legal privilege and confidentiality attached to this e-mail is not
waived or destroyed by that mistake.
It is your responsibility to ensure that this e-mail does not contain
and is not affected by computer viruses, defects or interference by
third parties or replication problems (including incompatibility with
your computer system).
Opinions contained in this e-mail do not necessarily reflect the
opinions of the Queensland Department of Main Roads, Queensland
Transport or Maritime Safety Queensland, or endorsed organisations
utilising the same infrastructure.
***********************************************************************
More information about the gdal-dev
mailing list