Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.4.4
-
Fix Version/s: 2.7.6
-
Component/s: referencing, shapefile plugin
-
Labels:None
-
Environment:Linux OS, JDK 1.6
Description
The prj file provided by the ArcMap distribution for WGS 84 / UTM Zone 35S is this (line breaks added for easier reading):
PROJCS["WGS_1984_UTM_Zone_35S",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["Central_Meridian",27], PARAMETER["Latitude_Of_Origin",0],PARAMETER["Scale_Factor",0.9996],PARAMETER["False_Easting",500000],PARAMETER["False_Northing",10000000], UNIT["Meter",1]
Geotools ShapefileDataStore generates this prj file when given a CRS with ShapefileDataStore.forceSchemaCRS():
PROJCS["WGS 84 / UTM zone 35S",
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["Transverse Mercator", AUTHORITY["EPSG","9807"]],
PARAMETER["central_meridian", 27.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["scale_factor", 0.9996],
PARAMETER["false_easting", 500000.0],
PARAMETER["false_northing", 10000000.0],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH],
AUTHORITY["EPSG","32735"]]
Among other dissimilarities, ArcMap doesn't recognize the Geotools-generated prj definition because units are "m" instead of "Meter", and the datum name is "World Geodetic System 1984" versus "D_WGS_1984". ArcMap 9.2 shows the units as "Unknown", and complains about the projection being different when the shapefile is layered on other shapefiles with the same projection.
See GEOS-830 for a similar complaint.
Issue Links
- depends upon
-
GEOT-2117
Review GeoToolkit fixes
-
- is depended upon by
-
GEOS-830
shapefile .prj output should not have spaces
-
- is superceded by
-
GEOS-4503
Make SHAPE-ZIP WFS output format capable of sending .prj files in ESRI WKT format
-
- relates to
-
GEOT-3571
Generate prj files with ESRI friendly nomenclature
-
The Datum should now formats using the ESRI name if the CRS is formatted using the toWKT(Citations.ESRI, ...) method call. I would expect this call to work in GeoTools 2.x, but I have not verified. However I verified that it works in Geotidy and added a test case for ensuring that.