ArcGIS– category –
- 
	
		
	ラスター レイヤーでストレッチ分類の凡例を設定する方法
[csharp title="C#"] private void testToolStripMenuItem_Click(object sender, EventArgs e) { IRasterLayer pRasterLayer = (IRasterLayer)axMapControl1.get_Layer(0); IRasterStretchColorRampRenderer pRasterStretchColorRampRenderer = (IRasterStorRampRenderer)pRasterLayer.Renderer; IRasterStretch2 pRasterStret... - 
	
		
	Locator を使用したバッチ ジオコーディング
[javascript title="JavaScript"] function doAddressToLocations() { var taskLocator = new Locator("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"); taskLocator.on("addresses-to-locations-complete", showResults); //イベント ハンドリング //入力住所群 var address... - 
	
		
	二重ループによるワークスペースとフィーチャクラスの取得
[python title="Python"] #coding:cp932 # インポート import arcview, arcpy # ワークスペースを含むフォルダーを指定 arcpy.env.workspace = r"C:\Temp\Geodatabases" listWS = arcpy.ListWorkspaces("*") # List 関数の実行 for ws in listWS: print "ワークスペース: " + ws # ワークス... - 
	
		
	保護中: MEKI作成サンプル
この記事はパスワードで保護されています - 
	
		
	Map を用紙の最大範囲で印刷する方法
[vb title="VBA"] '****************************************************************************** ' 定義 :Function fncPrintMap ' 概要 :Mapを用紙全体に印刷する関数 ' 第1引数 :pActiveVeiw As IActiveView ActiveView ' 第2引数 :intOrientation As Integer 用紙方向 縦:1, 横:2 ' 第3引数 ... - 
	
		
	ラベルエンジンを Maplex に変更する方法
[vb title="VBA"] 'http://help.arcgis.com/en/sdk/10.0/vba_desktop/conceptualhelp/index.html#//0001000000m0000000 '標準ラベルエンジンはAnnotateMapをインスタンス化 Public Sub ChangeMxDocumentLabelEngine() 'This simple subroutine will change the label engine for all data frames in a map to be the maplex la... - 
	
		
	ASCII グリッドをラスターに変換して空間参照を定義
[vb title="VBA"] 'ラスタをASCIIグリッドに変換し、さらに投影法を定義して新しいRasterDatasetを作成するサンプル 'ラスタの設定を変更すると上書きできないので、ASCII変換用に一旦テンポラリのRasterDatasetを作成している Sub subConvertASCII2Raster() 'ASCIIファイルフルパス Dim srcFile As String srcFile = "F:\My Docume... - 
	
		
	円ジオメトリへアクセスして半径を変更
[csharp title="C#"] //エレメントの取得 IGraphicsContainerSelect pGCS = (IGraphicsContainerSelect)axMapControl1.Map; IElement pElement = pGCS.SelectedElement(0); //エレメントからジオメトリを取得 IGeometry pGeometry = pElement.Geometry; ISegmentCollection pSegmentCollection = (ISegmentCollection)pGeometry; ICircular... - 
	
		
	選択フィーチャにズーム
[csharp title="C#"] ISelectionSet pSelectionSet = pFeatureSelection.SelectionSet; IEnumGeometry pEnumGeometry = new EnumFeatureGeometryClass(); IEnumGeometryBind pEnumGeometryBind = (IEnumGeometryBind)pEnumGeometry; pEnumGeometryBind.BindGeometrySource(null,pSelectionSet); System.Type t = System.Type.GetTypeFromP... - 
	
		
	ArcScene と ArcGlobe によるクリック地点のポイント座標取得
[vb title="VBA"] 'ArcSceneによるクリック地点のポイント座標取得 Private Sub UIToolControl1_MouseDown(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long) Dim pSxDocument As ISxDocument Set pSxDocument = ThisDocument Dim pSceneGraph As ISceneGraph Set pSceneGraph = pSxDocu... 
