GeoTools
  1. GeoTools
  2. GEOT-1219

DataSource Hint for EPSG Authority

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4-M1
    • Fix Version/s: 2.5-M1
    • Component/s: referencing
    • Labels:
      None

      Description

      Jira to track API change proposal:

      Use of an EPSG Authority implementation in a Java EE container.

      • Need to supply a Hint that an EPSG Authority can use to look up a DataSource using JNDI
      • Create seperate EPSGAuthorityFactory for this use

      Background research:

        Activity

        Hide
        Jody Garnett added a comment -
        Proposal brought up in weekly IRC meeting:
        - http://docs.codehaus.org/display/GEOTOOLS/2007/04/02/IRC+Meeting+-+2+April+2007

        Main feedback (correct) was from Andrea pointing out that there is no way for anybody to actually use Hints right now. GeoServer controls the proceedings by setting a System.property file.

        Looking into the codebase I can find a mention of System.getProperty in the WKT coordinate system authority.
        Show
        Jody Garnett added a comment - Proposal brought up in weekly IRC meeting: - http://docs.codehaus.org/display/GEOTOOLS/2007/04/02/IRC+Meeting+-+2+April+2007 Main feedback (correct) was from Andrea pointing out that there is no way for anybody to actually use Hints right now. GeoServer controls the proceedings by setting a System.property file. Looking into the codebase I can find a mention of System.getProperty in the WKT coordinate system authority.
        Hide
        Jody Garnett added a comment -
        Removed all use of FactoryFinder (GeoTools 2.0 interface) ... switch to FactoryRegistry, currently each implementation uses null for the Hints.

        Plan to introduce "global" Hints, initially set by system properties.

        Cannot figure out if this is best done as:
        {code}
        class Hints {
           /** Generate Hints based on system defaults */
           Hints getDefault()
               ....
           }
        }
        {code}

        Or if we should start to make use of a container, of which Hints is a valid request.
        Show
        Jody Garnett added a comment - Removed all use of FactoryFinder (GeoTools 2.0 interface) ... switch to FactoryRegistry, currently each implementation uses null for the Hints. Plan to introduce "global" Hints, initially set by system properties. Cannot figure out if this is best done as: {code} class Hints {    /** Generate Hints based on system defaults */    Hints getDefault()        ....    } } {code} Or if we should start to make use of a container, of which Hints is a valid request.
        Hide
        Martin Desruisseaux added a comment -
        The following hint has been added:

        http://javadoc.geotools.fr/snapshot/org/geotools/factory/Hints.html#EPSG_DATA_SOURCE

        Is it suffisient for closing this issue?
        Show
        Martin Desruisseaux added a comment - The following hint has been added: http://javadoc.geotools.fr/snapshot/org/geotools/factory/Hints.html#EPSG_DATA_SOURCE Is it suffisient for closing this issue?
        Hide
        Jody Garnett added a comment -
        yes, although I have only tested it on trunk.
        Show
        Jody Garnett added a comment - yes, although I have only tested it on trunk.

          People

          • Assignee:
            Jody Garnett
            Reporter:
            Jody Garnett
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: