| 128 | } |
| 129 | |
| 130 | TEST(LasWriterTest, srs) |
| 131 | { |
| 132 | Options readerOps; |
| 133 | readerOps.add("filename", Support::datapath("las/utm15.las")); |
| 134 | |
| 135 | LasReader reader; |
| 136 | reader.setOptions(readerOps); |
| 137 | |
| 138 | Options writerOps; |
| 139 | writerOps.add("filename", Support::temppath("out.las")); |
| 140 | LasWriter writer; |
| 141 | writer.setInput(reader); |
| 142 | writer.setOptions(writerOps); |
| 143 | |
| 144 | PointTable table; |
| 145 | writer.prepare(table); |
| 146 | writer.execute(table); |
| 147 | |
| 148 | LasTester tester; |
| 149 | SpatialReference srs = tester.srs(writer); |
| 150 | EXPECT_EQ(srs, "EPSG:26915"); |
| 151 | } |
| 152 | |
| 153 | |
| 154 | TEST(LasWriterTest, srs2) |
nothing calls this directly
no test coverage detected