Hi Martin ...

I started in on DataSource proposal today... and Andrea
asked the sensible question of how does one hook it up. :-)

I am not sure yet how multiple valid CRSFactories are chosen ....The CRS 
utility class is caching a DefaultAuthorityFactory - which I eventually 
will need to get Hints into that process.

In talking to Andrea GeoServer is using a system property right now ... 
I went through all the source code and found the following:

 From FactoryUsingWKT:
- public static final String CRS_DIRECTORY_KEY =
"org.geotools.referencing.crs-directory";
- final String directory = System.getProperty(CRS_DIRECTORY_KEY);

I am going to assume this is what GeoServer is making use of.

The only real evidence of an organized approach using system properties
is in the old Factory implementation, where a system property could
override anything:
> final String classname = System.getProperty(category.getName());

This implementation is still referenced from:
- FeatureLockFactory
- FileDataStoreFinder
- AttributeTypeFactory
- FeatureCollections
- FeatureTypeBuilder
- FilterFactoryFinder
- FilterNameTypeMapping
- StyleFactoryFinder

I will add these to CommonFactory finder for and then clean up the
utility methods.

Cheers,
Jody



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to