Closed HaotianShi closed 5 years ago
Likely datum shift missing, but it seems this is a bug for Proj4J, not for PROJ. So https://trac.osgeo.org/proj4j would be a better place to report this (although it does not look to be maintained...)
Closing as a non-PROJ bug
We encountered a conversion issue from WGS84-4326 to NAD27-3069 while doing a project.
We used two ways for projection based on the same longitude and latitude: A: ESRI ArcMap Projection (using ArcGIS Project tool) B: Proj4j javacode EPSG geoCode
However, there are some differences between the data (projected x and y of NAD27-3069) obtained by the two methods, which is not reasonable. The x coordinate difference of the same point is around 7-10 meters and the difference of y is about 1-2m, as shown in the table below.
LON |LAT | A.NAD27_X | B.NAD27_X | A.NAD27_Y | B. NAD27_Y -88.5228 | 42.57655 | 621238.4835 | 621229.7628 | 214633.296 | 214635.8638 -92.2959 | 44.53028 | 317580.3702 | 317565.4482 | 433121.7068 | 433119.4047 -87.9028 | 42.7361 | 671687.3028 | 671680.2527 | 233424.7366 | 233427.5733 -88.5282 | 42.57733 | 620795.31 | 620786.5774 | 214712.7471 | 214715.3176 -88.6028 | 44.03688 | 611961.6631 | 611952.165 | 376702.9819 | 376701.8832 -88.4651 | 44.29296 | 622464.2818 | 622455.3098 | 405342.0929 | 405341.2876 -88.2424 | 44.30755 | 640197.7963 | 640188.9205 | 407318.7782 | 407318.1713 -90.7711 | 43.56154 | 437733.8693 | 437722.7151 | 323251.3754 | 323249.4127 -88.0876 | 43.00795 | 655871.2693 | 655863.4741 | 263254.573 | 263256.7669
How can we address this issue? Thank you!
Here is the java code of Method B: package Projection;
import java.io.IOException; import java.net.UnknownHostException; import java.sql.*; import java.util.ArrayList; import java.util.Arrays; import Projection.db.ConnectionBean; import org.osgeo.proj4j.CRSFactory; import org.osgeo.proj4j.CoordinateReferenceSystem; import org.osgeo.proj4j.CoordinateTransform; import org.osgeo.proj4j.CoordinateTransformFactory; import org.osgeo.proj4j.ProjCoordinate;
public class Main {
}
Thank you very much!
Timothy