select * from mytable where object contains createpoint(x,y) into found

Make sure the coordinare system is correct eg set coordsys table mytable


Cheers

Martin
==================================
Martin Roundill
GIS Manager
Waitakere City Council
Private Bag 93109
Henderson
Waitakere City
New Zealand
-----Original Message-----
From: Fast, Tim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 March 2002 02:39
To: MapInfo-L (E-mail)
Subject: MI-L Polygon contains a coordinate


Is there a way in MapBasic to determine what polygon in a table contains a
particular X-Y coordinate? For example if I have a coordinate of:
 -101.6618 and 41.8473 What county in the US county table would that
coordinate fall in?

Thanks,

Tim Fast
Pioneer Hi-Bred International 



_______________________________________________________________________
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