({ bounds, name, resolution, source })
| 152 | } |
| 153 | |
| 154 | async function createLandLayer({ bounds, name, resolution, source }) { |
| 155 | const inputFilePath = `${outputDirGeojson}/${name}_${resolution}m/countries.geojson`; |
| 156 | const outputFilePath = `${outputDirGeojson}/${name}_${resolution}m/land.geojson`; |
| 157 | const commands = [ |
| 158 | inputFilePath, |
| 159 | '-dissolve2', |
| 160 | bounds.length ? `-clip bbox=${bounds.join(',')}` : '', |
| 161 | `-o ${outputFilePath}` |
| 162 | ].join(' '); |
| 163 | await mapshaper.runCommands(commands); |
| 164 | } |
| 165 | |
| 166 | async function createCoastlinesLayer({ bounds, name, resolution, source }) { |
| 167 | const inputFilePath = `${outputDirGeojson}/${unFilename}_${resolution}m/${source}.geojson`; |
no outgoing calls
no test coverage detected
searching dependent graphs…