ArcMap creates following contents in .prj file for WGS 84.
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
While Geotools creates following when used ESRI citation, as per documentation: (http://docs.geotools.org/stable/userguide/library/referencing/crs.html)
GEOGCS["WGS 84", DATUM["D_WGS_1984", SPHEROID["D_WGS_1984", 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"]]
Can anyone please tell me that why value of GEOGCS is appearing as "WGS 84" with geotools and not "GCS_WGS_1984". Because of this difference, ArcMap is not recognizing the projection.
Or is there any other way that I can create .prj file which will reflect GCS_WGS_1984?
Geotools version: 13.5
Sample code:
Formattable f = (Formattable) CRS.decode("EPSG:" + epsg.getCode(), true);
String wkt = f.toWKT(Citations.ESRI, 0);
CoordinateReferenceSystem crs = CRS.parseWKT(wkt);