({ name, resolution, source })
| 192 | } |
| 193 | |
| 194 | async function createRiversLayer({ name, resolution, source }) { |
| 195 | const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, source })}.geojson`; |
| 196 | const outputFilePath = `${outputDirGeojson}/${name}_${resolution}m/rivers.geojson`; |
| 197 | const commands = [ |
| 198 | inputFilePath, |
| 199 | `-clip ${outputDirGeojson}/${name}_${resolution}m/countries.geojson`, // Clip to the continent |
| 200 | `-o ${outputFilePath}` |
| 201 | ].join(' '); |
| 202 | await mapshaper.runCommands(commands); |
| 203 | } |
| 204 | |
| 205 | async function createLakesLayer({ name, resolution, source }) { |
| 206 | const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, source })}.geojson`; |
no test coverage detected
searching dependent graphs…