CRS.parseWKT causes CloneNotSupportedException
----------------------------------------------

                 Key: GEOT-3062
                 URL: http://jira.codehaus.org/browse/GEOT-3062
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.6.3
            Reporter: Joachim Van der Auwera


Can be fixed by declaring "org.geotools.referencing.wkt.Formattable" as 
"implements Cloneable".

To reproduce, use
{code}
CRS.parseWKT("PROJCS[\"Google Mercator\", "
        + "GEOGCS[\"WGS 84\", "
        + "DATUM[\"World Geodetic System 1984\", "
        + "SPHEROID[\"WGS 84\", 6378137.0, 298.257223563, 
AUTHORITY[\"EPSG\",\"7030\"]], "
        + "AUTHORITY[\"EPSG\",\"6326\"]], "
        + "PRIMEM[\"Greenwich\", 0.0, AUTHORITY[\"EPSG\",\"8901\"]], "
        + "UNIT[\"degree\", 0.017453292519943295], "
        + "AXIS[\"Geodetic latitude\", NORTH], "
        + "AXIS[\"Geodetic longitude\", EAST], "
        + "AUTHORITY[\"EPSG\",\"4326\"]],  "
        + "PROJECTION[\"Mercator (1SP)\", AUTHORITY[\"EPSG\",\"9804\"]], "
        + "PARAMETER[\"semi_major\", 6378137.0], "
        + "PARAMETER[\"semi_minor\", 6378137.0], "
        + "PARAMETER[\"latitude_of_origin\", 0.0], "
        + "PARAMETER[\"central_meridian\", 0.0], "
        + "PARAMETER[\"scale_factor\", 1.0],  "
        + "PARAMETER[\"false_easting\", 0.0],  "
        + "PARAMETER[\"false_northing\", 0.0],  "
        + "UNIT[\"m\", 1.0],  "
        + "AXIS[\"Easting\", EAST],  " + "AXIS[\"Northing\", NORTH], "
        + "AUTHORITY[\"EPSG\",\"900913\"]]");
{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

        

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to