udoprog/c10t — Issue #238: Significantly off-center maps do not render
Author: mathuin
Created: 2012-02-01 18:28:42+00:00
State: open

I am generating maps with coordinates based on the Albers equal area projection. These coordinates are very very far from 0,0 for the most part. Here's an example:

CraterLake> worldsize

World size:
1536 north to south
1280 east to west

Smallest and largest points: (-190976,227072), (-189440,228352)

c10t does not map these very well, unless I comment out two "continue;" lines. Here's the output from git diff:

jmt@belle:~/git/c10t/src$ git diff main.cpp
diff --git a/src/main.cpp b/src/main.cpp
index dd72b4f..abf9ddc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -540,7 +540,7 @@ bool generate_map(
out_log << level->get_path() << ": (z,x) position"
<< " (" << coord.get_z() << "," << coord.get_x() << ")"
<< " out of limit" << std::endl;
- continue;
+ //continue;
}

mc::rotated_level_info rlevel =
@@ -1061,7 +1061,7 @@ bool generate_statistics(
out_log << level->get_path() << ": (z,x) position"
<< " (" << coord.get_z() << "," << coord.get_x() << ")"
<< " out of limit" << std::endl;
- continue;
+ //continue;
}

mc::level level_data(level);

With these two lines commented out, the maps render very well. With them in, there is no usage of -R -- not even 100000000 -- that will work. Help?

Jack.