Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISSpatialReferenceBuilder
Since: 2.1.0
Summary
Allows you to create and modify spatial references with custom tolerance and resolution values.
Constructors
ArcGISSpatialReferenceBuilder(int WKID)
Creates a spatial reference builder based on the given horizontal coordinate system.
Since 2.1.0
Arguments
| Name | Type | Summary |
|---|---|---|
WKID | int | The well-known ID of the horizontal coordinate system. Must be a supported well-known ID. |
Creates a spatial reference builder based on the given horizontal and vertical coordinate systems.
Since 2.1.0
Arguments
ArcGISSpatialReferenceBuilder(ArcGISSpatialReference spatialReference)
Creates a spatial reference builder with the specified spatial reference (including any customizations) as the starting point for further modifications.
Since 2.1.0
Arguments
| Name | Type | Summary |
|---|---|---|
spatial | ArcGISSpatialReference | The spatial reference to use as a starting point for further modifications |
ArcGISSpatialReferenceBuilder(string wkText)
Creates a spatial reference builder based on well-known text.
Since 2.1.0
Arguments
| Name | Type | Summary |
|---|---|---|
wk | string | A supported well-known text definition of a coordinate system. |
Properties
| Property | Type | Nullable | Readonly | Summary |
|---|---|---|---|---|
IsValid | bool | No | Yes | True if a ArcGISSpatialReference can be produced from the current builder properties, false otherwise. |
Resolution | double | No | No | The minimum distance that separates unique x,y coordinate values when stored in an |
Tolerance | double | No | No | The minimum distance that determines if two x,y coordinates are considered to be at the same location for relational and topological ArcGISGeometryEngine operations. |
Unit | ArcGISUnit | No | Yes | The unit of measure for the horizontal coordinate system of this spatial reference. |
VerticalResolution | double | No | No | The minimum distance that separates unique z-values when stored in an |
VerticalTolerance | double | No | No | The minimum distance that determines if two z-values are considered to be at the same location for ArcGISGeometryEngine operations that compare z-values. |
VerticalUnit | ArcGISLinearUnit | Yes | Yes | The unit of measure for the vertical coordinate system of this spatial reference, or null if no vertical coordinate system is set for this builder. |
VerticalWKID | int | No | Yes | The well-known ID for the vertical coordinate system (VCS), or 0 if this builder has no VCS or has a custom VCS. |
WKID | int | No | Yes | The well-known ID for the horizontal coordinate system, or 0 if this builder has a custom horizontal coordinate system. |
WKText | string | No | Yes | The well-known text definition of the horizontal and vertical coordinate systems of this builder. |
IsValid
bool IsValid
True if a ArcGISSpatialReference can be produced from the current builder properties, false otherwise.
A spatial reference builder is only considered valid if:
- ArcGISSpatialReferenceBuilder.Resolution and ArcGISSpatialReferenceBuilder.VerticalResolution are greater than zero.
- ArcGISSpatialReferenceBuilder.Tolerance and ArcGISSpatialReferenceBuilder.VerticalTolerance are greater than zero.
- ArcGISSpatialReferenceBuilder.Tolerance is at least twice the ArcGISSpatialReferenceBuilder.Resolution.
- ArcGISSpatialReferenceBuilder.VerticalTolerance is at least twice the ArcGISSpatialReferenceBuilder.VerticalResolution.
Resolution
double Resolution
The minimum distance that separates unique x,y coordinate values when stored in an ArcGIS.
The resolution represents the detail in which a feature class records the location and shape of features,
defining the number of decimal places or significant digits stored. It is the minimum distance that
separates x,y coordinate values in the ArcGISGeometry of an ArcGIS. Any coordinates that differ by
less than the resolution will still be stored as the same coordinate value. The units of
ArcGISSpatialReferenceBuilder.Resolution are the units of the horizontal coordinate system
(ArcGISSpatialReferenceBuilder.Unit) defined when this builder was created.
ArcGISSpatialReferenceBuilder.Resolution must be greater than zero for ArcGISSpatialReferenceBuilder.IsValid to be true and ArcGISSpatialReferenceBuilder.ToSpatialReference to produce a ArcGISSpatialReference. ArcGISSpatialReferenceBuilder.Tolerance must also be at least twice ArcGISSpatialReferenceBuilder.Resolution.
A separate resolution, ArcGISSpatialReferenceBuilder.VerticalResolution, is defined for the distance between z-values.
Tolerance
double Tolerance
The minimum distance that determines if two x,y coordinates are considered to be at the same location for relational and topological ArcGISGeometryEngine operations.
This value is used in relational and topological ArcGISGeometryEngine operations when determining whether two points are close enough, in the horizontal plane, to be considered as the same coordinate value when calculating the result. The units of ArcGISSpatialReferenceBuilder.Tolerance are the units of the horizontal coordinate system (ArcGISSpatialReferenceBuilder.Unit) defined when this builder was created.
ArcGISSpatialReferenceBuilder.Tolerance must be greater than zero and at least twice ArcGISSpatialReferenceBuilder.Resolution for ArcGISSpatialReferenceBuilder.IsValid to be true and ArcGISSpatialReferenceBuilder.ToSpatialReference to produce a ArcGISSpatialReference.
A separate tolerance, ArcGISSpatialReferenceBuilder.VerticalTolerance, is defined for the difference between z-values.
Unit
ArcGISUnit Unit
The unit of measure for the horizontal coordinate system of this spatial reference.
Also the unit of measure for ArcGISSpatialReferenceBuilder.Tolerance and ArcGISSpatialReferenceBuilder.Resolution.
VerticalResolution
double VerticalResolution
The minimum distance that separates unique z-values when stored in an ArcGIS.
The vertical resolution represents the detail in which a feature class records the location and shape of
features, defining the number of decimal places or significant digits stored. It is the minimum distance
that separates z-values in the ArcGISGeometry of an ArcGIS. Any z-values that differ by less than
the vertical resolution will still be stored as the same z-value. The units of
ArcGISSpatialReferenceBuilder.VerticalResolution are the units of the vertical coordinate system
(ArcGISSpatialReference.VerticalUnit) defined when this builder was created, if one was set.
ArcGISSpatialReferenceBuilder.VerticalResolution must be greater than zero for ArcGISSpatialReferenceBuilder.IsValid to be true and ArcGISSpatialReferenceBuilder.ToSpatialReference to produce a ArcGISSpatialReference. ArcGISSpatialReferenceBuilder.VerticalTolerance must also be at least twice ArcGISSpatialReferenceBuilder.VerticalResolution.
A separate resolution, ArcGISSpatialReferenceBuilder.Resolution, is defined for the distance between x,y coordinates.
VerticalTolerance
double VerticalTolerance
The minimum distance that determines if two z-values are considered to be at the same location for ArcGISGeometryEngine operations that compare z-values.
This value is used in relational and topological ArcGISGeometryEngine operations when determining whether two z-values are close enough to be considered as the same value when calculating the result. This is currently only used by ArcGISGeometryEngine.Simplify and when the input is a z-aware ArcGISPolyline; it is not used in other methods. The units of ArcGISSpatialReferenceBuilder.VerticalTolerance are the units of the vertical coordinate system (ArcGISSpatialReferenceBuilder.VerticalUnit) defined when this builder was created, if one was set.
ArcGISSpatialReferenceBuilder.VerticalTolerance must be greater than zero and at least twice ArcGISSpatialReferenceBuilder.VerticalResolution for ArcGISSpatialReferenceBuilder.IsValid to be true and ArcGISSpatialReferenceBuilder.ToSpatialReference to produce a ArcGISSpatialReference.
A separate tolerance, ArcGISSpatialReferenceBuilder.Tolerance, is defined for the distance between x,y coordinates.
VerticalUnit
ArcGISLinearUnit VerticalUnit
The unit of measure for the vertical coordinate system of this spatial reference, or null if no vertical coordinate system is set for this builder.
Also the unit of measure for ArcGISSpatialReferenceBuilder.VerticalTolerance and ArcGISSpatialReferenceBuilder.VerticalResolution.
VerticalWKID
int VerticalWKID
The well-known ID for the vertical coordinate system (VCS), or 0 if this builder has no VCS or has a custom VCS.
WKID
int WKID
The well-known ID for the horizontal coordinate system, or 0 if this builder has a custom horizontal coordinate system.
WKText
string WKText
The well-known text definition of the horizontal and vertical coordinate systems of this builder.
If this coordinate system can only be represented in WKT2 format this property returns an empty string.
Methods
| Signature | Return Type | Summary |
|---|---|---|
Returns a new ArcGISSpatialReference based on the current values of this builder. |
ToSpatialReference
ArcGISSpatialReference ToSpatialReference()
Returns a new ArcGISSpatialReference based on the current values of this builder.
Since 2.1.0
Returns ArcGISSpatialReference
A new spatial reference with the current coordinate system and precision values of this builder.