gsi

Crates.iogsi
lib.rsgsi
version1.0.0
sourcesrc
created_at2020-09-12 01:19:30.741791
updated_at2020-09-12 01:19:30.741791
descriptionImplementation of a map tile retriever for 'Chi-ri-in-tile' ('地理院タイル'; ja-JP) of 'Geospatial Information Authority of Japan' (GSI).
homepage
repositoryhttps://github.com/usagi/gsi
max_upload_size
id287605
size142,080
Usagi Ito (usagi)

documentation

https://docs.rs/gsi

README

GSI

Implementation of a map tile retriever for "Chi-ri-in-tile" ("地理院タイル"; ja-JP) of "Geospatial Information Authority of Japan" (GSI).

Features

  • Tile
    • Get a blob Vec<u8> of a tile using id, x, y, z, ext and params.
    • Get a image image::DynamicImage of a image tile.
    • Get a altitudes Vec<f64> of a DEM(.png; GSJ-Nishioka-Nagatsu-2015) tile.
    • Get a altitudes Vec<f64> of a DEM(.txt; CSV) tile.
  • cocotile
    • Get a tile-ids as Vec<String>.
  • Layers.txt
    • Get a Layers.txt as Layers.
      • Layers type = Layers.txt; {"layers":[{...},...]}
      • LayerVariant type = enum of Layer | LayerGroup
      • Layer type and LayerGroup type = entry of "type":"Layer" | "type":"LayerGroup"
    • Make/Store/Load CachedLayers (=HashMap<String, Layer>) feature for local Layer informations caching
      • Retrieve the other Layers.txt source file of "src" external referencing in Layer
        • Explicit enabling/disabling switching
      • .to_json_string, .to_json_vec; serde_json syntax sugar for storing a local Layer informations cache
      • .from_json_string, .from_json_slice; serde_json syntax sugar for loading a local Layer informations cache

Examples or Tests

Reference

See also

License

GSI files

These files are GSI's tiles. It's for only to use unit tests, no need essentially.

Author

Commit count: 3

cargo fmt