-
Notifications
You must be signed in to change notification settings - Fork 343
Closed
Description
Hello, there are a few meters of difference in the coordinate transformation between Proj4js and PostGIS with the same Proj4 definitions.
https://jsfiddle.net/4drm5v07/ is a sample code where I test the difference.
To make the same transformation in PostGIS, I use the following SQL;
select st_transform(ST_SetSRID(ST_Point(515137.96, 6937915.52), 28356), 3857)Here is the result from both calculations;
Proj4
X : 17048971.316437162 Y : -3209051.731103003
PostGIS
X: 17048971.98361579 Y: -3209050.1545588113
There is a 0.66m difference in X and a 1.6m difference in Y.
I'm not sure whether is a bug or not but I spent a lot of time on this but I couldn't find a solution. I also compared Proj4js results with ArcGIS, QGIS and epsg.io and they all give the same result as PostGIS.
PostGIS and Proj4js use the same Proj4 string.
Metadata
Metadata
Assignees
Labels
No labels