koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Add CRS WKT lookup #186

Closed rgwozdz closed 3 years ago

rgwozdz commented 3 years ago

This PR leverages existing dependencies (@esri/proj-codes) to lookup a coordinate-reference-system WKT when a WKID is supplied.

This is necessary because the projection library (proj4) only recognizes the most common WKIDs (4326, 3857, etc). Prior to this PR, the WKT for uncommon WKIDs had to be supplied by the request via outSR or set in the provider's getData method.

This PR also includes some refactoring.