Hi,
i just came accross a strange Problem with the function intersectnodes.
I have Two Tables:
pValve: Contains one region object, made of one polygon that is made of 11 nodes.
pPipe: Contains two polyline objects, each made of one section containing 2 points
Both tables are stored in the same coordinate system and the session coordinate system is set accordingly.
See AttachmentWhen i select the intersecting lines of pPipes, both lines are selected as you can see in the screenshot, - so they intersect the Region object.
But when i now try to find out, how they intersect with this query:
select
pPipe.OID,
objectinfo(intersectnodes(pPipe.obj,pValve.obj,1),20) "nCrossings",
objectinfo(intersectnodes(pPipe.obj,pValve.obj,6),20) "nCommon",
objectinfo(intersectnodes(pPipe.obj,pValve.obj,7),20) "nAll",
objectinfo(intersectnodes(pPipe.obj,pValve.obj,1),21) "nPoly",
objectinfo(intersectnodes(pPipe.obj,pValve.obj,1),22) "nPoints"
from pPipe, pValve where (pPipe.obj intersects pValve.obj) into bb
I get a, - from my Point of view -, strange result:
See AttachmentAs you can see:
- Again both pPipe-Objects get selected, so they have to intersect the pValve-Object
- But there are no points at all in the result-Object of intersectnodes, whatever parameter i take
- and even more astonishing, the last record: There are no intersecting nodes and no common nodes but the sum of it is one!
What am i doing wrong?
Attached you can find the two tables.
I would be happy if someone could bring light into my currently clouded mind,- thanks!
Stefan