({ bounds, name, resolution, source })
| 180 | } |
| 181 | |
| 182 | async function createOceanLayer({ bounds, name, resolution, source }) { |
| 183 | const outputFilePath = `${outputDirGeojson}/${name}_${resolution}m/ocean.geojson`; |
| 184 | const eraseFilePath = `${outputDirGeojson}/${unFilename}_${resolution}m/${source}.geojson`; |
| 185 | const commands = [ |
| 186 | '-rectangle bbox=-180,-90,180,90', |
| 187 | bounds.length ? `-clip bbox=${bounds.join(',')}` : '', |
| 188 | `-erase ${eraseFilePath}`, |
| 189 | `-o ${outputFilePath}` |
| 190 | ].join(' '); |
| 191 | await mapshaper.runCommands(commands); |
| 192 | } |
| 193 | |
| 194 | async function createRiversLayer({ name, resolution, source }) { |
| 195 | const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, source })}.geojson`; |
no outgoing calls
no test coverage detected
searching dependent graphs…