Select to view content in your preferred language

problem with spatial queries

3565
11
02-09-2011 10:02 AM
LisaT
by
Frequent Contributor
Hi,
My company just changed my computer and my program is now having problems performing spatial queries.  Old computer had 9.3sp1 and new computer has 9.3.1.  I am intersecting a point with lines and returning a selectionset.  On the old computer, I might get a selectionset of 2 features.  On the new computer I will get 1.  The program is a COM tool using ArcObjects in ArcMap.  I still have access to my old computer, so I have been able to test THE SAME program on both computers and check my debug output for features returned.  Any ideas on what could be going on?  Snap tolerance in ArcMap is set the same...anything else I should check?

Another tidbit is that if I run debug/compile the program on the new computer then I cannot download using an .msi on a 3rd computer without having these issues.  However, If I compile the SAME program on my old computer & download on the same 3rd computer, no problems! ALL esri dependencies are removed from the references because I am assuming that the user has ArcMap and the needed dlls.  THE 3rd COMPUTER HAS 9.3sp1.

Any help would be appreciated.  In addition, it seems that there is not as much traffic in these forums since the new format was introduced...anyone have suggestions to another forum where I may ask questions?
0 Kudos
11 Replies
NeilClemmons
Honored Contributor
I'm still not sure where the tolerance comes from


In ArcMap, choose Options from the Selection menu.  The tolerance is displayed on this dialog and is an editable value for the user.

If you're creating very small buffers you may be running into the limits of the coordinate system's resolution.  You may want to use IBufferConstruction instead of ITopologicalOperator to create your buffer.  You will also want to set the spatial reference on the buffer polygon so that it has the same coordinate system as the layer you're querying.
0 Kudos
GregRieck
Frequent Contributor
Hello,

I'm wondering if this is still the best solution as this thread is a bit dated.

I have a poly line feature class that should snap to point features. I need to know what point feature class the end points (From and To) of the poly line have snapped to. When drawing the poly line I visually see the snapping dialog indicate that the end point of the poly line has snapped to the point feature but yet when I attempt to determine the point using spatial queries the point isn't found. I suspect the problem is related to Neil's comment about the point not being exact. But still wondering if there is a better approach at 10.1?

Greg
0 Kudos