How to find the point of intersection of the two geometry?

Hello
Could someone give some suggestions on how to find the point of intersection of the two geometry?
I need just point. (x, y, z)
Thank you

Can you post the full result of geometry returned?

What you should have as a result:

MDSYS. SDO_GEOMETRY (2001, 1, NULL, MDSYS.) SDO_ELEM_INFO_ARRAY (1,1,1), MDSYS. SDO_ORDINATE_ARRAY (2.0,2.0))

Notice the sdo_intersection will use only the sdo_ordinate_array, even if the result is a point! (with the SDO_POINT is NULL.)

where do you find these x, y, z values of?

On your other question:

-using the operator space sdo_relate (with mask = ANYINTERACT) will return in pairs, the result of the intersection of each anyinteracting polygon, line combination.

-of course, these results will vary from point, multipoint, line or multiline even depending on how the interaction takes place.

-try to explain a bit more what do you mean 'I want only points to return' of nit.

Luke

Tags: Database

Similar Questions

  • How to find a point of intersection between two paths in the hierarchy? (2 G 11)

    Hi all!

    I need your help to write a hierarchical query.

    Suppose that we have a table hierarchycal as

    WITH h AS (SELECT 0 AS rn, to_number(NULL) AS prn, 'root' AS point_name   FROM dual
    UNION SELECT 1 AS rn, 0 AS prn, 'a' AS point_name  FROM dual
    UNION SELECT 2 AS rn, 1 AS prn, 'b' AS point_name  FROM dual
    UNION SELECT 3 AS rn, 1 AS prn, 'c' AS point_name  FROM dual
    UNION SELECT 4 AS rn, 2 AS prn, 'd' AS point_name  FROM dual
    UNION SELECT 5 AS rn, 3 AS prn, 'e' AS point_name  FROM dual
    UNION SELECT 6 AS rn, 2 AS prn, 'f' AS point_name  FROM dual
    UNION SELECT 7 AS rn, 3 AS prn, 'g' AS point_name  FROM dual
    UNION SELECT 8 AS rn, 6 AS prn, 'h' AS point_name  FROM dual
    UNION SELECT 9 AS rn, 5 AS prn, 'i' AS point_name  FROM dual
    UNION SELECT 10 AS rn, 7 AS prn, 'j' AS point_name  FROM dual
    UNION SELECT 11 AS rn, 10 AS prn, 'k' AS point_name  FROM dual)
    SELECT h.* 
    FROM h 
    CONNECT BY PRIOR h.rn=h.prn
    START WITH h.prn IS NULL
    

    I chose a single line, with rn = 11 for example, as a "starting point." After that I need to select one or more rows in this table under certain conditions. Whether rn = 8 and 9, for example. By the same query, to the next step, for each point that I chose by condition, I need to calculate, how far is it to the "starting point".

    I think, I need to find a point of intersection of the path from the root to the selected point along the same path of the "starting point". By comparing this tip I'll can understand which of them is closer to the "start".

    The only thing that I have arrived, it's trying to compare the results of sys_connect_by_path...

    Hello

    This indicates to what extent each of the nodes 'interest' are from the node of "start":

    WITH connect_by_results AS

    (

    SELECT CONNECT_BY_ROOT rn: the NURSE

    CONNECT_BY_ROOT SUBSTR (point_name,

    1

    8

    ) AS node_type

    rn AS ancestor

    LEVEL AS lvl

    H

    START WITH point_name = 'start '.

    OR point_name LIKE '% interest '.

    Rn = prn PRIOR CONNECTION

    )

    SELECT i.rn

    , MIN (i.lvl + s.lvl) - 2 AS distance

    Connect_by_results I have

    JOIN connect_by_results s ON s.ancestor = i.ancestor

    WHERE s.node_type = 'start '.

    AND i.node_type = 'interest '.

    GROUP BY i.rn

    ORDER BY i.rn

    ;

    Exit: (from your sample data, where 11 is the starting node):

    DISTANCE OF RN

    ---- --------

    8        7

    9        5

    14 3

  • How to find the question after hp support assistant opening when the icon indicates the red exclamation point?

    Hi guys,.

    A new pavilion g6 and sometimes get the red exclamation on the HP SA but when I open the screen of the wizard how to find the issue which marked the icon?

    The Assistant has just opened, and I see the screen normal but not extra "Pavilion" to tell me what needs attention?

    Is this normal?

    See you soon!

    Ian

    screenshot of open SA HP...

    Hello again, TheHandyCrowd, and ionamartin123.

    Made this suggestion solves your problems?  I was curious about the result.

    I hope that you are having a great day!

  • How to find the velocity of an incremental encoder

    I use the RE22I encoder which can give up to 8192 pulses per revolution, I have A, B, Z reports that I use an fpga as a controller Please help me.

    How to find the speed of the encoder using these signals I'm going to have a clock in the fpga sysytem will help.

    Start by looking at the information on Wikipedia on the rotary encoders and a book on encoders OR white.  These articles will give you a basic understanding of the encoder and the signals it produces.

    With proper decoding, you can get the direction and momentum of each of the points on your encoder 8192.  If the tree can reverse (same vibration on one point unique all-in-mnearly stationary), full decoding must be used.  If data are only of interest while the tree turns in a direction and speed will not close to zero, a simple decoding can be used.  Decoding of a quadrature encoder is a good way to learn to use a state machine.  Signals A and B can exist in only four possible combinations, but the possible transitions to do interesting things.

    Define DECODING is a purely logical exercise and it is a simple coding in LabVIEW, such as a state machine.  There are examples, Desing Patterns, or project templates (depending on your version of LV) that come with LV to help you get started.

    By using the channels A and B you can update your calculation of velocity 8192 times per turn.  With the help of Z you get only an update by the revolution. You use depends on your application.  The pulse of Z is also useful to define a reference position for the measurement of phase angle.

    Lynn

  • How to find the size of the virtual server?

    Hello

    We intend to pass our applications 4 virtual servers has 2 physical servers. In this process, we need to identify the size of the current virtual servers to use as a starting point to configure or add the size in physical server. can anyone provide information on whats stats to be noticed and how to find the size of the current virtual servers?

    Thank you

    Hi Sekhar, there.

    in general, it is a fairly complex task if you want to size the new platform correctly, i.e. not to oversize it and have very low use below, i.e. spend too much on equipment.

    In fact, it's the first thing to consider the level of use of the new platform. Most likely your organization (HW and infrastructure) has targets to a minimum. optimal and maximum usage levels.

    In the case where you do not have this as a starting point, and then you continue with load average and the current peak (CPU, RAM, NW). To these basic lines, you can use the statistics of WLS Admin Console, where the use of CPU and memory statistics are presented since the server was last started. For more detailed statistics, you can use WLDF to capture measures key at regular intervals, and then base your analysis of these data.

    Finally and above all, the size of FS, but I've seen some comments above related to the size of the FS.

    HTH,

    A.

  • How to find the last pasted paragraphs FMP?

    I'm sticking FMP several objects at once in a file (a file of changes to the sections containing the changebars) in the main text flow. I want a separator line to go at the end of each pasted section, so I try to insert one after the paste operation. But instead of a line between each section, all lines are added at the end of the file, after all the sections. So if there are 3 glued sections at the end of the file are three lines. My code is below, do you know how I could fix this?

    Thank you, Mark

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var firstChgPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    var lastPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    }

    Hi Mark,

    The problem is that the dough does not occur when you think. The dividing line is added at the end of the file, but are not your actions of dough. Actually, I think that maybe a little random where pasta is produced, because this line:

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    .. .is does not create a valid text location. You can check this by abandoning the service after:

    changesDoc.TextSelection = changesTRange;

    .. and look at where's the insertion point. It will probably be everywhere where you left it last, because the call is not valid. I can't tell you exactly why, except that it has something to do with the fact that you are using the last paragraph in the stream. There is something weird to try to define a range of full-paragraph text with the last paragraph. I'm sure it's related to how the last TFP in a stream does not show a mark of FMP, but beyond that, I don't know how to do what you're trying to do with the last paragraph.

    Having no knowledge of how do it right, any time I need to do this, I create a paragraph "dummy" at the end of the flow to fill that space strange 'last FMP", then do the work around it. In the end, I just want to remove fake TFP. I don't know if it's a good idea or not, but it's the only way I ever get it to work and it sorts the mirror how you could do this manually in the GUI.

    With this, I modified your script as follows, and it seems to work better. Note that I also modified the logic of how to find the last paragraph of the flow by writing a separate function. Your call to the 'FirstTextFrameInFlow' is OK, unless your doc begins to span several pages and/or begins with several empty pages. The function I wrote ensures that you really the last TFP in the stream.

    I hope this helps.

    Russ

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var lastPgf = getLastPgf (changesDoc);

    var dummyPgf = changesDoc.NewSeriesPgf (lastPgf);

    var changesTloc = new TextLoc (dummyPgf, 0);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    Don't forget that last TFP is now fake TFP

    lastPgf = getLastPgf (changesDoc);

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf.PrevPgfInFlow);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    dummyPgf.Delete ();

    }

    function getLastPgf (doc)

    {

    textFrame var is doc. MainFlowInDoc.LastTextFrameInFlow;

    var lastPgf = textFrame.LastPgf;

    While (! lastPgf.ObjectValid () & textFrame.ObjectValid ())

    {

    textFrame = textFrame.PrevTextFrameInFlow;

    lastPgf = textFrame.LastPgf;

    }

    Return lastPgf;

    }

  • How to find the ANGLE b/w two edges in Oracle Spatial

    How to find the ANGLE b/w two edges on Oracle Spatial. I have two edge connected on the same node. I wanted to know the angle betwwn them. Can someone help me?

    Ok. My first example is an approximation. Further you get North or South of the Ecuador, gets the more vague.
    This one should do the trick with some degree of precision.

    declare
      PI constant number := 3.14159265358979;
      g1 sdo_geometry;
      g2 sdo_geometry;
      g3 sdo_geometry;
    
      angle1 number;
      angle2 number;
    
      FUNCTION POINT(P_LAT  IN number
                    ,P_LONG IN number)
        RETURN MDSYS.SDO_GEOMETRY IS
      BEGIN
        -- we load both the ordinate array and the point type because some spatial functions show inconsistent behavior
        -- it is not important for this example, just something to be aware of
        return(mdsys.sdo_geometry(2001,8307 -- WGS84
                                 ,mdsys.sdo_point_type(p_long,p_lat,null)
                                                      ,mdsys.sdo_elem_info_array(1,2,1)
                                                      ,mdsys.sdo_ordinate_array(p_long,p_lat)));
      END;
    
    begin
    
      -- For the example, project in WGS84
      -- g1,g2,g3 could also come straight out of the database as sdo_geometry
      g1 := point(50, 7);          -- Point A
      g2 := point(51, 7);          -- Point B
      g3 := point(50,10);          -- Point C
    
      angle1 := atan2(g2.sdo_point.x - g1.sdo_point.x,
                      g2.sdo_point.y - g1.sdo_point.y);
      angle2 := atan2(g3.sdo_point.x - g1.sdo_point.x,
                      g3.sdo_point.y - g1.sdo_point.y);
    
      -- depending on rotation and where we are on the planet, adjustments may be needed
      if angle1 < 0      then angle1 := angle1 + 2 * PI; end if;
      if angle2 < 0      then angle2 := angle2 + 2 * PI; end if;
      if angle2 < angle1 then angle2 := angle2 + 2 * PI; end if;
    
      dbms_output.put_line('Angle between the lines A-B and A-C: '||
                           round(sdo_util.convert_unit(angle2-angle1,'Radian','Degree'),1));
    end;
    
    Angle between the lines A-B and A-C: 90
    
  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • I make new the old id must paasward wen apple id I go passward, says your id or passward not at even I have received emails but get no email how to find the solution, I, m stuck wat to do

    I make new the old id must paasward wen apple id I go passward, says your id or passward not at even I have received emails but get no email how to find the solution, I, m stuck wat to do

    Have you tried to reset it in security issues? If you are not able to do so, contact Apple support so a security identifier Apple Advisor can help you. 800-275-2273.

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • How to find the owners of icloud id?

    IM new to this thing from icloud, I bought 3 old ipads2 on a flea market, where unlocked 2 but we have icloud, the screen is not the old owner alone info [email protected], I don't have a problem, try contacting the owner, but how to find the id of owner? even if is a stolen ipad that I'll be more than returned gad, or ask the owner to remove icloud, but without the owner info is difficult, any advice will be apreciated, thanks

    You can not find it. Go back on the market and claim a refund for the iPad.

    (140442)

  • NB200 - how to find the 3G module for it?

    Hello

    Pls how I find the 3G module in my NB200 - PLL20E?

    Thank you

    Hello

    What do you mean exactly?
    You want to upgrade your NB200 with a card 3G?

    If yes then you must make sure that your NB200 could be improved using this card.
    I'm not sure if this is possible.

    But don t give up boyfriend Toshiba authorized service partner in your country could provide details.
    Guys might be able to tell if this is possible and could provide a good 3G module

    If you get more details please share with us!

    See you soon

  • How to find the yahoo flickr Photo password used to download photos from the Photo app?

    I have 151 000 pictures on Flickr that were loaded from Iphoto, then more recently the Apple Photo app on my imac.

    I can't open a session using a browser because the browser (Chrome) has lost the password of his records.

    How to find the password that the Photo is using app?

    You can not extract the code to access from iPhoto or Photo. I could go to the Web of Flickr site and see what password recovery options they offer for your account.

  • How to find the webcam on my hp g56122us note windows 7

    How to find the webcam on my computer vision g56122us hp laptop? I can't get my webcam so I can make a video or take a picture. I have no idea how to do so that he could appear on my screen

    Hello

    Please use it to check & difficulty:

      http://support.HP.com/us-en/document/c02452221     

    Links for XP & Vista are here also.

    Good luck.

Maybe you are looking for

  • How to open the bookmark without closing menu?

    Hey,. Is it possible to configure FF so that when I clicked on a bookmark of my bookmarks window, the window remains open in case I want to click on more than one? I just figured out the aperture setting (the "one") bookmark in a tab of background so

  • Can we listen to the audio via Bluetooth speaker and Speaker Pro iPad at the same time?

    IVe tried to find answer to this. Hope someone can help. I would like to get more power audio audio stream in my Bluetooth speakers without losing my Pro iPad speaker.

  • IVI for Renault drivers

    I searched the Board Discussions and found an old post about the IVI Drivers for Renault.  In 2005, said it might be possible in 5-6 years.  Does anyone know if something has been done yet?  Mainly interested in domestic products. Thank you... Clint

  • The parameter is incorrect in the creation of tables in SQL SERVER 2012

    I get a message box with the statement "the parameter is incorrect." No other information is available to help isolate the cause of this error. (that is, stack trace)... When I modify or create a sqlserver2012 table, this error is still pop up... can

  • Interactive dynamic query reports

    Hallo!Please help me understand how to generate an interactive report based on the condition to the APEX 5. Basically, it must be based on the condition. Something like this:If (: p2 > 2) select * from table1 otherwise select * from table2.Thanks in