Since field length and degrees of precision are all stored in the DBF part of the shapefile, one approach is to use the low-level GeoTools classes DbaseFileReader, and DbaseFileWriter to parse and update the DBF file. Both of those classes make use of a utility class called DbaseFileHeader with methods that can return and set field length and degrees of precision in a shapefile. The sample usage in the javadoc for DbaseFileReader and DbaseFileWriter is out of date, but if you examine the methods of the classes you can see how to get the information you need.
-Larry On Thu, May 26, 2011 at 4:18 PM, Jody Garnett <[email protected]> wrote: > The good news is that our descriptors have a "user data" map; which we can > use to store any extra information from the header that you need (and pass > it back out to your program). > > -- > Jody Garnett > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
