| 190 | } |
| 191 | |
| 192 | TEST(GDALWriterTest, min) |
| 193 | { |
| 194 | std::string infile = Support::datapath("gdal/grid.txt"); |
| 195 | std::string outfile = Support::temppath("tmp.tif"); |
| 196 | |
| 197 | Options wo; |
| 198 | wo.add("gdaldriver", "GTiff"); |
| 199 | wo.add("output_type", "min"); |
| 200 | wo.add("resolution", 1); |
| 201 | wo.add("radius", .7071); |
| 202 | wo.add("filename", outfile); |
| 203 | |
| 204 | const std::string output = |
| 205 | "5.000 -9999.000 7.000 8.000 8.900 " |
| 206 | "4.000 -9999.000 6.000 7.000 8.000 " |
| 207 | "3.000 4.000 5.000 5.400 6.400 " |
| 208 | "2.000 3.000 4.000 4.400 5.400 " |
| 209 | "1.000 2.000 3.000 4.000 5.000 "; |
| 210 | |
| 211 | runGdalWriter(wo, infile, outfile, output); |
| 212 | } |
| 213 | |
| 214 | TEST(GDALWriterTest, min2) |
| 215 | { |
nothing calls this directly
no test coverage detected