ArcObjects Library Reference (Geometry)  

IGeometry.SnapToSpatialReference Method

Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.

[Visual Basic .NET]
Public Sub SnapToSpatialReference ( _
)
[C#]
public void SnapToSpatialReference (
);
[C++]
HRESULT SnapToSpatialReference(
void
);

Product Availability

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

Remarks

SnapToSpatialReference rounds all coordinates to the resolution defined by the geometry's spatial reference system. This has a similar effect on the geometry as storing the geometry in a Geodatabase.

See Also

IGeometry Interface