proj4js / proj4js

JavaScript library to transform coordinates from one coordinate system to another, including datum transformations
http://proj4js.org
Other
2.03k stars 330 forks source link

Incorrect output compared to epsg.io, EPSG 32028 to EPSG 4326 #296

Open magnet47 opened 6 years ago

magnet47 commented 6 years ago

I seem to be seeing incorrect output when converting from EPSG 32028 to EPSG 4326 compared to epsg.io. Here is some sample code.

// defs from epsg.io
proj4.defs("EPSG:32028","+proj=lcc +lat_1=40.88333333333333 +lat_2=41.95 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs");
proj4.defs("EPSG:4326","+proj=longlat +datum=WGS84 +no_defs");

var p = proj4("EPSG:32028","EPSG:4326",[2482280,444470]);
console.log(p[0], p[1]);
// output -75.99272532666683 41.371035666210155
// epsg.io output -75.99237, 41.3732392
tlwelbor commented 6 years ago

Recent revisit to this as well. Are NAD27 based conversions still not supported? Last discussion was the closed issue from 2017 (Issue #212 ).