Protected
espgCheck whether or not a spatialReference is supported by proj4 library. Attempt to load from epsg source if not.
to be checked to see if it's supported by proj4. Can be ESRI SR object or a EPSG string.
true if proj was defined or was able to download definition. false if out of luck
Private
defaultConvert a projection to an string that is compatible with proj4. If it is an ESRI SpatialReference or an integer it will be converted.
an ESRI SpatialReference, integer or string. Strings will be unchanged and unchecked, ints and SpatialReference objects will be converted.
A string in the form EPSG:#### or a WKT
Reproject an Extent object on the client. Does not require network traffic, but may not handle conversion between projection types as well. Internally it tests 8 points along each edge and takes the max extent of the result. To project an extent without warping, convert to a polygon and do a standard geometry projection (result will not be guaranteed to retain Extent characteristics)
resolves with the reprojected extent
Project a geometry using local calculations (proj4)
the spatial reference of the result (as SpatialReference, integer WKID or an EPSG string)
a RAMP API Geometry object
resolve in a RAMP API Geometry object with co-ordinates in the destination projection
Provide an alternate lookup function to find proj4 projection strings based off EPSG codes. Be aware this setting
is page-wide, and will impact any instance of RAMP running.
Function signature should be f(code: string | number): Promise<string>
.
The function should be able to parse codes that are
Generated using TypeDoc
Add a projection definition.