Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computation of base cell siblings fails #4

Open
aaime opened this issue Jun 4, 2020 · 0 comments
Open

Computation of base cell siblings fails #4

aaime opened this issue Jun 4, 2020 · 0 comments

Comments

@aaime
Copy link

aaime commented Jun 4, 2020

Simple code snippet:

    Eaggr dggs = new Eaggr(DggsModel.ISEA3H);
    DggsCell center = new DggsCell("07000,0");
    System.out.println("Center address:\n" + center.getCellId());
    DggsCell[] siblings = dggs.getCellSiblings(center);
    System.out.println(
        "Siblings:\n"
            + Arrays.stream(siblings).map(d -> d.getCellId()).collect(Collectors.joining("\n")));

Fails computing the siblings with:

Exception in thread "main" uk.co.riskaware.eaggr.EaggrLibraryException: EAGGR Exception: Resolution 65535 is greater than the upper limit (40).
	at uk.co.riskaware.eaggr.Eaggr.getCellSiblings(Eaggr.java:545)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant