dggridR | Discrete Global Grids for R : Spatial Analysis Done Right | Map library

 by   r-barnes C++ Version: v3.0.0 License: AGPL-3.0

kandi X-RAY | dggridR Summary

kandi X-RAY | dggridR Summary

dggridR is a C++ library typically used in Geo, Map applications. dggridR has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

You want to do spatial statistics, and it’s going to involve binning. Binning with a rectangular grid introduces messy distortions. At the macro-scale using a rectangular grid does things like making Greenland bigger than the United States and Antarctica the largest continent. But this kind of distortion is present no matter what the resolution is; in fact, it shows up whenever you project a sphere onto a plane. What you want are bins of equal size, regardless of where they are on the globe, regardless of their resolution. dggridR solves this problem. dggridR builds discrete global grids which partition the surface of the Earth into hexagonal, triangular, or diamond cells, all of which have the same size. (There are some minor caveats which are detailed in the vignettes.). ![Discrete Global Grid in use] vignettes/dggrid.png). (Naturally, you can use much smaller cells than those shown in the image above.). This package includes everything you need to make spatial binning great again. Many details and examples are included in the vignette.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              dggridR has a low active ecosystem.
              It has 137 star(s) with 17 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 50 have been closed. On average issues are closed in 728 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of dggridR is v3.0.0

            kandi-Quality Quality

              dggridR has 0 bugs and 0 code smells.

            kandi-Security Security

              dggridR has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              dggridR code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              dggridR is licensed under the AGPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              dggridR releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dggridR
            Get all kandi verified functions for this library.

            dggridR Key Features

            No Key Features are available at this moment for dggridR.

            dggridR Examples and Code Snippets

            No Code Snippets are available at this moment for dggridR.

            Community Discussions

            QUESTION

            Generate an (almost) hexagonal planet with 30*s²+2 cells?
            Asked 2020-Mar-12 at 11:02

            When looking at the wiki for the game "Songs of the Eons" under development, I see the claim that the number of tiles on the planet generated could be calculated by

            30*s²+2

            in which s is the planet size. They also say that the planet is constructed by almost all hexagons and only 12 pentagons.

            I know a bit about the sub-divison techniques (like the root-3 subdivision), but I am completely lost on this.

            I have looked through this, or this, but I didn't notice one that gives the answer. Perhaps the closest one would be this, but it is still different in tile numbers.

            Someone knows how this is done? Some papers or source codes would be great.

            ...

            ANSWER

            Answered 2020-Mar-12 at 11:02

            One of the comments to the top answer in your second link mentions how this is done: The sphere is created by subdividing the triangular faces of an icosahedron. The resulting triangles can be grouped into hexagons. Some of the hexagons will cross the edges. The triangles at the tips of the original faces can only be grouped into pentagons.

            The base construction (s = 1) will give you the canonical football tesselation. With increasing size, you get:


            For each of the 12 vertices of the icosahedron, you get one pentagon. Forr each of the 30 edges of the icosahedron, you get (s − 1) hexagons. With each increase of s by 1, the number of full hexagons (in white) increases by 3·(s − 1). For s = 1, you just have one full hexagon. So for each of the 20 faces of the icosahedron, you get:

                H = 1 + 3·∑(k = 1 ... s) k
                 = 1 + 3/2 (s − 1)·s

            In total:

                T = 30·(s − 1) + 20·(1 + 3/2 (s − 1)·s) + 12
                  = 30·s − 30 + 20 + 30·(s − 1)·s + 12
                  = 30·s2 + 2

            Source https://stackoverflow.com/questions/60649175

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install dggridR

            dggridR is available from CRAN via:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/r-barnes/dggridR.git

          • CLI

            gh repo clone r-barnes/dggridR

          • sshUrl

            git@github.com:r-barnes/dggridR.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link