public void main(String[] args) throws FactoryException, ParseException {
CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:4547");
String str = sourceCRS.toWKT();
Element tree = this.getTree(str, new ParsePosition(0));
Element peek = (Element) tree.peek();
Writer writer = new StringBuilderWriter();
PrintWriter printWriter = new PrintWriter(writer);
peek.print(printWriter, 0);
writer.toString();
}
PROJCS["CGCS2000 / 3-degree Gauss-Kruger CM 114E",
GEOGCS["China Geodetic Coordinate System 2000",
DATUM["China 2000",
SPHEROID["CGCS2000", 6378137.0, 298.257222101, AUTHORITY["EPSG","1024"]],
AUTHORITY["EPSG","1043"],
TOWGS84[59.47, -5.04, 187.44, 0.47, -0.1, 1.024, -4.5993]
],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic latitude", NORTH],
AXIS["Geodetic longitude", EAST],
AUTHORITY["EPSG","4490"]
],
PROJECTION["Transverse_Mercator", AUTHORITY["EPSG","9807"]],
PARAMETER["central_meridian", 114.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 500000.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Northing", NORTH],
AXIS["Easting", EAST],
]
加在文件加粗的位置