Skip to content

fiboGrid() bug #41

Open
Open

Description

@edzer

Hi Edzer,

I found a bug using the spsample() to generate Fibonacci points when setting the sampling polygons to be the entire globe that is my bbox of the Spatial polygon is

min max

x -180 180
y -90 90

This causes a problem when using the function fiboGrid() which converts the coordinates by the following

if (max(xlim) <= 180)
subtr = 180
else
subtr = 0

“max(bbox[1, ]) <=180” actually returns “FALSE” even though in my example max(bbox[1,]) is 180.
It would be great if you could change the code in the future to deal with this numerical issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions