FileGdbCoordinatePrecisionGrid

FileGdbCoordinatePrecisionGrid class

A coordinate precision grid inside a FileGDB layer.

public sealed class FileGdbCoordinatePrecisionGrid

Constructors

Name Description
FileGdbCoordinatePrecisionGrid() The default constructor.

Properties

Name Description
MOrigin { get; set; } Gets or sets the origin of M coordinate. If set to null the default is used.
MScale { get; set; } Gets or sets the scale of M coordinate. If set to null the default is used.
XOrigin { get; set; } Gets or sets the origin of X coordinate. If set to null the default is used.
XYScale { get; set; } Gets or sets the scale of X and Y coordinates. If set to null the default is used.
YOrigin { get; set; } Gets or sets the origin of Y coordinate. If set to null the default is used.
ZOrigin { get; set; } Gets or sets the origin of Z coordinate. If set to null the default is used.
ZScale { get; set; } Gets or sets the scale of Z coordinate. If set to null the default is used.

Methods

Name Description
static CreateFromRectangle(IPoint, IPoint) Creates new FileGdbCoordinatePrecisionGrid such that all values within a rectangle are representable.

Remarks

The coordinate precision grid defines the valid domain and resolution of coordinates in FileGDB layer. Origin defines the Path to coordinate precision grid in space. Scale defines the resolution (the larger scale is, the more precise values are written). Precision grid specifies the valid range of values for coordinates:

XMin = XOrigin
YMin = YOrigin
ZMin = ZOrigin
MMin = MOrigin
XMax = XOrigin + 9e+15 / XYScale
YMax = YOrigin + 9e+15 / XYScale
ZMax = ZOrigin + 9e+15 / ZScale
MMax = MOrigin + 9e+15 / MScale

Every coordinate in the VectorLayer must be within this range. Coordinates that are outside of the range may cause read errors later on and will be processed wrong by ArcGIS. If you don’t specify any properties (keep them null) the default values are will be used. Default values depends on SpatialReferenceSystem of the VectorLayer. For geographic SpatialReferenceSystem defaults are:

XOrigin = -400
YOrigin = -400
ZOrigin = -1e5
MOrigin = -1e5
XYScale = 1e9
ZScale  = 1 / ZTolerance * 10
MScale  = 1 / MTolerance * 10

For projected SpatialReferenceSystem defaults are:

XOrigin = -2147483647
YOrigin = -2147483647
ZOrigin = -1e5
MOrigin = -1e5
XYScale = 1 / XYTolerance * 10
ZScale  = 1 / ZTolerance  * 10
MScale  = 1 / MTolerance  * 10

where XYTolerance, ZTolerance and MTolerance are values from FileGdbOptions.

See Also