public static Geometry ReplaceSpatialReference( Geometry sourceGeometry, SpatialReference newSpatialReference )
Public Shared Function ReplaceSpatialReference( _ ByVal sourceGeometry As Geometry, _ ByVal newSpatialReference As SpatialReference _ ) As Geometry
Parameters
- sourceGeometry
- The source geometry that needs a new spatial reference.
- newSpatialReference
- New spatial reference to set.
Return Value
Returns new Geometry instance if sourceGeometry.SpatialReference != newSpatialReference
The method returns sourceGeometry
if the newSpatialReference == sourceGeometry.SpatialReference.