From: Andrea A. <aa...@op...> - 2009-08-16 09:42:12
|
Thorsten Reitz ha scritto: > Hi Matt, > > if you are using the HSQL EPSG database, this has most likely to do with > the set-up of the EPSG database, which happens once per application > start. It does not. It happens once, and then it's reused as long as its files are not deleted from the disk. If it's happening once per start up there is something wiping out the cached database on disk, or the context in which you're using it is triggering a bug. The database is stored by default in the current temp directory. On Windows that directory is never wiped out, so the creation happens only once. On *Nix it is usually wiped out on the machine startup, so the creation happens once a day. If you want to put the database in a location that is not repeatedly cleaned up by your OS you can also force it manually by setting a System variable: System.setProperty(ThreadedHsqlEpsgFactory.DIRECTORY_KEY, "/path/to/your/safe/directory"); Hope this helps Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. |