EPSG database directory

View: New views
3 Messages — Rating Filter:   Alert me  

EPSG database directory

by Michael Bedward :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

To work with the EPSG HSQL database in a directory other than the
default one the javadocs state that you can have the alternate
location stored as a system property.

In cases where I don't want to, or I can't, mess with the System
properties on a machine, is there some other way of specifying the
alternate location ?

cheers
Michael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Re: EPSG database directory

by Martin Desruisseaux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael Bedward a écrit :
> To work with the EPSG HSQL database in a directory other than the
> default one the javadocs state that you can have the alternate
> location stored as a system property.
>
> In cases where I don't want to, or I can't, mess with the System
> properties on a machine, is there some other way of specifying the
> alternate location ?

There is no Hints provided for that at this time. Currently the only
alternatives are:

1) Uses System.setProperty(...)
2) Modifies the source code in your local copy.

In case of 2, you can edit the ThreadedHsqlEpsgFactory class, method
getTemporaryDirectory(). You may need to modify HsqlEpsgDatabase as well which
seems a partial copy of ThreadedHsqlEpsgFactory (this is yet part of the bazar I
need to clean).

        Martin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Re: EPSG database directory

by Michael Bedward :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Many thanks for that Martin

Michael

2008/8/29 Martin Desruisseaux wrote:

> There is no Hints provided for that at this time. Currently the only
> alternatives are:
>
> 1) Uses System.setProperty(...)
> 2) Modifies the source code in your local copy.
>
> In case of 2, you can edit the ThreadedHsqlEpsgFactory class, method
> getTemporaryDirectory(). You may need to modify HsqlEpsgDatabase as well
> which seems a partial copy of ThreadedHsqlEpsgFactory (this is yet part of
> the bazar I need to clean).
>
>        Martin
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
LightInTheBox - Buy quality products at wholesale price!