The only example that I have seen "work" is in the data provided with MI6.
It is a "cascading" tab setup. London1.tab reads
!table
!version 300
!charset WindowsLatin1
open table "london.tab"
map from london
set map layer 1 zoom(.0001,100000)
and London.tab is the registration of a raster file
!table
!version 300
!charset WindowsLatin1
Definition Table
File "london.bil"
Type "RASTER"
....
It certainly opens a mapper with two layers in it, both of the london.bil,
but one with the automatically set zoom layering and the other with the zoom
parameters as set in London1.tab. It is possible to remove the first layer
to keep the layer with the wanted settings. A series of questions stems out
from that.
1 - place of mapbasic statements in the tab file.
I was told that MB statements should be placed between the !headers and
Definition table. After that section, it seems to be ignored. I tried to add
>>set map layer 1 zoom(.0001,100000)<< and nothing happened.
As the table definition seems to be translated by a "open tab " equivalent,
placing the above statement could not be operative, the table not being
opened yet.
2 - what statements are accepted by a tab file
The commands in the London1.tab (I may have played with them but they are
practically the original) create the 2 layers I mentioned. I tried to remove
the unwanted layer with the automatic zoom layering; it works well using the
menu, but I have not found a syntax that will be acceptable and do the
trick. Adding >>remove map window frontwindow() layer 1<< after set map
layer 2 zoom(...) will not do a thing (it works from the MapBasic window)
With that experience, I conclude that the tab solution is not an effective
way to deal with zoom layering. The same script as london1.tab + the remove
statement works paricularly well as a workspace.
An alternative is to load all the necessary images and use ZoomLayr.mbx that
will do just reset the zoom layering for all the image-tabs, but it must be
run each time an image is open.
ZoomLayr is an MLC_INI application in
http://www.paris-pc-gis.com/mlc/mlc_main_en.htm
Jacques Paris
e-mail [EMAIL PROTECTED]
MapInfo/MapBasic support http://www.paris-pc-gis.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Franco P.
Peta
Sent: September 12, 2001 12:42
To: MapInfo
Subject: MI-L Set zoom to layer in .tab file
Hi there
a quicky..
can i set the display zoom max and min with in the tab file so it is set =
since the open of the table? If yes, how?
TIA
Juanse
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.