Sunburned Surveyor ha scritto: > I had a couple quick questions on the DbaseFileHeader class: > > - Is there a specific Charset I should be using as a parameter to the > constructor of this class. Right now I am just using the default > Charset object returned by the Charset.defaultCharset method. Forgive > me if this is obvious, as I don't recall working with Charset objects > before.
The default value should be "ISO-8859-1", that is what DBF files were designed for. But if the shapefile contains the EUR symbol "ISO-8859-15" is better. But if the shapefile contains arabic chars or chinese chars another charset will be needed. There is no way to tell exactly what charset will be needed to read a specific file. ArcMap stores the information in a codepage file, but that refers to the MS Windows codepage and I've found no way to map it back to a charset, there appears to be no 1-1 relationship between the two. > - What does the boolean parameter named "useMemoryMappedBugger" do? > I'm guesing if this parameter is true buffering takes place, which is > quicker but uses a larger RAM footprint. Is this correct? It should be useMemoryMappedBuffer. In operating systems of this millenia it's possible to "memory map" a file and treat it as if it was a linear storage fully in memory, the OS will take care of moving pages in from the disk as needed (without storing everything in memory of course). Unfortunately this does not work well with Windows, thus the option. > If no one objects, I'll add some Javadoc comments to the class that > answer these questions. (Or maybe this info would be better on the > wiki.) No problem with pure javadoc changes, go ahead Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel