koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Remove node-srs from `normalizeSR` function. Add in Esri lookups to get… #95

Closed rgwozdz closed 6 years ago

rgwozdz commented 6 years ago

Currently, winnow is leveraging node-srs to parse WKTs. This is undesirable because it relies on GDAL, a native module.

This PR: 1) removes the node-srs dependency 2) Adds a check for WGS_1984_Web_Mercator_Auxiliary_Sphere and returns 3857. 3) Adds an Esri WKT lookup for WKIDs that are unknown to proj4. (The omission of this in current code base is a bug - e.g., a valid WKID like 2855 get redefined as 4326 because 2855 is not found in proj4's list of known WKIDs).