> Note that HSQL and Access should returns an identical amount of object. I=
> f the number are not the=20
> same, this is probably because HSQL and Access are connected to different=
>  EPSG database versions.=20
> Current epsg-hsql plugin uses EPSG version 6.8.

Yup. I have EPSG6.6 registereed as "EPSG". But I don't mind that difference.

> Getting the list of codes with factory.getAuthorityCodes(...) should be r=
> easonably fast.=20

Agree. It is near-instantaneous.

> Instantiating each object is likely to be costly, no matter which EPSG fa=
> ctory is used (HSQL, Access=20
> or even the WKT one). It is also likely to consume a fair amount of memor=
> y.

I don't keep the objects in memory. So memory should not be the problem. But
time is...

> It would be hard to guess if a CRS can be instantiated before to try it. =
> I don't see any other=20
> solution at this time other than try all CRS only once for ever, and writ=
> e the list of valid codes=20
> in some text file. A problem is that it may depends on user configuration=
>  (available plugins in the=20
> class path, existence of JAI installation, etc.).

Yes, I guessed this, but I don't like it too much as well. It is hard, but not
impossible, to detect configuration changes.

Another workaround (for an application) would be do the checkung in the
background on application start and hope that it is done when the user needs
the CRS list.

A third possibility is to do sth. like certain help systems do: If they are
called for the first time, open a progress dialog: "Perparing referencing
objects...", do the check, store the invalid objects into a file and next time
read the file.

Guess I will test the last one. Thanks.

Matthias Basler
[EMAIL PROTECTED]

----------------------------------------------------------------
This mail was sent through http://webmail.uni-jena.de


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to