Hi Carlos,
> Building a map of Europe I get the following message:
> Overflow of the NET1. The tile must be split so that there are fewer
> road in it
> Would it be possible to include tile name in the message?
Please try attached patch. If good, I will commit it.
Mark
diff --git a/src/uk/me/parabola/imgfmt/app/net/RoadDef.java b/src/uk/me/parabola/imgfmt/app/net/RoadDef.java
index 0b4f12d..9972c08 100644
--- a/src/uk/me/parabola/imgfmt/app/net/RoadDef.java
+++ b/src/uk/me/parabola/imgfmt/app/net/RoadDef.java
@@ -336,7 +336,7 @@ public class RoadDef implements Comparable {
*/
void writeRgnOffsets(ImgFileWriter rgn) {
if (offsetNet1 >= 0x400000)
- throw new ExitException("Overflow of the NET1. The tile must be split so that there are fewer road in it");
+ throw new ExitException("Overflow of the NET1. The tile (" + log.threadTag() + ") must be split so that there are fewer roads in it");
for (Offset off : rgnOffsets) {
rgn.position(off.getPosition());
diff --git a/src/uk/me/parabola/log/Logger.java b/src/uk/me/parabola/log/Logger.java
index 7b341d3..eddee6e 100644
--- a/src/uk/me/parabola/log/Logger.java
+++ b/src/uk/me/parabola/log/Logger.java
@@ -237,4 +237,8 @@ public class Logger {
public void threadTag(String tag) {
threadTags.set(tag);
}
+
+ public String threadTag() {
+ return threadTags.get();
+ }
}
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev