Runtime WPFとEngine


昨日の続き価格は定価。
描画機能がついて、Serverと同価格で125

ArcGIS Engine SU 基本 90,000円
ArcGIS Engine Geodatabase Update SU/CU 250,000円

ArcGIS Runtime Standard 25LPK 800,000円

価格 Runtime WPF端末数 EngineGDB  SU 端末数
800,000 25 2.4
1,600,000 50 4.7
2,400,000 75 7.1
3,200,000 100 9.4
4,000,000 125 11.8

ServerとEngine

取り敢えずGdbUpdateなしでもDBに値書き込み。
MPKを作って読み込み

USING

 ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using ESRI.ArcGIS.Client.Local;
using System.Diagnostics;
using System.Windows;

コード

private void Button_Click(object sender, RoutedEventArgs e)
{
  var layer = (ArcGISLocalFeatureLayer)this.MyMap.Layers["arcGISLocalFeatureLayer"];
  var ext = this.MyMap.Extent;

  Graphic g = new Graphic();
  Polyline line = new Polyline();
  PointCollection pts = new PointCollection();

  double y = ext.GetCenter().Y;

  pts.Add(new MapPoint(ext.XMin, y));
  pts.Add(new MapPoint(ext.XMax, y));

  line.Paths.Add(pts);
  g.Geometry = line;

  layer.Graphics.Add(g);

  layer.SaveEditsFailed += this.layer_SaveEditsFailed;
  layer.EndSaveEdits += this.layer_EndSaveEdits;

  Debug.Print("{0}", layer.IsGeometryUpdateAllowed(g));
  //layer.Update();
  layer.SaveEdits();

}

void layer_SaveEditsFailed(object sender, ESRI.ArcGIS.Client.Tasks.TaskFailedEventArgs e)
{
  var layer = (ArcGISLocalFeatureLayer)this.MyMap.Layers["arcGISLocalFeatureLayer"];
  layer.EndSaveEdits -= this.layer_EndSaveEdits;
  layer.SaveEditsFailed -= this.layer_SaveEditsFailed;

  Debug.Print(e.Error.Message);
}

void layer_EndSaveEdits(object sender, ESRI.ArcGIS.Client.Tasks.EndEditEventArgs e)
{
  var layer = (ArcGISLocalFeatureLayer)this.MyMap.Layers["arcGISLocalFeatureLayer"];
  layer.EndSaveEdits -= this.layer_EndSaveEdits;
  layer.SaveEditsFailed -= this.layer_SaveEditsFailed;

  MessageBox.Show(e.Success.ToString());
}

XAML

<esri:Map x:Name="MyMap" UseAcceleratedDisplay="False">
    <esri:ArcGISLocalFeatureLayer 
      ID="arcGISLocalFeatureLayer"
      LayerName="EDIT_LINE" Editable="True"
        Path="C:\tmp\EDIT.mpk"/>
</esri:Map>
カテゴリー: 設計, 動向 タグ: パーマリンク