[geotk] Loading of derby EPSG database - takes time

Westgård Trond trondwe at IMR.no
Thu Oct 25 01:01:46 PDT 2012


Hi,
In a NetBeans Platform application based on PuzzleGIS and geotoolkit, there is at the startup of the application (in an Installer for the module) this statement:

       //force loading/creating epsg database.
        try {
            CRS.decode("EPSG:3395"); // BOTTLENECK 14 % of startup
        } catch (Exception ex) {
            Exceptions.printStackTrace(ex);
        }

The first time the database containing the EPSG-codes and the coordinatesystem parameters is loaded from a resource in one of the geotoolkit's libraries and installed on the user's computer. Using the statement above each time the application starts it takes about one minute to do this operation.

Is there a way to check if the EPSG derby database is already installed on the user's computer and consequently spare some computer time ?

Best Regards

Trond Westgård
Senior Engineer
Institute of Marine Research
Bergen, Norway
trondwe at imr.no

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20121025/96748022/attachment.html>


More information about the Geotoolkit mailing list