[gdal-dev] shapefile field size

Clay, Bruce bclay at ball.com
Wed Sep 24 14:55:03 EDT 2008

I have an OGR based application that I am having problems with data


Several fields are OFTInteger and several are OFTReal


When I write a dataset using the OCI driver the integer fields all store
valid information.


When I write a dataset using the Shapefile driver the integer fields
appear to be truncated to shorts. They are defined with a field width of
4 bytes.  It almost looks like the data is stored as ASCII because only
the 4 most significant digits are actually saved in the shapefile.


Is this the intended operation or is there some extra flag that I need
to set when I switch between creating an Oracle table and a shapefile?




This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080924/4b573bea/attachment.html

More information about the gdal-dev mailing list