ESRI.ArcGIS.ADF.IMS
SpatialReference Property
See Also 
ESRI.ArcGIS.ADF.IMS.Data Namespace > FeatureDataset Class : SpatialReference Property




Gets or sets the SpatialReference of the data.

Syntax

Visual Basic (Declaration) 
Public Property SpatialReference As SpatialReference
Visual Basic (Usage)Copy Code
Dim instance As FeatureDataset
Dim value As SpatialReference
 
instance.SpatialReference = value
 
value = instance.SpatialReference
C# 
public SpatialReference SpatialReference {get; set;}

Remarks

The SpatialReference property may be used to specify the coordinate system, and optionally the datum transformation, of the data set in the FeatureDataset. It is recommended that all data added to the map include spatial reference information. If the data set in the FeatureDataset is from a different spatial reference than the map to which is is added, the new layer may not align properly with the existing map layers. If the data source itself provides spatial reference information, such as by having a .prj file in a shapefile, then it is not essential to add a SpatialReference here.

Make sure the SpatialReference, if set, describes the actual properties of the data. If SpatialReference misidentifies the actual coordinate properties of the data set, then the layer will not align properly.

This property is not used to change the projection of the map. To change the map projection, see MapView.SpatialReference.

See Also

© 2010 All Rights Reserved.