[gdal-dev] OGR shapefile to MapInfo

Frank Warmerdam warmerdam at pobox.com
Sat Dec 6 08:24:41 EST 2008


Despite the hint provided in the error message, field type
9 is actually OFTDate.  So the problem is that your shapefile
has a date field, but the mapinfo code does not know how to
create this field type.

I am under the impression this has actually been fixed
very recently.  So if you are using a version other than
GDAL/OGR 1.6.0 (beta or RC) then consider upgrading.

If that still does not help, consider using the facilities
provided by RFC 21 to use SQL to cast the field to
a string (also only in GDAL 1.6 I believe).


Best regards,

On 12/4/08, nicholas.g.lawrence at mainroads.qld.gov.au
<nicholas.g.lawrence at mainroads.qld.gov.au> wrote:
> GDAL list,
> I have a shapefile "C:\DATA\asris_shp\QLD_COMBINEDSOILS_lyr.shp"
> that I want to convert into a mapinfo file
> 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
> ***********************************************************************
> 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.
> ***********************************************************************
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list