AUTO and AUTO2 authorities do not seem to work properly
-------------------------------------------------------
Key: GEOT-1580
URL: http://jira.codehaus.org/browse/GEOT-1580
Project: GeoTools
Issue Type: Bug
Components: core referencing
Affects Versions: 2.5-M0, 2.4-RC0
Reporter: Andrea Aime
Assignee: Martin Desruisseaux
Fix For: 2.4-RC1, 2.5-M1
The AUTO and AUTO2 authorities do not seem to be working... they do declare a
set of codes as available, but it's then not possible to decode them.
Example follows:
{code}
import java.util.Set;
import org.geotools.referencing.CRS;
public class AutoAuthority {
public static void main(String[] args) throws Exception {
final String authority = "AUTO2"; // AUTO2 too
System.out.println("Autority " + authority + " is known: "
+ CRS.getSupportedAuthorities(true).contains(authority));
final Set supportedCodes = CRS.getSupportedCodes(authority);
System.out.println("Supported codes " + supportedCodes);
String code = (String) supportedCodes.iterator().next();
System.out.println("Trying to decode " + code);
try {
CRS.decode(code);
System.out.println("Success");
} catch (Exception e) {
System.out.println("Failure");
}
System.out.println("Trying to decode " + authority + ":" + code);
try {
CRS.decode(authority + ":" + code);
System.out.println("Success");
} catch (Exception e) {
System.out.println("Failure");
}
}
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel