ArcGIS Enterprise SDK
IGeometry.SnapToSpatialReference Method
ArcGIS Developer Help

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 ( _
public void SnapToSpatialReference (


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