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

Function createOceanLayer

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

Source from the content-addressed store, hash-verified

180}
181
182async 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
194async function createRiversLayer({ name, resolution, source }) {
195 const inputFilePath = `${outputDirGeojson}/${getNEFilename({ resolution, 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…