0.1.8 • Published 6 months ago

s2-tools v0.1.8

Weekly downloads
-
License
See LICENSE file.
Repository
github
Last release
6 months ago

About

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

Install

# NPM
npm install s2-tools
# PNPM
pnpm add s2-tools
# Yarn
yarn add s2-tools
# Bun
bun add s2-tools

Components

💡 NOTE: The sizes are estimates and can change based on how you use them. Click the module link for documentation and more precise guides on file cost.

Converters

Main ModulesSizeDescription
toJSONTo JSON BadgeConvert any Reader to JSON data.
toTilesFT BadgeConvert any Reader to vector and/or raster tiles.

toJSONBadge: https://deno.bundlejs.com/badge?q=s2-tools&treeshake=[{+toJSON,toJSONLD,BufferReader+}]

toTilesBadge: https://deno.bundlejs.com/badge?q=s2-tools&treeshake=[{+toTiles,BufferReader+}]

Data Stores

Main ModulesSizeDescription
externalSortES BadgeSort large files with uint64 keys
kvKV BadgeCollection of tools using the filesystem to read and write data.
multiMapMM BadgeCollection of tools using the filesystem to read and write data.
vectorVec BadgeCollection of tools using the filesystem to read and write data.

Development

Requirements

You need the tool tarpaulin to generate the coverage report. Install it using the following command:

cargo install cargo-tarpaulin

The bacon coverage tool is used to generate the coverage report. To utilize the pycobertura package for a prettier coverage report, install it using the following command:

pip install pycobertura

Running Tests

To run the tests, use the following command:

# TYPESCRIPT
## basic test
bun run test
## live testing
bun run test:dev

# RUST
## basic test
cargo test
# live testing
bacon test

Generating Coverage Report

To generate the coverage report, use the following command:

cargo tarpaulin
# faster
cargo tarpaulin --color always --skip-clean
# bacon
bacon coverage # or type `l` inside the tool
0.1.8

6 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago