Thank you for all your help

I just don't understand why there is not a "SearchCircle" statement
corresponding to this selection mode !

Chris

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Spencer
Simpson
Envoyé : mercredi 26 juillet 2006 21:13
À : [email protected]
Objet : RE: [MI-L] SerachInfo,SearchRect and SearchPoint or .....something
else ?


SearchPoint() and SearchRect() search all of a Map window’s selectable
layers at once, using MI’s screen picking capability, which appears to have
a builtin cache.  This is much faster than multiple SQL queries for a Map
window’s various layers.  

You can always filter the objects of the rows pre-screened by SearchRect
through an object, but that object wouldn’t have to be a polygon.  

HTH
Spencer

________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacques
Paris
Sent: Wednesday, July 26, 2006 8:11 AM
To: 'Driver, Greg 9434'; 'Christophe Brabant';
[email protected]
Subject: RE: [MI-L] SerachInfo,SearchRect and SearchPoint or .....something
else ?

Why not converttoregion(circle) and search with resulting polygon?
 
Jacques
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Driver, Greg
9434
Sent: 26 juillet 2006 04:20
To: 'Christophe Brabant'; [email protected]
Subject: RE: [MI-L] SerachInfo, SearchRect and SearchPoint or .....something
else ?
 
Chris,
 
You could always use the MBR of the circle and then use this in the
SearchRect() function.  You can then use SearchInfo() function to return the
Table/RowID of objects found within the search area and then test to see if
these objects do fall within the radius of circle.
 
Greg Driver 
System Administrator 
Applications Support 
ICT 
NOT PROTECTIVELY MARKED 
-----Original Message-----
From: Christophe Brabant [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2006 15:32
To: [email protected]
Subject: [MI-L] SerachInfo, SearchRect and SearchPoint or .....something
else ? Hi
 
There are at least 4 selection modes on a map :
 
- by clicking a point (SearchPoint(x,y))
- by selecting a rectangle (SearchRectangle(x1,y1,x2,y2)
- by selecting all the objects included into a closed polygon
- by selecting a circle with a variable radius : in this case, how to query
(by program) the objects included into the circle ? Not with SearchPoint,
not with SearchRect, ????????????????
 
Thank you
 
Chris



_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to