FileGdbCoordinatePrecisionGrid.CreateFromRectangle

FileGdbCoordinatePrecisionGrid.CreateFromRectangle method

Creates new FileGdbCoordinatePrecisionGrid such that all values within a rectangle are representable.

public static FileGdbCoordinatePrecisionGrid CreateFromRectangle(IPoint p1, IPoint p2)
ParameterTypeDescription
p1IPointOne corner of the rectangle.
p2IPointOpposite corner of the rectangle. Must have same dimensions as p1.

Return Value

The FileGdbCoordinatePrecisionGrid such that all values within a rectangle are representable. Values outside of the rectangle are not representable, so all coordinates that will be written to FileGDB layer must be inside the rectangle.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionp1 and p2 don’t form a valid non empty rectangle: p1 or p2 is empty. ‘HasZ’ flags of p1 does not equal to ‘HasZ’ flag of p2‘HasM’ flags of p1 does not equal to ‘HasM’ flag of p2‘X’ coordinate of p1 is equal to ‘X’ coordinate of p2‘Y’ coordinate of p1 is equal to ‘Y’ coordinate of p2‘Z’ coordinate of p1 is equal to ‘Z’ coordinate of p2‘M’ coordinate of p1 is equal to ‘M’ coordinate of p2 Any coordinate is NaN or infinity.

See Also