Class: Projection

vcs.vcm.util.Projection

Projection Class XXX why is this an vcs.vcm.VcsObject? it never uses the framework

new vcs.vcm.util.Projection(options)

Name Type Description
options vcs.vcm.util.Projection.Options

Extends

Members

className{string}

class Name of the Object

name{string}

unique Name

Methods

vcs.vcm.util.Projection.createGeographicProjection(){vcs.vcm.util.Projection}

Returns a vcs.vcm.util.Projection object for EPSG 4326 (WGS84)

vcs.vcm.util.Projection.createMercatorProjection(){vcs.vcm.util.Projection}

Returns a vcs.vcm.util.Projection object for EPSG 3857 (Web mercator)

vcs.vcm.util.Projection.mercatorToWgs84(coords, inPlace){ol.Coordinate}

Fast transform from Web-Mercator to WGS84

Name Type Description
coords ol.Coordinate
inPlace boolean

whether to transform in place

vcs.vcm.util.Projection.transform(dest, source, coords){ol.Coordinate}

Name Type Description
dest vcs.vcm.util.Projection
source vcs.vcm.util.Projection
coords ol.Coordinate

vcs.vcm.util.Projection.transformCoordinates(dest, source, coords){Array.<ol.Coordinate>}

Name Type Description
dest vcs.vcm.util.Projection
source vcs.vcm.util.Projection
coords Array.<ol.Coordinate>

vcs.vcm.util.Projection.wgs84ToMercator(coords, inPlace){ol.Coordinate}

Fast transform from WGS84 to Web-Mercator

Name Type Description
coords ol.Coordinate
inPlace boolean

whether to transform in place

getClassName(){string} inherited

returns the class name of this object.

Deprecated
  • Yes
Returns:
className

getConfigObject(){vcs.vcm.util.Projection.Options}

Returns the object literal representation of this object

getEPSG(){string}

Deprecated
  • 3.5

    getId(){string} inherited

    returns the id of this object

    Deprecated
    • Yes

    getName(){string} inherited

    returns the name of the Object, the name is either given by the config Object or a uuid is generated

    Deprecated
    • Yes

    getPROJ4(){string}

    Deprecated
    • 3.5

      getProjection(){ol.proj.Projection}

      transformFrom(source, coords){ol.Coordinate}

      Name Type Description
      source vcs.vcm.util.Projection
      coords ol.Coordinate

      transformTo(dest, coords){ol.Coordinate}

      Name Type Description
      dest vcs.vcm.util.Projection
      coords ol.Coordinate

      Type Definitions

      vcs.vcm.util.Projection.Options{vcs.vcm.Object.Options}

      Properties:
      Name Type Description
      epsg string | number

      EPSG of the projection, for example: "EPSG:4326"

      proj4 string | undefined

      definition of the projection. See for example: http://spatialreference.org/ref/epsg/4326/proj4/ proj4