This document is archived and information here might be outdated.  Recommended version.


ISpatialReferenceFactory3.ConstructLowPrecisionSpatialReference Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReferenceFactory3.ConstructLowPrecisionSpatialReference Method

Construct a low precision spatial reference with the same scale factor as the high precision input, but with a different domain extent. If the calculated domain extent cannot cover the specified data extent, an error is returned.

[Visual Basic .NET]
Public Function ConstructLowPrecisionSpatialReference ( _
    ByVal bMatchPrecision As Boolean, _
    ByVal inSR As ISpatialReference, _
    ByVal dataExtent As IEnvelope _
) As ISpatialReference
[C#]
public ISpatialReference ConstructLowPrecisionSpatialReference (
    bool bMatchPrecision,
    ISpatialReference inSR,
    IEnvelope dataExtent
);
[C++]
HRESULT ConstructLowPrecisionSpatialReference(
  VARIANT_BOOL bMatchPrecision,
  ISpatialReference* inSR,
  IEnvelope* dataExtent
);
[C++]

Parameters bMatchPrecision
bMatchPrecision is a parameter of type bool inSR
inSR is a parameter of type ISpatialReference* dataExtent
dataExtent is a parameter of type IEnvelope*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Errors Returned

E_INVALID_ARG - This error is returned if a low precision spatial reference is passed into InSR.

-2147220986 FDO_E_IMPLEMENTATION

If maintainPrecision=True and the data extent cannot be covered with a low precision spatial reference the following error is returned: a low precision spatial reference cannot cover the specified extent at the input precision.  To successfully create a low precision spatial reference you must either reduce the data extent or set maintainPrecision=False.


 

Remarks

ConstructLowPrecisionSpatialReference creates a low precision copy of an existing high precision spatial reference.

See Also

ISpatialReferenceFactory3 Interface

.NET Snippets

Convert Spatial Reference From High To Low Precision