I would think that the MapBasic window does not tell you all. If you look at
the statements starting with Create Table, you will see that nowhere there
is a specification of what to put in the table; this is done under cover by
MI between the Create Map and the Commit.
This is not the only menu command that is translated in the MBWindow by more
than one statement; Maintenance|Pack, New Layout Window are two of those but
the printed sequences can be rerun from the window, after some possible
adjustments.
The difference? If you try running from the MBWindow the statement "Run menu
command 809" (i.e. save cosmetic layer) nothing will happen, but if you use
"... 403" the requester for selecting the table to be packed will open. When
a RMC code does not work from the MBWindow, it is a sign that one cannot
replicate the menu driven operations.
I hope you will be able to understand the explanation but to understand does
not mean that one is satisfied with the way it works. And I have had my
share of frustrations trying to uncover all that.
Jacques
Jacques PARIS
e-mail (>>>19.12.00) [EMAIL PROTECTED]
For MapInfo support, see the Paris PC Consult enr. site at
http://www.total.net/~rparis/gisproducts.htm
For MapBasic questions see the J.Paris site at
http://www.total.net/~jakesp/index.htm
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dyan Catamaran
Sent: February 6, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: MI-L Buffer using MB Window
Dear Users
MI6.0 (already patched) + VM2.5, W98
Scenario:
There is a polygon layer
One polygon is selected
Able cosmetic layer
Create a 3KM buffer around the selected polygon
Save cosmetic layer (buffer) as new layer (MAP - Save Cosmetic Objects)
Browse the saved buffer
*There is one column ID with null value
It seems straightforward.
Listed below is the sequence of MB statements as they appear in the MB
Window.
Create Object As Buffer From Selection Width 3 Units "km" Type Spherical
Resolution 30 Into Table Cosmetic1 Group by Rowid
Create Table "Poly_209Buff3KM" (ID Integer) File "C:\A\Projects\Robson
Valley FD-Risk\Temp\Poly_209Buff3KM.TAB"
Create Map For Poly_209Buff3KM CoordSys Earth Projection 8, 33, "m", -117,
0, 0.9996, 500000, 0 Bounds (-7745844.29605, -9997964.94315) (8745844.29605,
9997964.94315)
Commit Table Poly_209Buff3KM Interactive
Add Map Layer Poly_209Buff3KM
Browse * From Poly_209Buff3KM
The problem is:
If I do the same procedure by highlighting these MB statements and execute,
I don't have the same result. The buffer is displayed properly but its table
shows one field (ID) but no row, no null record. Curiously, if I use the "I"
(identify tool), the saved buffer isn't even listed although it appears in
the layer scheme.
If I do these steps by menu it works fine but doesn't if it is highlighted
and executed. I don't get it.
I am doing some MB batch using MB window and this problem just surprise me.
I wonder if any of you have been there?
Is there any explanation for this to happen?
I would appreciate any help.
Dyan C. Catamaran
GIS/RS Coordinator
---------------------------------
Phero Tech Inc.
www.pherotech.com
[EMAIL PROTECTED]
P:604-940-9944
F:604-940-9433
_______________________________________________________________________
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.