<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>I 
figured out that the .dat file was being created with string fields of 256 
characters</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>by 
default.&nbsp; I created mid/mif files and was able to pare down the field 
width</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>to 
appropriate values.&nbsp; I generated the tab file set from the mid/mid files, 
and the</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>file 
size is reasonable.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>My 
question is, is there a way to skip the mid/mif creation?&nbsp; Can I tell 
ogr2ogr </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>what 
the field width of the string fields are via an XML Schema or parameter file 
or</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006>something like that?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>I 
tried adding a &lt;Length&gt; or a &lt;Width&gt; element in the .gfs file and 
running the</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006>command again, but it seemed to ignore the element (it 
was just a guess after all!).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>I 
looked for the .gfs file creation or reading in the source code, but couldn't 
locate</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006>it.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=341022213-17052006>Thanks 
for any suggestions.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=341022213-17052006></SPAN></FONT>&nbsp;</DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-ca><FONT face=Arial size=2>Peter Rushforth</FONT></SPAN> 
<BR><SPAN lang=en-ca><FONT face=Arial size=2>Geography Division</FONT></SPAN> 
<BR><SPAN lang=en-ca><FONT face=Arial size=2>Statistics Canada</FONT></SPAN> 
<BR><SPAN lang=en-ca><FONT face=Arial size=2>Ottawa Ontario</FONT></SPAN> 
<BR><SPAN lang=en-ca><FONT face=Arial size=2>K1A 0T6</FONT></SPAN> </P>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  gdal-dev-bounces@lists.maptools.org 
  [mailto:gdal-dev-bounces@lists.maptools.org] <B>On Behalf Of 
  </B>Peter.Rushforth@stcinet.statcan.ca<BR><B>Sent:</B> May 16, 2006 2:18 
  PM<BR><B>To:</B> gdal-dev@lists.maptools.org<BR><B>Subject:</B> [Gdal-dev] 
  file size balloons when converting gml to tab,shp with 
  ogr2ogr<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
  <P><FONT face=Arial size=2>Hi,</FONT> </P>
  <P><FONT face=Arial size=2>I've been experimenting with converting GML 
  documents to mapinfo tab and esri shp</FONT> <BR><FONT face=Arial 
  size=2>formats.&nbsp; I have the same files previously created with commercial 
  software with</FONT> <BR><FONT face=Arial size=2>exactly the same record 
  layouts.&nbsp; The files I've created with ogr2ogr seem to be up</FONT> 
  <BR><FONT face=Arial size=2>to 5 to 10 times larger than the same file (and 
  format) created with the commercial software.</FONT> </P>
  <P><FONT face=Arial size=2>When you view the files, they appear identical, 
  line for line, attribute for attribute.</FONT> </P>
  <P><FONT face=Arial size=2>Is there somebody who could point me in the right 
  direction to determine why?</FONT> </P>
  <P><FONT face=Arial size=2>Thanks!</FONT> </P>
  <P><SPAN lang=en-ca><FONT face=Arial size=2>Peter Rushforth</FONT></SPAN> 
  <BR><SPAN lang=en-ca><FONT face=Arial size=2>Geography Division</FONT></SPAN> 
  <BR><SPAN lang=en-ca><FONT face=Arial size=2>Statistics Canada</FONT></SPAN> 
  <BR><SPAN lang=en-ca><FONT face=Arial size=2>Ottawa Ontario</FONT></SPAN> 
  <BR><SPAN lang=en-ca><FONT face=Arial size=2>K1A 0T6</FONT></SPAN> 
</P></BLOCKQUOTE></BODY></HTML>