oscar.Util.CoordinateReferences

This class is a static class to obtain a coordinate object by passing in either an EPSG code or a URN value.

Summary
oscar.Util.CoordinateReferencesThis class is a static class to obtain a coordinate object by passing in either an EPSG code or a URN value.
Properties
coordsArray<Object> Each coordinate item contains a description of the coordinate system and it’s EPSG code.
Functions
getReferenceTakes either an epsg or urn value and returns an object containing the description of the coordinage system, the epsg value and the urn value.
isUrn

Properties

coords

Array<Object> Each coordinate item contains a description of the coordinate system and it’s EPSG code.

Functions

getReference

getReference : function(epsg)

Takes either an epsg or urn value and returns an object containing the description of the coordinage system, the epsg value and the urn value.  Parameters:

{String} epsgor a urn value to find a matching description.

Returns

{Object} containing description, epsg, urn properties.

isUrn

isUrn : function(epsg)

Parameters

{String} epsgChecks to see if the value passed in is an epsg or urn value.

Returns

boolean

getReference : function(epsg)
Takes either an epsg or urn value and returns an object containing the description of the coordinage system, the epsg value and the urn value.
isUrn : function(epsg)