ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Geometry Namespace / SpatialReferenceBuilder Class / Domain Property

In This Topic
    Domain Property (SpatialReferenceBuilder)
    In This Topic
    Gets or sets the valid extent of this coordinate system. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Envelope Domain {get; set;}
    Public Property Domain As Envelope

    Property Value

    Envelope representing the domain of the spatial reference. The envelope returned is useful as a limit for zooming out on a map with this spatial reference.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The extent returned is the bounding box of the valid area of this spatial reference and might not mean that a point within this extent is a valid point in the spatial reference. If the spatial reference has z-precision or m-precision, then the z- and m-domains will also be included. Note that the domain must be a square. If you set values such that the input envelope is not a square, the larger of the width and height will take precedence. For example, let's say you set XMin = -180, YMin = -90, XMax = 180, and YMax = 90. If you then get the domain, you will see that YMax = 270. That is because the width = 360, so the height must also equal 360. The minimum x and y values are always maintained.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also