ArcObjects Library Reference  (Geometry)    

IGeometry.SpatialReference Property

The spatial reference associated with this geometry.

[Visual Basic 6.0]
Property SpatialReference As ISpatialReference
[Visual Basic .NET]
Public Property SpatialReference As ISpatialReference
[C#]
public ISpatialReference SpatialReference {get; set;}
[Java]
public  getSpatialReference (
    ISpatialReference spatialRef
)
[Java]
public void setSpatialReferenceByRef(
    ISpatialReference spatialRef
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_SpatialReference(
  ISpatialReference** spatialRef
);
[C++]
HRESULT putref_SpatialReference(
  ISpatialReference* spatialRef

);

[C++]

Parameters

spatialRef [out, retval]

  spatialRef is a parameter of type ISpatialReference

spatialRef

  spatialRef is a parameter of type ISpatialReference

Product Availability

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

Description

Returns and sets the Spatial Reference in which the geometry exists. If the spatial reference has not been set the property will return an empty ISpatialReference instance.

See Also

IGeometry Interface

Example

IGeometry_Property_Example

 


Feedback Send feedback on this page