Hello,

The MapBasic Window can do anything the MapBasic can do with the following
exceptions:
1) can not do *Branching* [if-then do-case]
2) can not do *Looping* [while-wend for-next]
3) must know the define values for parameters  [Obj_Type_Line = 3]

You can
1) DIM variables [ must issue UNDIM before doing DIM again ]
2) use those variables inside SQL-Select and other dialogs, once assigned

1) Copy and Paste the code below into the MBW
    note MBW uses only cut=Ctrl+X copy=Ctrl+C paste=Ctrl+V shortcut keys
2) Change *MyFloodTable* to the name of your flood map [or other region
table]
3) Set MI Region Style for the desired fill and border of the *buffer
circle*
4) Set Distance Units in Map>Options [ miles are default ]
5) Change the radius value in CreateCircle [ 0.0189 mile ~ 100 feet] for
your units/distance
6) select all the lines and hit enter

'------------- CODE BEGIN --------------
DIM aObj AS Object
aObj=Selection.Obj
aObj=CREATECIRCLE( CENTROIDX(aObj), CENTROIDY(aObj), 0.0189 )
INSERT INTO Cosmetic1 (Obj) VALUES (aObj)
SELECT * FROM MyFloodTable WHERE Obj INTERSECTS aObj INTO Intersect
SELECT * FROM MyFloodTable WHERE Obj CONTAINS aObj INTO Contain
SELECT * FROM MyFloodTable WHERE Obj CONTAINS ENTIRE aObj INTO Entire
BROWSE * FROM Intersect
BROWSE * FROM Contain
BROWSE * FROM Entire
UNDIM aObj
'------------- CODE END --------------

Trey Pattillo
[EMAIL PROTECTED]
www.wap3.com
-97.665333W 27.799121N
----- Original Message -----
From: "Chandu Rangari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 19 January, 2002 03:07
Subject: MI-L How to find out flood zone


> Hello,
>
>  I have two map files:  one with flood locations (Flood map for state,
>
> County) and
>  another with 100,000 customer addresses.  They have both been
>  geocoded and mapped.  Now my challenge is twofold:
>
>  1) How to find out a particular Customer address on the data
>
> map(plotting a point on the map and draw a buffer circle around it)
>  2) Then FInd out whether this buffer zone is coming inside/outside or
>
> partial floodzone by superimposing the second FLood zone map.
>
> I am using MapInfo Professional version 6.0. I am very new to this
>
> technology. Is there any other way to do this in Map Basic?
>
> Thanks in advance
>
> Chandu Rangari
> Knowledge Infotech Ltd.
> Hyderabad India.
>
>
>
>
>
> _______________________________________________________________________
> 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.

Reply via email to