IT– category –
-
エレメント オブジェクトに基準縮尺を設定
[vb title="VBA"] Sub test() Dim pMxDocument As IMxDocument Set pMxDocument = ThisDocument Dim pGraphicsContainerSelect As IGraphicsContainerSelect Set pGraphicsContainerSelect = pMxDocument.FocusMap Dim pElementProperties2 As IElementProperties2 Set pElementProperties2 = pGraphics... -
縮尺を変更すると ActiveView の Extent はどのように変化するか
[vb title="VBA"] '縮尺を変更するとActiveViewのExtentはどのように変化するか Sub test() Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Dim dblA(5) As Double Dim dblB(5) As Double dblA(0) = pMxDoc.ActiveView.Extent.XMax dblA(1) = pMxDoc.ActiveView.Extent.XMin dblA(2) = pMxDoc.ActiveView.Extent.YMax dblA(3) =... -
パイ チャート レンダラー
[vb title="VBA"] Dim pPieChartRenderer As IPieChartRenderer Set pPieChartRenderer = pFeatureLayer.Renderer Debug.Print pPieChartRenderer.FlanneryCompensation 'フィールドの合計サイズを使イズを変化 Debug.Print pPieChartRenderer.MinValue 'ArcMapの場合使用するフィー性値の最小値を求める Debug.Print pPieCh... -
ラスター レイヤーの数値分類
ラスタの数値分類で設定する閾値はIRasterClassifyColorRampRenderer::Breakを使用する。閾値の範囲の下側の値を設定する。 .NET http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/000100000267000000.htm [vb title="VBA"] Sub UsingRasterClassifyColorRampRenderer() 'Get Map Dim pMxDoc As IMx... -
ジオメトリ サービスを使用した投影変換
[javascript title="JavaScript"] require([ "esri/tasks/GeometryService", "esri/tasks/ProjectParameters", "esri/SpatialReference" ], function ( GeometryService,ProjectParameters,SpatialReference ) { function addPoint(evt) { var geometryService = n... -
例外のハンドリング
[csharp title="C#"] try { } catch (Exception ex) { if (ex is COMException) { COMException exCOM = (COMException)ex; MessageBox.Show(exCOM.Message, "エラー(" + exCOM.ErrorCode.ToString() +eBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show(ex.Messag... -
フルパスからフォルダ名とファイル名を分離する方法
[vb title="Visual Basic"] Dim fileInfo As System.IO.FileInfo fileInfo = New System.IO.FileInfo(SaveFileDialog1.FileName) 'フルパス fileInfo.DirectoryName 'ディレクトリ名 fileInfo.Name 'ファイル名 [/vb] -
ジオメトリの投影変換
[python title="Python"] #コードブロック def GetPointX(point): point = point.getPart(0) srFrom = arcpy.SpatialReference(2451) #JGD_2000_Japan_Zone_9 srTo = arcpy.SpatialReference(4612) #GCS_JGD_2000 pointGeometry = arcpy.PointGeometry(point, srFrom) #引数からPointGeometryオブジェクトの作成 newPointGeom... -
ArcMap のエクステンション ダイアログのチェック状態を変更する方法
[csharp title="C#"] //エクステンションのチェックを外す操作はIExtension::Shutdownイベント内では効果がない //C# //http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/inex.html#//0000000 IUID pUID = new UIDClass(); pUID.Value = "{3C5059FE-9F15-401A-94ED-EED914D73E3E}"; //Spatial Anayst I... -
アクティブ ビューを画像にエクスポート
[vb title="VBA"] Public Sub ExportJPEG() Dim ExportFileName As String ExportFileName = "D:\Workspace\output.jpg" Dim ExportResolution As Integer ExportResolution = 300 &nbs...
