I have a script that I wrote using the ogr and osr python modules. Everything runs great when I run it, but I have a user in one of our other offices who keeps getting an error message. I can't replicate it using his data on my install.
<br><br>He is running version 1.0.7 (Windows), I suspected that it could be a version thing, so I uninstalled mine and installed 1.0.7. <br><br>The script reads X and Y values from a .csv file and writes out a shapefile.
<br><br>Here is the error that he is getting:<br>
<p class="MsoNormal">D:\GIS Scripts>python csv2shp.py input=D:\convert\</p>
<p class="MsoNormal">Traceback (most recent call last):<br><span style=""></span>File
"csv2shp.py", line 8, in ?<br><span style=""></span>import os, ogr,
sys, datetime, osr</p>
<p class="MsoNormal">OverflowError: ('integer literal too large',
('c:\\progra~1\\fwtool~1.7\\pymod\\</p>
<p class="MsoNormal">ogr.py', 257, None, 'wkb25Bit = -2147483648 #
0x80000000\n'))</p><br>My guess was that one of the coordinate values was too large, but when I try to add several orders of magnitude or precision, I can't replicate the error. <br><br>I don't expect anyone to debug my script, I am just hoping that you can tell me what cases might lead to this error.
<br><br>Thanks, <br><br>David.<br><p class="MsoNormal"><br></p><p class="MsoNormal"><br></p>
<br>