Cannot decode http://www.opengis.net/gml/srs/epsg.xml#XXXX when XXXX is a 
custom projection
-------------------------------------------------------------------------------------------

                 Key: GEOT-1563
                 URL: http://jira.codehaus.org/browse/GEOT-1563
             Project: GeoTools
          Issue Type: Improvement
          Components: core referencing
    Affects Versions: 2.5-M0, 2.4-RC0
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux
            Priority: Critical
             Fix For: 2.4-RC1, 2.5-M1


The above syntax seems to inspect only the official EPSG database and won't hit 
the extension ones.
For example:

{code}
import org.geotools.referencing.CRS;

public class Decode {
    public static void main(String[] args) throws Exception {
        String id = "100001";
        System.out.println(CRS.decode("EPSG:" + id));
        System.out.println(CRS.decode("urn:x-ogc:def:crs:EPSG:6.11.2:" + id));
        
System.out.println(CRS.decode("http://www.opengis.net/gml/srs/epsg.xml#"; + id));
    }
}
{code}

will fail on the third decode, whilst the first two work fine (of course 
epsg-extension is in the classpath).
If you run the same example with 4326 or any other official id all three will 
succeed

-- 
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

Reply via email to