#layer #maptiles #cocotile #gsimaps

gsi

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

1 stable release

1.0.0 Sep 12, 2020

#1619 in Encoding

MIT license

98KB
521 lines

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

Dependencies

~12MB
~178K SLoC