-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature branch for tiles xy-to-quadkey conversion #1
base: master
Are you sure you want to change the base?
Conversation
Rebase with squash to 1 commit please |
…nd quadkey - add new functionality and a whole bunch of unit tests - add polygon refinement functionality - add polygon refinement and polygon to map test
6c81ecb
to
1a3ca83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a way to go :-)
* Get flood filled image | ||
* | ||
*/ | ||
public int[][] getFloodFill(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i run
floodFill f = new floodFill();
int[][] ff = f.getFloodFill();
int a = ff.length; //-> NullPointerException.
Always return useful values for public access methods or state what to expect. what needs to be called first before this contains useful values? et
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first line will cause a compile-time error because there's not constructor without arguments. So this should never happen? I've added a comment in the constructor that we expect a non-empty image to be supplied.
import java.util.Map; | ||
import java.util.stream.IntStream; | ||
|
||
public class polygon { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CamelCase! -> Polygon.
Also, if this is a polygon composed of NDSCoordinates, it should be named "NDSPolygon"
also, it has a main method. add a separate Class "NDSPolyFillDemo" with it, and put the polygon logic into the NDSPolygon class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved the demo away from the class - still not sure if that's organized well. Might have to revisit the files later.
@@ -298,6 +300,222 @@ public void testCenterWorks() { | |||
} | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the test coverage of these tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NDSTile - 94 %.
nds-tiles repo - 82.9 %.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeated Review with current rebase
b7423fb
to
e82a2b5
Compare
This feature branch implements functionality to convert tile x/y indices to quadkey and vice-versa.
More features: