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

Function createLakesLayer

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

Source from the content-addressed store, hash-verified

203}
204
205async 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
216async 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

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…