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

IGeometry.SnapToSpatialReference Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometry Interface > 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 (
HRESULT SnapToSpatialReference(

Product Availability

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


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