Thanks for all the advice guys! I figured out to do it, so I’m all set. Here’s how to do so, for anyone needing to know in the future. I won’t go into how to get images off Google maps, though if anyone’s ever interested, send me an email (rug5geri56uchi5cago5.ed5u – delete 5’s, turn 6 into an @). The way I did it was using ImageMagick for windows. I wrote a Java program to take advantage of its DOS command line, montage. Basically, this is the line:
Montage –geometry +0+0 rowX.bmp imageToMergeX.png rowX.bmp
This appends the image ToMergeX.png to the right of rowX.bmp’s image, saving the result as rowX.bmp. Using a for loop, I continually appended a sequence of images (the horizontal slices of the map) to a horizontal slice file. I created a second, outer for loop in order to get to the next slice. Here’s the program in Java, using the convention x-y.png:
Code:
import java.io.*;
public class mergehoriz
{
private static int startx = 16773;
private static int endx = 16834;
private static int starty = 24329;
private static int endy = 24397;
public static void main(String args[]) throws java.io.IOException, java.lang.InterruptedException
{
for(int y = starty; y <= endy; y++)
{
for(int x = startx; x <= endx; x++)
{
String prelim = y + "-horiz.bmp";
String merger = x + "-" + y + ".png";
String[] CMD = {"montage", "-geometry", "+0+0", prelim, merger, prelim};
Process p = Runtime.getRuntime().exec(CMD);
p.waitFor();
System.out.println(x - startx);
}
}
}
}
Now I’ll just have to put together the 60 horizontal slices, but this isn’t a big problem for me. I actually don’t know how to use montage for vertical stacking, but I won’t need to for what I do.
Take it easy everyone! Hope this helps if you ever get a similar problem!
-- Ned Rugeri