Jody Garnett a écrit : > CRSAuthorityFactory is not actually a factory - it is a "builder" that > makes use of internal definitions to produce the object defined by the > code you defined. The code is usually of the form "EPSG:4326" or some > other number - "NAD27/UTM zone 11N" is a name.
As a side note, while it is true that searching from a name like ""NAD27/UTM zone 11N" is not the usual way to use the authority factory, in the particular case of EPSG factory backed by the SQL database, it work. If my memory serve me right, the EPSGCRSAuthorityFactory that Lareina is using is the legacy factory backed by the WKT property file. Because it contains only a subset of authority codes, it may not contains the CRS that Lareina is looking for (but it should throws an exception in such case, not return null...) I would suggest to try an other factory. Instead of creating the factory directly, it would be safer to use: CRSAuthorityFactory factory = ReferencingAuthorityFactory.createCRSAuthorityFactory(null); Such approach will protect you from class name changes between Geotools 2.4 and 2.5. Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel