Skip to content

Instantly share code, notes, and snippets.

@tnaka78
Created June 8, 2016 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnaka78/19c0a99a3dd37a725998aa7b0eb7e9eb to your computer and use it in GitHub Desktop.
Save tnaka78/19c0a99a3dd37a725998aa7b0eb7e9eb to your computer and use it in GitHub Desktop.
ArcGIS Runtime for .NETを使ってS57 ENCを表示させるサンプルコード
<Window x:Class="ArcGISRuntimeS57ENCSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ArcGISRuntimeS57ENCSample"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
xmlns:hydro="clr-namespace:Esri.ArcGISRuntime.Hydrographic;assembly=Esri.ArcGISRuntime"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<esri:MapView x:Name="MyMapView">
<esri:Map x:Name="MyMap">
<esri:ArcGISTiledMapServiceLayer ID="BaseMap" ServiceUri="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
<hydro:HydrographicS57Layer ID="S57ENC" Path="C:\ENC_ROOT\US5SP03M\US5SP03M.000" />
</esri:Map>
</esri:MapView>
</Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace ArcGISRuntimeS57ENCSample
{
/// <summary>
/// MainWindow.xaml の相互作用ロジック
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment