<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I'm guessing this is because the DBF format ESRI decided on for aspatial attribute data in shapefiles does not have an integer datatype <br><br>(sse: http://www.dbase.com/knowledgebase/int/db7_file_fmt.htm)<br><br>So an int field gets read into a generic numeric field in the DBF file, rather than an int.<br><br><br>Brent Wood<br><br><br>--- On <b>Thu, 11/25/10, Zoltan Szecsei <i>&lt;zoltans@geograph.co.za&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Zoltan Szecsei &lt;zoltans@geograph.co.za&gt;<br>Subject: [gdal-dev] Data types change converting from MID/MIF to SHP<br>To: "gdal-dev" &lt;gdal-dev@lists.osgeo.org&gt;<br>Date: Thursday, November 25, 2010, 1:04 AM<br><br><div class="plainMail">Hi,<br>Here's a strange one that hopefully can be overcome quickly.<br><br>I'd
 be grateful for any assistance with this problem.<br><br>Kind regards,<br>Zoltan<br><br><br><br>I have a MID/MIF file combination with:<br><br>COLUMNS 5<br>&nbsp; &nbsp; FEAT_TYPE_ integer (5)<br>&nbsp; &nbsp; GID integer (10)<br>&nbsp; &nbsp; ENTITY_NAM char (50)<br>&nbsp; &nbsp; GEOMETRY_T char (5)<br>&nbsp; &nbsp; AUD_MOD char (5)<br>DATA<br><br>yet as a SHP file, the two Integer fields become Real 11.0 - yes, both 11.0<br><br>I have used both QGis 1.5.0 and an old MapInfo Imutgui.exe to do this conversion, and I get the same results.<br><br><br>Typical MID file entries
 are:<br><br>391,,,LINE,A<br>391,7553476,32986740,LINE,E<br>391,,,LINE,A<br>391,,,LINE,A<br>402,,,LINE,A<br>391,,,LINE,A<br>391,7552723,33180873,LINE,E<br>391,7553846,33193702,LINE,E<br>398,,,LINE,A<br>402,,,LINE,A<br>402,,,LINE,A<br>391,,,LINE,A<br>402,,,LINE,A<br>402,,,LINE,A<br>391,,,LINE,A<br>391,,,LINE,A<br>391,,,LINE,A<br>398,8181664,#017:1968,LINE,E<br>391,7586152,40306383,LINE,E<br>391,7645575,33201757,LINE,E<br>391,7586151,40306441,LINE,E<br>391,7586003,40307075,LINE,E<br>399,8396096,#017:1784,LINE,E<br><br><br><br><br><br><br>-- <br>===========================================<br>Zoltan Szecsei PrGISc [PGP0031]<br>Geograph (Pty) Ltd.<br>P.O. Box 7, Muizenberg 7950, South Africa.<br><br>65 Main Road, Muizenberg 7945<br>Western Cape, South Africa.<br><br>34° 6'16.35"S 18°28'5.62"E<br><br>Tel: +27-21-7884897&nbsp; Mobile: +27-83-6004028<br>Fax: +27-86-6115323&nbsp;
 &nbsp;&nbsp;&nbsp;www.geograph.co.za<br>===========================================<br><br><br><br>-----<br>No virus found in this message.<br>Checked by AVG - www.avg.com<br>Version: 10.0.1170 / Virus Database: 426/3275 - Release Date: 11/23/10<br><br>_______________________________________________<br>gdal-dev mailing list<br><a ymailto="mailto:gdal-dev@lists.osgeo.org" href="/mc/compose?to=gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div></blockquote></td></tr></table>