リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
readPackedFrom関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { readPackedFrom } from "@johnmorrisdotca/chikyu-earth/door";
定義
function readPackedFrom(url: string, options?: PackedElementsOptions & { signal?: AbortSignal; }): Promise<PackedCatalogue>
引数
| 名前 | 型 | 説明 |
|---|---|---|
url | string | The address of a packed file. |
options (省略可) | PackedElementsOptions & { signal?: AbortSignal; } | See |
戻り値
Promise<PackedCatalogue>
The file, by column.
例
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));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。