Hi,
Glad to hear that this might be of use to others.
We moved to Jerusalem, some 9 month ago. For my orientation, I
needed some maps on which I might scribble and which could be
thrown away after that.
For that I needed to find a set of maps covering the area of
interest, a means to know their relative positions, and a program
to assemble them in a manner as effort-saving as I was able to
think of.
The name of the maps on the site of Jerusalem municipality had
conveniently names, reflecting their relative positions. They
overlaped slightly, requiring cropping before assembling. That's
the origin of the "crop case" in my script. You do not need that.
When these maps disappeared from the net, I fell back on mapa.
In this case, there is no overlap -so no need for cropping- but
the relation between the file name and the topographic position
of the minimap is less than obvious.
After inspection of the files downloaded AT MAXIMUM RESOLUTION it
became clear that the N-S position is indexed by the result of
the integral division of its name by 625, while the W-E position
is indexed by the remainder. Example: 548506=625*877+381-the map
548506.jpg is the left (east) neigbour of the map 625*877+380=> 
548505.jpg and the north neighbour of the map 625*(877+1)+381=>
59131.jpg. AGAIN, THIS IS TRUE ONLY FOR THE MAPS DOWNLOADED AT
MAXIMUM RESOLUTION AND CHECKED ONLY FOR JERUSALEM AND IMMEDIATE
NEIGHBOURHOOD.
So the recipe is:
1-Download the relevant maps
2-Create symbolic links to relevant names. Example ln -s 54856jpg
877-380_655.jpg. This can be done in a for loop using the expr
command, or using your favourite interpreter.
3-Create the list of files to be assembled. Save it, say, as
mapslist.
4-Create the map: I'll give you here a minimal, commented version
of the command.
A=`cat mapslist`; montage +shadow +label -tile N  -geometry +0+0 $A $* 
output_file

-tile N: order the minimaps on N columns
+label: don't label the minimaps on the montage
-geometry +0+0: leave no space between the minimaps
I forgot what's "+shadow" for. Try montage -help
The $A instead of * files takes care of the correct order of the
minimaps (turns out that my mistake was even more elementary
that I thought first. Gone my hopes of practicing the C-like for
construct and bash arrays: They would be overkill in this case!)

Two more things I found useful: 1-Sometimes you don't need the
information in the whole rectangle. It is convenient to create a
blank.jpg of the right dimensions as a place-holder.
2-I found it convinent to have the limits of the minimaps discreetly
marked on the map. That's what the stroke blue -linewidth 1  -draw "line 
x,x,x,x"
and the _AAA_ intermediary files, in my complete script, are for.
Good luck, Avraham
-- 
Please avoid sending to this address attachments in excess of 2MByte, 
or any Excell or Powerpoint attachments.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to