Changeset 919

Show
Ignore:
Timestamp:
10/09/08 16:44:19 (3 months ago)
Author:
mloskot
Message:

csharp: Added svn:keywords with Id to *.cs files. Reformatted source code in all *.cs files, fixed EOL to CRLF. This submission does not include any changes in algorithms or procedures.

Location:
trunk/csharp
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/csharp/HelloWorldLAS/Program.cs

    r905 r919  
    1 using System; 
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Sample program demonstrating use of libLAS for .NET/Mono 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 ****************************************************************************/ 
     41 
     42using System; 
    243using System.Text; 
    344using LibLAS; 
  • trunk/csharp/NUnitTest/LASFilesClass.cs

    r900 r919  
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Test cases of LASFile class, .NET/Mono bindings 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 ****************************************************************************/ 
     41 
    142using System; 
    243using System.Collections.Generic; 
     
    1657            //static public string TO_core_last_zoom = "TO_core_last_zoom"; 
    1758        } 
    18  
    1959    } 
    2060} 
  • trunk/csharp/NUnitTest/LASGuidTest.cs

    r900 r919  
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Test cases of LASGuid class, .NET/Mono bindings 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 ****************************************************************************/ 
     41 
    142using System; 
    243using System.Collections.Generic; 
     
    445using NUnit.Framework; 
    546using LibLAS; 
    6  
    747 
    848namespace NUnitTest 
     
    1656        protected void SetUp() 
    1757        { 
    18  
    1958        } 
    2059 
    21         
    2260        [Test] 
    2361        public void ConstructionfromString() 
     
    2765            LASGuid guid2 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301"); 
    2866 
    29  
    3067            Assert.AreNotSame(guid1, guid2); 
    31  
    32  
    3368            Assert.AreEqual(guid1.ToString(), "00000000-0000-0000-0000-000000000000"); 
    3469            Assert.AreEqual(guid2.ToString().ToUpper(), "3F2504E0-4F89-11D3-9A0C-0305E82C3301"); 
    3570            Assert.IsNotNull(guid1); 
    3671            Assert.IsNotNull(guid2); 
    37          
    38  
    3972        } 
    4073 
     
    4275        public void Equals() 
    4376        { 
    44             
    4577            LASGuid guid1 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301"); 
    4678            LASGuid guid2 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301"); 
    4779 
    48  
    4980            Assert.IsTrue(guid1.Equals(guid2)); 
    50  
    51          
    52  
    5381        } 
    54          
    55  
    5682    } 
    5783} 
    58  
  • trunk/csharp/NUnitTest/LASHeaderTest.cs

    r900 r919  
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Test cases of LASHeader class, .NET/Mono bindings 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 ****************************************************************************/ 
     41 
    142using System; 
    243using System.Collections.Generic; 
     
    546using LibLAS; 
    647 
    7  
    848namespace NUnitTest 
    949{ 
     
    1151    public class LASHeaderTest 
    1252    { 
    13         // LASPoint. 
    14  
    1553        [SetUp] 
    1654        protected void SetUp() 
    1755        { 
    18  
    19         } 
    20  
    21         [Test] 
    22  
     56        } 
     57 
     58        [Test] 
    2359        public void CopyConstructor() 
    2460        { 
    2561            LASHeader header = new LASHeader(); 
    26           //  string sig = "LASF and garbage"; 
    27  
    28  
     62            //  string sig = "LASF and garbage"; 
    2963            //    header.FileSignature = sig; 
    3064            //    Assert.AreEqual(header.FileSignature.Length,4); 
     
    4983            // string sig = "LASF and garbage"; 
    5084 
    51  
    5285            Assert.AreEqual(header.FileSignature.Length, 4); 
    53  
    5486            Assert.AreEqual(header.FileSignature, "LASF"); 
    5587 
    5688            // I can not set FileSignature from c# API because i am a bad guy. 
    5789            //header.FileSignature = "LASF"; 
    58  
    5990        } 
    6091 
     
    6293        public void FileSourceId() 
    6394        { 
    64  
    6595            LASHeader h1 = new LASHeader(); 
    6696 
     
    6898            UInt16 id2 = 65535; 
    6999            UInt16 overflowed = 0; 
    70  
    71100 
    72101            h1.FileSourceId = id1; 
     
    75104            Assert.AreEqual(h1.FileSourceId, id2); 
    76105 
    77  
    78106            // Unsigned overflow 
    79107            // Likely compiler warning: truncation from int to liblas::uint16_t 
     
    82110        } 
    83111 
    84  
    85112        [Test] 
    86113        public void Reserved() 
    87114        { 
    88  
    89             LASHeader h = new LASHeader(); 
    90  
     115            LASHeader h = new LASHeader(); 
    91116 
    92117            Assert.AreEqual(h.Reserved, 0); 
    93  
    94  
    95118        } 
    96119 
     
    98121        public void ProjectId() 
    99122        { 
    100  
    101123            LASHeader h = new LASHeader(); 
    102124 
     
    113135            //ensure_not(h.GetProjectId().is_null()); 
    114136            //ensure_equals(h.GetProjectId(), id); 
    115  
    116  
    117         } 
    118  
     137        } 
    119138 
    120139        [Test] 
    121140        public void MinorMajorVersion() 
    122141        { 
    123  
    124142            LASHeader h = new LASHeader(); 
    125143            h.VersionMinor = 0; 
     
    142160            { 
    143161                Assert.AreEqual(e.Message, "Exception in Set Header VersionMajor."); 
    144  
    145162            } 
    146163 
     
    154171            { 
    155172                Assert.AreEqual(e.Message, "Exception in Set Header VersionMinor."); 
    156  
    157             } 
    158  
    159  
    160  
     173            } 
    161174        } 
    162175 
     
    186199        { 
    187200            LASHeader h = new LASHeader(); 
    188            // Assert.AreEqual(h.GetPointRecordsByReturnCount(5),5); 
    189  
    190  
    191         h.SetPointRecordsByReturnCount(0, 100); 
    192         //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
    193         Assert.AreEqual(h.GetPointRecordsByReturnCount(0), 100); 
    194  
    195         h.SetPointRecordsByReturnCount(1, 101); 
    196         //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
    197         Assert.AreEqual(h.GetPointRecordsByReturnCount(1), 101); 
    198  
    199         h.SetPointRecordsByReturnCount(2, 102); 
    200         //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
    201         Assert.AreEqual(h.GetPointRecordsByReturnCount(2), 102); 
    202  
    203        h.SetPointRecordsByReturnCount(3, 103); 
    204         //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
    205        Assert.AreEqual(h.GetPointRecordsByReturnCount(3), 103); 
    206  
    207         h.SetPointRecordsByReturnCount(4, 104); 
    208         //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
    209         Assert.AreEqual(h.GetPointRecordsByReturnCount(4), 104); 
    210  
    211         try 
    212         { 
    213             // 5 is out of range 
    214             h.SetPointRecordsByReturnCount(5, 500); 
    215             //donŽt get the next line... 
     201            // Assert.AreEqual(h.GetPointRecordsByReturnCount(5),5); 
     202 
     203            h.SetPointRecordsByReturnCount(0, 100); 
     204            //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
     205            Assert.AreEqual(h.GetPointRecordsByReturnCount(0), 100); 
     206 
     207            h.SetPointRecordsByReturnCount(1, 101); 
     208            //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
     209            Assert.AreEqual(h.GetPointRecordsByReturnCount(1), 101); 
     210 
     211            h.SetPointRecordsByReturnCount(2, 102); 
     212            //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
     213            Assert.AreEqual(h.GetPointRecordsByReturnCount(2), 102); 
     214 
     215            h.SetPointRecordsByReturnCount(3, 103); 
     216            //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
     217            Assert.AreEqual(h.GetPointRecordsByReturnCount(3), 103); 
     218 
     219            h.SetPointRecordsByReturnCount(4, 104); 
     220            //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5); 
     221            Assert.AreEqual(h.GetPointRecordsByReturnCount(4), 104); 
     222 
     223            try 
     224            { 
     225                // 5 is out of range 
     226                h.SetPointRecordsByReturnCount(5, 500); 
     227                //donŽt get the next line... 
    216228                Assert.AreEqual(2, 5); 
    217         } 
    218         catch (LASException e) 
    219         { 
    220             Assert.AreEqual(e.Message, "Exception in Set Header SetPointRecordsByReturnCount."); 
    221         } 
    222  
    223  
    224          
    225         } 
    226  
     229            } 
     230            catch (LASException e) 
     231            { 
     232                Assert.AreEqual(e.Message, "Exception in Set Header SetPointRecordsByReturnCount."); 
     233            } 
     234        } 
    227235    } 
    228236} 
    229  
  • trunk/csharp/NUnitTest/LASPointTest.cs

    r900 r919  
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Test cases of LASPoint class, .NET/Mono bindings 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 ****************************************************************************/ 
     41 
    142using System; 
    243using System.Collections.Generic; 
     
    546using LibLAS; 
    647 
    7  
    848namespace NUnitTest 
    949{ 
     
    1151    public class LASPointTest 
    1252    { 
    13  
    1453        LASPoint point = new LASPoint(); 
    1554 
     
    1756        protected void SetUp() 
    1857        { 
    19  
    20  
    2158        } 
    2259 
     
    2461        public void SetPointCoordinates() 
    2562        { 
    26  
    2763            LASPoint pointB = new LASPoint(); 
    2864            pointB.X = 23.0; 
     
    4884        public void PointValid() 
    4985        { 
    50  
    5186            LASPoint pointB = new LASPoint(); 
    5287            pointB.X = 23.0; 
     
    5489            Assert.IsTrue(point.IsValid()); 
    5590            Assert.IsTrue(pointB.IsValid()); 
    56  
    57         } 
     91        } 
     92 
    5893        [Test] 
    5994        public void ReturnNumber() 
     
    80115                    (int)LASPoint.DataMemberFlag.eReturnNumber); 
    81116            } 
    82  
    83117        } 
    84118 
     
    107141                    (int)LASPoint.DataMemberFlag.eNumberOfReturns); 
    108142            } 
    109  
    110         } 
    111  
     143        } 
    112144 
    113145        [Test] 
     
    123155            //Assert.AreEqual(point.ScanDirection, num2); 
    124156 
    125  
    126157            //try 
    127158            //{ 
     
    135166            //        (int)LASPoint.DataMemberFlag.eScanDirection); 
    136167            //} 
    137  
    138168        } 
    139169 
     
    163193                    (int)LASPoint.DataMemberFlag.eFlightLineEdge); 
    164194            } 
    165  
    166195        } 
    167196 
     
    178207            string expected = "10111011"; 
    179208            byte bits = pointS.ScanFlags; 
    180             Assert.AreEqual(Convert.ToString(pointS.ScanFlags,2), (expected)); 
    181           
     209            Assert.AreEqual(Convert.ToString(pointS.ScanFlags, 2), (expected)); 
     210 
    182211            LASPoint pointN; 
    183212            pointN = pointS.Copy(); 
    184213 
    185214            Assert.AreEqual(pointN.ScanFlags, pointS.ScanFlags); 
    186  
    187  
    188         } 
    189  
     215        } 
    190216 
    191217        [Test] 
     
    214240            //        (int)LASPoint.DataMemberFlag.eClassification); 
    215241            //} 
    216  
    217242        } 
    218243 
     
    242267                    (int)LASPoint.DataMemberFlag.eScanAngleRank); 
    243268            } 
    244  
    245         } 
    246  
     269        } 
    247270 
    248271        [Test] 
     
    254277            point.UserData = num1; 
    255278            Assert.AreEqual(point.UserData, num1); 
    256  
    257  
    258         } 
    259  
     279        } 
    260280    } 
    261281} 
    262  
  • trunk/csharp/NUnitTest/LASReaderTest.cs

    r900 r919  
     1/****************************************************************************** 
     2 * $Id$ 
     3 * 
     4 * Project:  libLAS - http://liblas.org - A BSD library for LAS format data. 
     5 * Purpose:  Test cases of LASReader class, .NET/Mono bindings 
     6 * Author:   Martin Vales, martin_gnu@mundo-r.com 
     7 * 
     8 ****************************************************************************** 
     9 * Copyright (c) 2008, Martin Vales 
     10 * 
     11 * All rights reserved. 
     12 *  
     13 * Redistribution and use in source and binary forms, with or without  
     14 * modification, are permitted provided that the following  
     15 * conditions are met: 
     16 *  
     17 *     * Redistributions of source code must retain the above copyright  
     18 *       notice, this list of conditions and the following disclaimer. 
     19 *     * Redistributions in binary form must reproduce the above copyright  
     20 *       notice, this list of conditions and the following disclaimer in  
     21 *       the documentation and/or other materials provided  
     22 *       with the distribution. 
     23 *     * Neither the name of the Martin Isenburg or Iowa Department  
     24 *       of Natural Resources nor the names of its contributors may be  
     25 *       used to endorse or promote products derived from this software  
     26 *       without specific prior written permission. 
     27 *  
     28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
     29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT  
     30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS  
     31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE  
     32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  
     33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,  
     34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  
     35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  
     36 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,  
     37 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  
     38 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY  
     39 * OF SUCH DAMAGE. 
     40 **********