Giter Site home page Giter Site logo

usagi / gsi Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 88 KB

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

License: MIT License

Rust 100.00%
gsi gsimaps geospatial japan map maptiles rust cocotile layers

gsi's Introduction

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

gsi's People

Contributors

usagi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.