-
Notifications
You must be signed in to change notification settings - Fork 66
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
Test the readers with osm-test data #816
Conversation
...maps-core/src/main/java/org/apache/baremaps/openstreetmap/function/CleanDuplicatePoints.java
Fixed
Show fixed
Hide fixed
...maps-core/src/main/java/org/apache/baremaps/openstreetmap/function/CleanDuplicatePoints.java
Fixed
Show fixed
Hide fixed
...maps-core/src/main/java/org/apache/baremaps/openstreetmap/function/CleanDuplicatePoints.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/test/java/org/apache/baremaps/openstreetmap/OsmTestRunner.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/test/java/org/apache/baremaps/openstreetmap/OsmTestRunner.java
Fixed
Show fixed
Hide fixed
...maps-core/src/main/java/org/apache/baremaps/openstreetmap/function/CleanDuplicatePoints.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/test/java/org/apache/baremaps/openstreetmap/OsmTestRunner.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/test/java/org/apache/baremaps/openstreetmap/OsmTestRunner.java
Fixed
Show fixed
Hide fixed
try { | ||
Files.lines(path).forEach(line -> { | ||
var needle = line.indexOf(' '); | ||
var id = Long.parseLong(line.substring(0, needle).strip()); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note test
...s-core/src/main/java/org/apache/baremaps/openstreetmap/function/RelationGeometryBuilder.java
Fixed
Show fixed
Hide fixed
} | ||
} | ||
|
||
private class OsmTest implements Comparable<OsmTest> { |
Check notice
Code scanning / CodeQL
Inner class could be static Note test
baremaps-core/src/test/java/org/apache/baremaps/openstreetmap/OsmTestData.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/main/java/org/apache/baremaps/utils/GeometryUtils.java
Fixed
Show fixed
Hide fixed
baremaps-core/src/main/java/org/apache/baremaps/utils/GeometryUtils.java
Fixed
Show fixed
Hide fixed
} | ||
} | ||
|
||
private class OsmTest implements Comparable<OsmTest> { |
Check warning
Code scanning / CodeQL
Inconsistent compareTo Warning test
compareTo
&& multiPolygon.getNumGeometries() == 1) { | ||
testGeometry = multiPolygon.getGeometryN(0); | ||
} | ||
if (!testGeometry.isValid()) { |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning test
testGeometry
this
|
No description provided.