I am using the following code to use the Mercator coordinate space :

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\"]]");

This was working fine in 2.5.8, but when using 2.6.3 this causes a
CloneNotSupportedException.

Stack trace :
java.lang.AssertionError: java.lang.CloneNotSupportedException:
org.geotools.parameter.ParameterGroup
    at
org.geotools.parameter.AbstractParameter.clone(AbstractParameter.java:164)
    at org.geotools.parameter.ParameterGroup.clone(ParameterGroup.java:439)
    at org.geotools.parameter.ParameterGroup.clone(ParameterGroup.java:63)
    at
org.geotools.referencing.operation.DefiningConversion.<init>(DefiningConversion.java:93)
    at
org.geotools.referencing.operation.DefiningConversion.<init>(DefiningConversion.java:66)
    at org.geotools.referencing.wkt.Parser.parseProjCS(Parser.java:909)
    at
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:222)
    at
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:201)
    at
org.geotools.referencing.factory.ReferencingObjectFactory.createFromWKT(ReferencingObjectFactory.java:1088)
    at org.geotools.referencing.CRS.parseWKT(CRS.java:450)

Anybody has any ideas what I am doing wrong?

Kind regards,
Joachim

-- 
Joachim Van der Auwera
Geosparc, supporting the Geomajas GIS community

------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to