FileGdbCoordinatePrecisionGridCreateFromRectangle Method

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

Namespace:  Aspose.Gis.Formats.FileGdb
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public static FileGdbCoordinatePrecisionGrid CreateFromRectangle(
	IPoint p1,
	IPoint p2
)

Parameters

p1
Type: Aspose.Gis.GeometriesIPoint
One corner of the rectangle.
p2
Type: Aspose.Gis.GeometriesIPoint
Opposite corner of the rectangle. Must have same dimensions as p1.

Return Value

Type: FileGdbCoordinatePrecisionGrid
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
ArgumentNullException Argument is .
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