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

add missing method Polygon.addPoint(Point) #11

Merged
merged 1 commit into from
Jan 30, 2021

Conversation

bertsky
Copy link
Contributor

@bertsky bertsky commented Nov 13, 2020

This fixes compilation of GoogleJsonPageReader.handleBoundingBox().

@mikegerber
Copy link

It seems I've encountered the same build problem as @bertsky:


/home/mike/devel/prima-core-libs/java/PrimaDla/src/org/primaresearch/dla/page/io/json/GoogleJsonPageReader.java:320: error: method addPoint in class Polygon cannot be applied to given types;
                                                        ret.addPoint(getPoint(vertices.get(0)));
                                                           ^
  required: int,int
  found: Point
  reason: actual and formal argument lists differ in length
/home/mike/devel/prima-core-libs/java/PrimaDla/src/org/primaresearch/dla/page/io/json/GoogleJsonPageReader.java:321: error: method addPoint in class Polygon cannot be applied to given types;
                                                        ret.addPoint(getPoint(vertices.get(1)));
                                                           ^
  required: int,int
  found: Point
  reason: actual and formal argument lists differ in length
/home/mike/devel/prima-core-libs/java/PrimaDla/src/org/primaresearch/dla/page/io/json/GoogleJsonPageReader.java:322: error: method addPoint in class Polygon cannot be applied to given types;
                                                        ret.addPoint(getPoint(vertices.get(2)));
                                                           ^
  required: int,int
  found: Point
  reason: actual and formal argument lists differ in length
/home/mike/devel/prima-core-libs/java/PrimaDla/src/org/primaresearch/dla/page/io/json/GoogleJsonPageReader.java:323: error: method addPoint in class Polygon cannot be applied to given types;
                                                        ret.addPoint(getPoint(vertices.get(3)));
                                                           ^
  required: int,int
  found: Point
  reason: actual and formal argument lists differ in length
4 errors

@mikegerber
Copy link

This PR fixes the problem and the project builds!

@chris1010010 chris1010010 merged commit 8783d1a into PRImA-Research-Lab:master Jan 30, 2021
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

Successfully merging this pull request may close these issues.

3 participants