Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

readPackedFromfunction

Ask an address for a packed catalogue file once and read it. This is what packedElementsFrom does; use it when a page wants the whole record (kind, owner, launch) and not just the element sets.

Import it

import { readPackedFrom } from "@johnmorrisdotca/chikyu-earth/door";

Definition

function readPackedFrom(url: string, options?: PackedElementsOptions & { signal?: AbortSignal; }): Promise<PackedCatalogue>

Parameters

NameTypeDescription
urlstring

The address of a packed file.

options (optional)PackedElementsOptions & { signal?: AbortSignal; }

See PackedElementsOptions, and a signal that stops the read.

Returns

Promise<PackedCatalogue>

The file, by column.

Examples

import { readPackedFrom } from "@johnmorrisdotca/chikyu-earth/door";

const file = await readPackedFrom("https://example.org/catalogue/rocket-bodies.pack.gz");
console.log(file.count, file.meta["retrieved"], file.kindAt(0));

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.