Public Sub Conversion() '空間参照の作成 Dim pSpatialReferenceFactory As ISpatialReferenceFactory = New SpatialReferenceEnvironment Dim pGCS_JGD2000 As IGeographicCoordinateSystem = pSpatialReferenceFactory.CreateGeographicCoordinateSystem( _ CType(esriSRGeoCS3Type.esriSRGeoCS_JapanGeodeticDatum2000, Integer)) Dim pPCS_UTMZone54_JGD2000 As IProjectedCoordinateSystem = pSpatialReferenceFactory.CreateProjectedCoordinateSystem( _ CType(esriSRProjCS4Type.esriSRProjCS_JGD2000_UTM_Zone_54N, Integer)) Dim pPoint As IPoint = New PointClass pPoint.PutCoords(135.0, 35.0) '緯度経度の設定 pPoint.SpatialReference = CType(pGCS_JGD2000, ISpatialReference) '空間参照の定義(GCS_JGD2000) pPoint.Project(CType(pPCS_UTMZone54_JGD2000, ISpatialReference)) '投影変換(JGD2000 UTM Zone54に換算) ShowMessage(pPoint.X.ToString + " " + pPoint.Y.ToString) '換算後の座標値の取得 End Sub
投影法の変更(座標換算)
2016/9/1 (木)