How to find the nearest point to polyline

Hello

I find the point closest to my point of view standing on a polyline. I have Oracle Locator installed, but my data is not in a format locator. Is it possible to do using the functionality of the telecommunications service provider with, for example, the polyline and permanent values of coordinates of points in a space variable by calling some localization features?

Or I must coordinate data in a spatial 'permit' table, create the spatial index, etc. and then call a procedure Locator.

Tamas

Luke,

Thanks for the reference.

When the data is converted, the Summit nearest to find an object of sdo_geometry could be done this way (of, of course, for the most part):

select f.vertex_id,f.dist,f.min_dist,f.a_vertex
  from (select p.vertex_id,
               sdo_geom.sdo_distance(p.the_point,p.a_vertex,0.005) as dist,
               min(sdo_geom.sdo_distance(p.the_point,p.a_vertex,0.005)) over (order by sdo_geom.sdo_distance(p.the_point,p.a_vertex,0.005) asc) as min_dist,
               p.the_point,
               p.a_vertex
          from (select t.id as vertex_id,
                       mdsys.sdo_geometry(2001,NULL,mdsys.sdo_point_type(358615,5407047,null),null,null) as the_point,
                       mdsys.sdo_geometry(2001,NULL,mdsys.sdo_point_type(t.x,t.y,t.z),null,null) as a_vertex
                  from table(sdo_util.getVertices(
                            MDSYS.SDO_GEOMETRY(2002,null,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(362253.9,5409676.63,355608.12,5407615.16,358063.37,5407673.48,355276.53,5407361.08,360471.08,5408880.79,362483.4,5406024.69,362359.16,5408840.11,354570.21,5406219.18,360204.62,5405849.14,359214.51,5408283.5,358761.06,5406683.88,356739.05,5405590.46,358615.79,5407047.29,355978.02,5407326.33,356240.87,5409898.7,363159.35,5405510.46,358588.81,5406536.54,354822.42,5408643.75,357690.2,5408872.57,359839.29,5407253.86,355236.29,5409711.53,355342.54,5407448.87,360290.53,5405111.51,354677.02,5407916.83,361651.27,5409178.26,361730.18,5407553.5,357402.33,5409065.5,361546.51,5407278.41,361915.65,5408942.57,361974.74,5405464.91,357794.3,5406979.33,356106.58,5405481.32,357604.96,5407407.72,360718.31,5406765.8,359745.49,5406568.16,363005.29,5407557.46,355844.01,5407095.47,362749.66,5405041.82,359714.13,5408898.69,354509.69,5406113.6,360041.59,5406204.24,360380.17,5408751.21,356621.4,5409603.06,355156.27,5405401.98,354441.35,5409090.68,356376.45,5407472.81,363877.1,5405582.72,361883.83,5409696.17,356363.41,5406434.53,362078.96,5406617.37,362714.59,5409800.2,362703.49,5408513.33,358317.64,5408170.64,359294.27,5409197.53,360240.93,5406333.84))
                            )) t
                ) p
        ) f
  where f.dist = f.min_dist;

I hope this helps.

Simon

Tags: Database

Similar Questions

  • How to find the menu point location to 'find all bookmarks '.

    In Firefox 9.0.1 for Windows 7, when I "Show all bookmarks" and search on the one hand, the library window shows me the bookmark but not its location in the menu bookmark tree. Is there a way to get that info without browsing the entire tree per-folder manually?

    Try this extension: https://addons.mozilla.org/en-US/firefox/addon/show-parent-folder/

    After install and restart Firefox

    • Open the 'library' bookmarks > show all bookmarks
    • Right-click on the right pane of the column headings, check / click the headings of column you want displayed. Parent folder column is added by on the extension
    • column headers to Drag left/right to the position that meet your needs.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • 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

  • 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.

  • Find the nearest parallel line and ignore perpendicular line

    Hello

    We have two sets of linear facilities. We would like to find the nearest line of the other set of geometry, but preference should be given to the parallel lines as the perpendicular ones more.

    I was intending to use the suite response I see in this forum.
    extract the parallel roads

    Is another way?

    Thank you
    Frédéric

    Frederick,

    It really depends on what you're trying to determine from your data. I noticed that you included 'street' in your tags. Are you trying to link Street - axis facades, utilities or the plots?

    If you use buffering as John suggested, get an account for characteristics how target your buffer interacts with. In some cases (say the intersections of streets) where you will get multiple occurrences, you can compare the angles/slopes to identify the one who more parallel.

    Note that line buffering will produce a Cheeto (right, with well rounded rectangle). The Cheeto may interact with more than 1 target function if your buffer is too big and the characteristics of the target are tip-to-tail connected - and each of these objectives can be parallel to your line. If it's a problem, you can calculate distances to your targets and choose Next. You will probably always compare the slopes to eliminate false positives at intersections.

    In support of geocoding, I once to the streets adjacent plots and tried the above approaches and found that they do not have sufficient accuracy to dead end or corner-bulbs bulbs. Instead, I used the rotation value of the parcel labels (always placed perpendicular to the street) to generate features of research at the intersection of the adjacent streets. These search functions have variable length depending on the type of street. There were still a few false positives due to errors of data (e.g., misguidance label type, incorrect of streets, etc.), but little enough to dump a body to.

    Kind regards
    Noel

  • 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

Maybe you are looking for