ESRI.ArcGIS.ADF.Local
m_mapSpatialRef Field
See Also  Send Feedback
ESRI.ArcGIS.ADF.BaseClasses Namespace > BaseCustomLayer Class : m_mapSpatialRef Field




Store the maps's spatial reference. Set by ILayer::SpatialReference.

Syntax

Visual Basic (Declaration) 
Protected m_mapSpatialRef As ESRI.ArcGIS.Geometry.ISpatialReference
Visual Basic (Usage)Copy Code
Dim instance As BaseCustomLayer
Dim value As ESRI.ArcGIS.Geometry.ISpatialReference
 
value = instance.m_mapSpatialRef
 
instance.m_mapSpatialRef = value
C# 
protected ESRI.ArcGIS.Geometry.ISpatialReference m_mapSpatialRef

Remarks

This spatial reference is set by the map. In order to support reprojection on the fly, you should make sure that both class members m_spatialRef and m_mapSpatialRef are not null and that each member holds different spatial reference (you can check that the factory code is different). Then you can use method IGeometry.Project in order to reproject your geometries when the layer draw.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.