IGeometry.SnapToSpatialReference Method (ArcObjects .NET 10.6 SDK)
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 ( _
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