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

Function createLandLayer

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

Source from the content-addressed store, hash-verified

152}
153
154async 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
166async function createCoastlinesLayer({ bounds, name, resolution, source }) {
167 const inputFilePath = `${outputDirGeojson}/${unFilename}_${resolution}m/${source}.geojson`;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…