Dim pGeoDataset As IGeoDataset Set pGeoDataset = pFeatureLayer.FeatureClass '空間参照取得 Dim pSpatialReference As ISpatialReference Set pSpatialReference = pGeoDataset.SpatialReference Dim dblXmax As Double, dblYmax As Double, dblXmin As Double, dblYmin As Double pSpatialReference.GetDomain dblXmin, dblXmax, dblYmin, dblYmax 'XY許容値 Dim pSpatialReferenceTolerance As ISpatialReferenceTolerance Set pSpatialReferenceTolerance = pSpatialReference 'XY座標精度 Dim pSpatialReferenceResolution As ISpatialReferenceResolution Set pSpatialReferenceResolution = pSpatialReference '高精度ジオデータベースか判断 Dim pControlPrecision2 As IControlPrecision2 Set pControlPrecision2 = pGeoDataset.SpatialReference Debug.Print "XY許容値 :", pSpatialReferenceTolerance.XYTolerance Debug.Print "XY座標精度 :", pSpatialReferenceResolution.XYResolution(True) Debug.Print "最大X :", dblXmax Debug.Print "最小X :", dblXmin Debug.Print "最大Y :", dblYmax Debug.Print "最小Y :", dblYmin Debug.Print "高精度 :", pControlPrecision2.IsHighPrecision
空間参照の許容値・座標精度の取得
2016/9/1 (木)