Skip to content

Instantly share code, notes, and snippets.

@veltman
Created December 22, 2014 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veltman/6be84d216376814cdc67 to your computer and use it in GitHub Desktop.
Save veltman/6be84d216376814cdc67 to your computer and use it in GitHub Desktop.
var proj4 = require("proj4");
var nypdProj = 'PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",984250.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-74.0],PARAMETER["Standard_Parallel_1",40.66666666666666],PARAMETER["Standard_Parallel_2",41.03333333333333],PARAMETER["Latitude_Of_Origin",40.16666666666666],UNIT["Foot_US",0.3048006096012192]]';
var x = 981349,
y = 198508;
var lngLat = proj4(nypdProj).inverse([x,y]);
//[ -74.01046412781942, 40.71153483835092 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment