<br><font size=2 face="sans-serif">I'm inserting some shapes using ogr2ogr
and getting an interesting error. Here's my syntax and error message:</font>
<br>
<br><font size=2 face="sans-serif">--------</font>
<br><font size=2 face="sans-serif">$ ogr2ogr -f "PostgreSQL"
PG:dbname=geos_test ttrn_roads.shp -lco LAUNDER=YES -nln trim_trn_roads
ttrn_roads OVERWRITE=YES</font>
<br>
<br><font size=2 face="sans-serif">ERROR 1: INSERT command for new feature
failed.</font>
<br><font size=2 face="sans-serif">ERROR: overflow on numeric ABS(value)
>= 10^2 for field with precision 13 scale 11</font>
<br>
<br><font size=2 face="sans-serif">ERROR 1: Terminating translation prematurely
after failed</font>
<br><font size=2 face="sans-serif">translation of layer ttrn_roads</font>
<br><font size=2 face="sans-serif">---------</font>
<br>
<br><font size=2 face="sans-serif">From looking at the structure of the
fields in this file I assume the problem is with my "length"
field. This is a hangover from the original ArcInfo coverage source.
Is data type of Real(13.11) valid?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Here's the details from ogrinfo:</font>
<br>
<br><font size=2 face="sans-serif">----------</font>
<br>
<br><font size=2 face="sans-serif">$ ogrinfo -summary ttrn_roads.shp ttrn_roads</font>
<br><font size=2 face="sans-serif">INFO: Open of `ttrn_roads.shp'</font>
<br><font size=2 face="sans-serif">using driver `ESRI Shapefile' successful.</font>
<br>
<br><font size=2 face="sans-serif">Layer name: ttrn_roads</font>
<br><font size=2 face="sans-serif">Geometry: Line String</font>
<br><font size=2 face="sans-serif">Feature Count: 78476</font>
<br><font size=2 face="sans-serif">Extent: (418178.000000, 5650301.000000)
- (623456.000000, 5862439.000000)</font>
<br><font size=2 face="sans-serif">Layer SRS WKT:</font>
<br><font size=2 face="sans-serif"><snip></font>
<br><font size=2 face="sans-serif">LENGTH: Real (13.11)</font>
<br><font size=2 face="sans-serif"><snip></font>
<br>
<br>
<br><font size=2 face="sans-serif">----------</font>
<br>