測点セットを作成する

通常、線形測点には一定間隔でラベルが付けられます。Alignment::GetStationSet() メソッドを使用すると、一定間隔で配置された測点の数、位置、およびジオメトリを計算できます。このメソッドのオーバーロードは、要求された測点のタイプに基づき測点のコレクションを返します。また、オプションで計曲線間隔および主曲線間隔も返します。

// Get all the potential stations with major interval = 100, and minor interval = 20
// Print out the raw station number, type, and location
Station[] myStations = myAlignment.GetStationSet( StationType.All,100,20);
ed.WriteMessage("Number of possible stations: {0}\n", myStations.Length);
foreach (Station myStation in myStations){                    
        ed.WriteMessage("Station {0} is type {1} and at {2}\n", myStation.RawStation, myStation.StnType.ToString(), myStation.Location.ToString());                    
}