Jody Garnett ha scritto:
> Hi Andrea:
> 
> I have finally had a chance to "give it a go". It has been working
> fine for me ... but Andrea Antonello has reported a problem. I think
> the problem comes from the time required to unpack the EPSG database
> into a temp directory; since I was testing out the service in a plugin
> activator there was a strict time limit (5000ms) that was not being
> respected :-( So what I would like to try and set up is some
> additional methods to test if the temp directory needs to be created;
> so I can start that in a separate thread.

Oh, about this one, I have an umcommitted variant of the H2 EPSG factory
that does create its database much faster (a couple of seconds on my
computer). The idea is to generate the database off line, zip it,
add it as a resource in the gt-epsg-h2 module, and when there is a need
to create it, unzip it straight to the file system.

The downside of this approach is that it requires a bit more disk space
in SVN (a couple of megabytes instead of of a bit more than one) and
over the long run we'll remove them completely.

The plan I have in mind is to store the database as a jar in the
classpath and allow us to use it read only that way, or to take
it and explode it on the disk on demand. Unfortunately H2 cannot
grok a database in the classpath atm, some extra development on
their side is needed to make it possible, so the above can be a
nice temporary measure.

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-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to