[Git][debian-gis-team/mkgmap-splitter][upstream] New upstream version 0.0.0+svn652

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Fri Jul 1 05:35:34 BST 2022



Bas Couwenberg pushed to branch upstream at Debian GIS Project / mkgmap-splitter


Commits:
f8f7d9eb by Bas Couwenberg at 2022-07-01T06:22:28+02:00
New upstream version 0.0.0+svn652
- - - - -


2 changed files:

- resources/splitter-version.properties
- src/uk/me/parabola/splitter/solver/SplittableDensityArea.java


Changes:

=====================================
resources/splitter-version.properties
=====================================
@@ -1,2 +1,2 @@
-svn.version: 651
-build.timestamp: 2022-04-04T13:33:59+0100
+svn.version: 652
+build.timestamp: 2022-06-17T08:25:16+0100


=====================================
src/uk/me/parabola/splitter/solver/SplittableDensityArea.java
=====================================
@@ -483,7 +483,7 @@ public class SplittableDensityArea {
 	 * @param depth               recursion depth
 	 * @param tile                the tile to split
 	 * @param rasteredPolygonArea an area describing a rectilinear shape
-	 * @return a solution (maybe empty), or null if rasteredPolygon is not rectangular
+	 * @return a solution (maybe empty), or null if rasteredPolygon is not singular
 	 */
 	private Solution findSolutionWithSinglePolygon(int depth, final Tile tile, java.awt.geom.Area rasteredPolygonArea) {
 		if (!rasteredPolygonArea.isSingular()) {
@@ -537,15 +537,13 @@ public class SplittableDensityArea {
 						area = new java.awt.geom.Area(r2);
 						area.intersect(rasteredPolygonArea);
 						part1Sol = findSolutionWithSinglePolygon(depth + 1, tile, area);
-						if (part1Sol != null && !part1Sol.isEmpty())
-							break;
-					}
+						if (part1Sol != null && !part1Sol.isEmpty()) { 
+							part0Sol.merge(part1Sol);
+							return part0Sol;
+						}
+					} 
 				}
 			}
-			if (part0Sol != null && part1Sol != null) {
-				part0Sol.merge(part1Sol);
-				return part0Sol;
-			}
 		}
 		return new Solution(maxNodes);
 	}



View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap-splitter/-/commit/f8f7d9ebb5af7cd494c98810d89d4a0601285d9d

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap-splitter/-/commit/f8f7d9ebb5af7cd494c98810d89d4a0601285d9d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220701/fa333b9c/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list