Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ProjectArgs

Index

Constructors

constructor

  • new ProjectArgs(geometries: Geometry[], callback: function, errback: function, outputSpatialReference?: SpatialReference, transformation?: object): ProjectArgs
  • Initializes a new instance of the ProjectArgs class.

    Parameters

    • geometries: Geometry[]

      The geometries.

    • callback: function

      The success handler.

        • (geometries: Geometry[]): void
        • Parameters

          • geometries: Geometry[]

          Returns void

    • errback: function

      The error handler.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    • Optional outputSpatialReference: SpatialReference

      The Spatial Reference for the output.

    • Optional transformation: object

      The optional transformation.

      • Optional wkid?: number
      • Optional wkt?: string

    Returns ProjectArgs

Properties

callback

callback: function

The function to call when the method has completed. The arguments in the function are the same as the onProjectComplete event.

type

Function

Type declaration

    • (geometries: Geometry[]): void
    • Parameters

      • geometries: Geometry[]

      Returns void

errback

errback: function

An error object is returned if an error occurs on the Server during task execution.

type

Function

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

geometries

geometries: Geometry[]

The array of geometries that need to be projected.

type

Geometry[]

outputSpatialReference

outputSpatialReference: SpatialReference

The spatial reference of the output object.

type

SpatialReference

transformation

transformation: object

The well-known id {wkid:number} or well-known text {wkt:string} or for the datum transformation to be applied on the projected geometries. If a transformation is specified a value must also be specified for the transformForward property. If a transformation is not specified, a default GeoTransformation is used.

type

Object

Type declaration

  • Optional wkid?: number
  • Optional wkt?: string