Jody did a nice work of putting global configuration in a central place
(org.geotools.factory.GeoTools). I continued on his track. Now we have:

* System properties String defined in org.geotools.factory.GeoTools,
  instead of various places in Geotools code base. For now:

   - CRS_AUTHORITY_EXTRA_DIRECTORY
   - EPSG_DATA_SOURCE
   - FORCE_LONGITUDE_FIRST_AXIS_ORDER


* A Hints.putSystemDefault(Key,Object) method added. Now the following
  codes should have the same effect:

  System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "true");

or

  Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE);

  The former has the following advantages:
  * Can be specified on the command line.

  The later has the following advantages:
  * No security constrains (or is it an inconvenient?)
  * Any hint defined in org.geotools.factory.Hints can be set as a
    system default, instead of only a few system property strings.


Currents factories in gt2-main ignore hints. I don't know if we plan to use them
in the future. But if there is such a possibility, it may be worth to make the
following classes extend org.geotools.factory.AbstractFactory:

    org/geotools/data/FeatureLockFactory.java
    org/geotools/data/AbstractDataStoreFactory.java
    org/geotools/styling/AbstractStyleFactory.java

The cost is an initially empty HashMap instance inherited by all those
factories. Should I make such change (and add a Foo(Hints) constructor)?

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to