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.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to