({ name, resolution, source })
| 203 | } |
| 204 | |
| 205 | async function createLakesLayer({ name, resolution, source }) { |
| 206 | const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, source })}.geojson`; |
| 207 | const outputFilePath = `${outputDirGeojson}/${name}_${resolution}m/lakes.geojson`; |
| 208 | const commands = [ |
| 209 | inputFilePath, |
| 210 | `-clip ${outputDirGeojson}/${name}_${resolution}m/countries.geojson`, // Clip to the continent |
| 211 | `-o ${outputFilePath}` |
| 212 | ].join(' '); |
| 213 | await mapshaper.runCommands(commands); |
| 214 | } |
| 215 | |
| 216 | async function createSubunitsLayer({ name, resolution, source }) { |
| 217 | // Only include USA for 'usa' scope since the UN and NE borders don't match exactly and slivers of Canada creep in |
no test coverage detected
searching dependent graphs…