• Converts an extent to a specified spatial reference.

    Parameters

    • extent: IExtent

      Extent object to check and (possibly) to project

    • outSR: ISpatialReference

      Desired spatial reference

    • geometryServiceUrl: string

      Path to geometry service providing findTransformations and project services

    • authentication: UserSession

      Credentials for the request

    Returns Promise<any>

    Original extent if it's already using outSR or the extents projected into the outSR