Envelope

constructor(min: Point, max: Point)

Creates an envelope from any two points. The spatial reference of the points must be the same. The spatial reference of the result envelope comes from the points. If the values for min parameters are bigger than max parameters then they are re-ordered. The resulting envelope always has min less than or equal to max.

Since

200.1.0

See also


constructor(xMin: Double, yMin: Double, xMax: Double, yMax: Double, zMin: Double? = null, zMax: Double? = null, mMin: Double? = null, mMax: Double? = null, spatialReference: SpatialReference? = null)

Creates an Envelope based on the x, y, z and m values with a spatial reference.

If the values for min parameters are bigger than max parameters then they are re-ordered. The resulting envelope always has min less than or equal to max. The Z values are applied only if both minimum and maximum values are not null.

Since

200.1.0

Parameters

xMin

the x minimum value for the envelope

yMin

the y minimum value for the envelope

xMax

the x maximum value for the envelope

yMax

the y maximum value for the envelope

zMin

the x minimum value for the envelope, default is null.

zMax

the z maximum value for the envelope. default is null.

mMin

the m minimum value for the envelope, default is null.

mMax

the m maximum value for the envelope, default is null.

spatialReference

the spatial reference for the envelope, the default is null.


constructor(center: Point, width: Double, height: Double, depth: Double? = null)

Creates an envelope with a center point, width, height, and depth. The spatial reference of the resulting envelope comes from the center point.

Since

200.1.0

Parameters

center

the center point for the envelope

width

the width of the envelope around the center point

height

the height of the envelope around the center point

depth

the depth of the envelope around the center point. The default is null.