YouTube | Facebook | X(Twitter) | RSS

空間参照の許容値・座標精度の取得

2016/9/1 (木)

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

関連記事

  • この記事を書いた人

羽田 康祐

伊達と酔狂のGISエンジニア。GIS上級技術者、Esri認定インストラクター、CompTIA CTT+ Classroom Trainer、潜水士、PADIダイブマスター、四アマ。WordPress は 2.1 からのユーザーで歴だけは長い。 代表著書『地図リテラシー入門―地図の正しい読み方・描き方がわかる』 GIS を使った自己紹介はこちら。ESRIジャパン(株)所属、元青山学院大学非常勤講師を兼務。日本地図学会第31期常任委員。発言は個人の見解です。

-プログラミング, ArcGIS
-,

WINGFIELD since1981をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む