[Geoserver-users] shapefile optional parameters

hi to all…
trying to sove localization problems (greek language), i came across these lines from Geoserver help : "There are two other optional parameters for Shapefiles. The memory mapped buffer should generally be set to true, it’s more for programmers. The dbf charset parameter specifies a Character Set to be used to read the DBF file (the file that contains the attributes of the Shapefile). The default is ISO-8859-1." . However i can’t find these parameters in order to check some other charset…Any idea?. Thanks.

panos wrote:

hi to all...
trying to sove localization problems (greek language), i came across
these lines from Geoserver help : "*There are two other optional parameters
for Shapefiles. The memory mapped buffer should generally be set to true,
it's more for programmers. The dbf charset parameter specifies a Character
Set to be used to read the DBF file (the file that contains the attributes
of the Shapefile). The default is ISO-8859-1." . *However i can't find these
parameters in order to check some other charset......Any idea?. Thanks.

Ah, we should remove that, or else update the shapefile datastore. The change made it in to 2.0.x of GeoTools, but didn't get ported forward to 2.1.x or 2.2.x. If you can work a bit with Java code I can explain what needs to be done. It's pretty straightforward, it's just that no one's had the chance to do it. You just need to figure out where to make the changes from 2.0 in 2.1. I think it's maybe three classes that are affected.

best regards,

Chris

--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com

Ok, I've let this slip for too long, so went ahead and made a version that works with the 1.3.x branch. Could you download it and test for me? See http://jira.codehaus.org/browse/GEOT-347 get the 2.1.1 one. Put it in geoserver/WEB-INF/lib (of either the server/ directory of your binary install, or webapps/ if you set up your own servlet container). Delete the gt2-shapefile.jar. Then restart GeoServer and see if the parameter shows up.

Unfortunately the indexed shapefile still hasn't been combined with the normal shapefile module, I'm still not sure why. But this should be a param for both. For now it won't work with the indexed one... If you let me know that it works I can commit and get in the next geoserver release.

Chris

panos wrote:

hi to all...
trying to sove localization problems (greek language), i came across
these lines from Geoserver help : "*There are two other optional parameters
for Shapefiles. The memory mapped buffer should generally be set to true,
it's more for programmers. The dbf charset parameter specifies a Character
Set to be used to read the DBF file (the file that contains the attributes
of the Shapefile). The default is ISO-8859-1." . *However i can't find these
parameters in order to check some other charset......Any idea?. Thanks.

--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com