Difficult spatial query using MapInfo

Posted on 2002-07-22
Last Modified: 2008-03-06
I have a relation/ table (table1) of sites/ land areas. The relation consist of the attributes/ columns site_id (integer), sub_site_id (integer) and spat_obj (wich is the spatial object representing the site). All the sites sharing the same site_id are supposed to touch each other (at least sharing a point) either directly or indirectly (trough a third site sharing the same site_id).

Unfortunately "supposted to" is not the same as "is". Can somebody help me with a query that picks out the sites that shares site_id but don't touch each other?
Question by:tunheim
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 54

Accepted Solution

nico5038 earned 200 total points
ID: 7170671
Did you check the mapinfo site.

I ran into a query to check for "inside an area":

But under >Mapinfo >SQL select of the link:
There are a lot of other queries defined.

LVL 54

Expert Comment

ID: 7347429

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.



Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question