MCPcopy Create free account
hub / github.com/plotly/plotly.js / createRiversLayer

Function createRiversLayer

topojson/bin/process_geodata.mjs:194–203  ·  view source on GitHub ↗
({ name, resolution, source })

Source from the content-addressed store, hash-verified

192}
193
194async 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
205async function createLakesLayer({ name, resolution, source }) {
206 const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, source })}.geojson`;

Callers 1

Calls 1

getNEFilenameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…