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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.