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.
the projection option is renamed as outputCrs in effort for more clarity and to match inputCrs
the spatial reference normalization functions return an object with spec { wkt, wkid }
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'sgetData
method.This PR also includes some refactoring.
projection
option is renamed asoutputCrs
in effort for more clarity and to matchinputCrs
{ wkt, wkid }