<html><body>
<p>There seems to be an issue with the python scripts in fwtools 2.3.0 and 2.3.1<br>
<br>
Example:<br>
<br>
<br>
C:\Program Files\FWTools2.3.1&gt;gdal_polygonize<br>
Traceback (most recent call last):<br>
  File &quot;C:\PROGRA~1\FWTOOL~1.1\bin\gdal_polygonize.py&quot;, line 34, in &lt;module&gt;<br>
    import gdal, ogr, osr<br>
  File &quot;C:\PROGRA~1\FWTOOL~1.1\pymod\gdal.py&quot;, line 191, in &lt;module&gt;<br>
    import _gdal<br>
ImportError: No module named _gdal<br>
<br>
C:\Program Files\FWTools2.3.1&gt;<br>
<br>
<br>
Not complaining, just grateful the toolset is there for Windows.  <br>
<br>
Doug<br>
<br>
<br>
Doug Newcomb             <br>
USFWS<br>
Raleigh, NC<br>
919-856-4520 ext. 14 doug_newcomb@fws.gov<br>
---------------------------------------------------------------------------------------------------------<br>
The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior.   Life is too short for undocumented, proprietary data formats.<br>
<img width="16" height="16" src="cid:1__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt="Inactive hide details for Even Rouault &lt;even.rouault@mines-paris.org&gt;">Even Rouault &lt;even.rouault@mines-paris.org&gt;<br>
<br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=0ABBFF34DFF024088f9e8a93df938690@fws.gov); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">Even Rouault &lt;even.rouault@mines-paris.org&gt;</font></b><font size="2"> </font><br>
<font size="2">Sent by: gdal-dev-bounces@lists.osgeo.org</font>
<p><font size="2">04/29/2009 01:48 PM</font></ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<font size="2">&quot;Rushforth, Peter&quot; &lt;Peter.Rushforth@nrcan-rncan.gc.ca&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<font size="2">gdal-dev@lists.osgeo.org</font></td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""><br>
<font size="2">Re: [gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue</font></td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=0ABBFF34DFF024088f9e8a93df938690@fws.gov" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<tt>Hi,<br>
<br>
As far as the message &quot;ERROR 1: Too much data inside one element. File <br>
probably corrupted&quot; is concerned, I think that FWTools-2.3.0 showed a <br>
temporary regression where the maximum size for a geometry was limited to <br>
100,000 bytes to avoid reading corrupted/hostile files. This limit was proved <br>
to be too low and raised to 10,000,000 bytes a bit later (see <br>
</tt><tt><a href="http://trac.osgeo.org/gdal/ticket/2818">http://trac.osgeo.org/gdal/ticket/2818</a></tt><tt>) and I believe that this fix went into <br>
FWTools-2.3.1. Unfortunately the FWTools home page isn't well updated and it <br>
only shows 2.3.0 as the latest version. But you can find here FWTools 2.3.1 : <br>
</tt><tt><a href="http://home.gdal.org/fwtools/FWTools231.exe">http://home.gdal.org/fwtools/FWTools231.exe</a></tt><tt><br>
<br>
I was able to rename an attribute in a generated .gfs file and ogrinfo <br>
successfully returned the modified attribute name. So you'll have to provide <br>
more details, ideally a small GML file and the modified .gfs demonstrating a <br>
problem.<br>
<br>
Best regards,<br>
Even<br>
<br>
Le Wednesday 29 April 2009 17:16:11, vous avez écrit :<br>
&gt; Hi,<br>
&gt;<br>
&gt; Using fwtools 2.3 on windows, I run the ogr2ogr command on a gml file to<br>
&gt; create a shp file.<br>
&gt;<br>
&gt; I get the following error message:<br>
&gt;<br>
&gt; C:\Program Files\FWTools2.3.0\&gt;ogr2ogr -f &quot;ESRI Shapefile&quot; peter.shp<br>
&gt; test.gml ERROR 1: Too much data inside one element. File probably corrupted<br>
&gt;<br>
&gt; When I cut down the number of coordinates in the gml:Polygon (to an extreme<br>
&gt; minimum), the shp file is created. &nbsp;But I can't do that in real life.<br>
&gt;<br>
&gt; Also, I want to supply a gfs file to control attribute name mapping. &nbsp;But<br>
&gt; it seems to be ignored.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Peter Rushforth<br>
&gt; Technology Advisor / Conseiller technique<br>
&gt; GeoConnections / GéoConnexions<br>
&gt; 650-615 Booth St. / rue Booth<br>
&gt; Ottawa ON K1A 0E9<br>
&gt; E-mail / Courriel: Peter.Rushforth@NRCan-RNCan.gc.ca<br>
&gt; Phone / Télephone: (613) 943-0784<br>
&gt; Fax / telecopier: &nbsp;(613) 947-2410<br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; gdal-dev@lists.osgeo.org<br>
&gt; </tt><tt><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></tt><tt><br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
</tt><tt><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></tt><tt><br>
</tt><br>
</body></html>