예제 #1
0
        public void Has_id()
        {
            var ddf = DataDefinitionFile.FromFile( "BD01LE01.DDF" );
            var dir = new LineSet( ddf );

            Assert.That( dir.Lines[ 0 ].ID, Is.Not.Null );
        }
예제 #2
0
        public void Has_coordinates_in_meters()
        {
            var ddf = DataDefinitionFile.FromFile( "BD01LE01.DDF" );
            var dir = new LineSet( ddf );

            Assert.That( dir.Lines[ 0 ].Points[ 0 ].X, Is.EqualTo( 272132.87 ) );
            Assert.That( dir.Lines[ 0 ].Points[ 0 ].Y, Is.EqualTo( 3762856.33 ) );
        }
예제 #3
0
        public void Has_polygon_ids()
        {
            var ddf = DataDefinitionFile.FromFile( "BD01LE01.DDF" );
            var dir = new LineSet( ddf );

            Assert.That( dir.Lines[0].PolygonIDLeft, Is.Not.Null );
            Assert.That( dir.Lines[ 0 ].PolygonIDLeft, Is.EqualTo( 1 ) );
            Assert.That( dir.Lines[ 0 ].PolygonIDRight, Is.Not.Null );
            Assert.That( dir.Lines[ 0 ].PolygonIDRight, Is.EqualTo( 6 ) );
        }
예제 #4
0
        public void Has_node_ids()
        {
            var ddf = DataDefinitionFile.FromFile( "BD01LE01.DDF" );
            var dir = new LineSet( ddf );

            Assert.That( dir.Lines[ 0 ].StartNodeID, Is.Not.Null );
            Assert.That( dir.Lines[ 0 ].StartNodeID, Is.EqualTo( 1 ) );
            Assert.That( dir.Lines[ 0 ].EndNodeID, Is.Not.Null );
            Assert.That( dir.Lines[ 0 ].EndNodeID, Is.EqualTo( 2 ) );
        }
예제 #5
0
        public void can_create_from_ddf()
        {
            var ddf = DataDefinitionFile.FromFile( "BD01LE01.DDF" );
            var dir = new LineSet( ddf );

            Assert.That( dir.Lines, Is.Not.Null );
            Assert.That( dir.Lines.Count, Is.EqualTo( 12 ) );
            Assert.That(dir.Lines[0].DataRow, Is.Not.Null);
            Assert.That(dir.Lines[0].Points, Is.Not.Null);
            Assert.That( dir.Lines[0].Points.Count, Is.EqualTo( 2 ) );
        }
예제 #6
0
 public void LoadLineSet( DataDefinitionFile ddf )
 {
     _lineSet = new LineSet( ddf );
 }