Private Sub CreateGeographicReferenceSystem() ' Set up the SpatialReferenceEnvironment. ' SpatialReferenceEnvironment is a singleton object and needs to use the Activator class. Dim t As Type = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment") Dim obj As System.Object = Activator.CreateInstance(t) Dim srFact As ESRI.ArcGIS.Geometry.ISpatialReferenceFactory = obj ' Use the enumeration to create an instance of the predefined object. Dim geographicCS As IGeographicCoordinateSystem = srFact.CreateGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1983) End Sub
Dim geographicCS As IGeographicCoordinateSystem = srFact.CreateGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1983)
Dim geographicCS As IGeographicCoordinateSystem = srFact.CreateGeographicCoordinateSystem(ESRI.ArcGIS.Geometry.esriSRGeoCSType.esriSRGeoCS_NAD1983)
Imports ESRI.ArcGIS.Geometry Module Module1 Private Sub CreateGeographicReferenceSystem() ' Set up the SpatialReferenceEnvironment. ' SpatialReferenceEnvironment is a singleton object and needs to use the Activator class. Dim t As Type = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment") Dim obj As System.Object = Activator.CreateInstance(t) Dim srFact As ESRI.ArcGIS.Geometry.ISpatialReferenceFactory = obj ' Use the enumeration to create an instance of the predefined object. Dim geographicCS As IGeographicCoordinateSystem = srFact.CreateGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1983) End Sub End Module
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.