How to find a second point on a line given a point and distance

Hi All,
My requirement is: Given a point on a line and distance, I have to find the second point. All geometries are in LRS.
I tried using SDO_LRS.LOCATE_PT, it is returning the second point from the start of the segment but I want to locate the point from the given start point. Kindly suggest in how to solve this.
SQL Used:
SELECT SDO_LRS.LOCATE_PT(a.shape, m.diminfo, 9, 0)
FROM lrs_access_fiber a, user_sdo_geom_metadata m
WHERE m.table_name = 'LRS_ACCESS_FIBER' AND m.column_name = 'SHAPE' AND a.unique_id = 1996;
Regards
Venkat

Hi Luc,
Thanks for the information. I have implemented this in a slightly different way like:
1. Firstly, found the distance (Distance_a of the point selected from the start point of the segment using:
SELECT SDO_LRS.GET_MEASURE(SDO_LRS.PROJECT_PT(a.shape, m.diminfo,MDSYS.SDO_GEOMETRY(2301, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1, 1), MDSYS.SDO_ORDINATE_ARRAY(xa,ya, NULL)) ), m.diminfo ) into Distance_a FROM LRS_ACCESS_FIBER a, user_sdo_geom_metadata m WHERE m.table_name = 'LRS_ACCESS_FIBER' AND m.column_name = 'SHAPE' AND a.unique_id = Input_Fiber_Id;
2. Then added the given distance (b) to this computed distance (Distance_a ) to get the distance of the second point (Distance_b).
Distance_b := abs (Distance_a + b);
3. Then used SDO_LRS.LOCATE_PT with offset=0 and distance=Distance_b to get the second point.
select SDO_LRS.LOCATE_PT(a.shape, distance_pt, 0) into point_geometry from LRS_ACCESS_FIBER a where a.unique_id = input_fiber_id;
Please give your inputs and feedback.
Regards
Venkat

Similar Messages

  • How to find the number simultaneous call at a given moment on UCCX ?

    Hello,
    I would to know how to find the number simultaneous call at a given moment on UCCX ?
    it's on UCCX or UCCX RTMT, I don't know thanks a lot for your help.
    Aubert

    Hi Gergely,
    I should made a report on the number simultaneous call at a given moment on UCC on the server (all calls on the server)..

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • How to find mac address of a client computer in specified time and port in WIFI WCS Control system

    how to find mac address of a client computer in specified time and port in WIFI WCS Control system

    WCS record-keeping is very crude.  
    You'll get the time/date when the client authenticated.  You'll get the local inside address but you'll need the router to translate the outside IP address and the port.  
    You will need a proxy server to determine what sites did a wireless client goes.

  • How to find no of numeric characters in a given string ???

    How to find no of numeric characters in a given string ???
    Thanks,
    Kathir

    sabre150 wrote:
    Use String.replaceAll() to replace any characters that are not numeric and then take the length of the resultant String....and this might be useful: [http://www.regular-expressions.info/]
    ;-)

  • How to  find an enhacement point in a standard FM.

    Hi All,
              I have to find an enhacement point in a standard FM.Please guide me on how to do this?
              Also what all things should i take care of while adding code at the enhancement spot as I
              know sometimes a dump comes in such scenarios.
    Please advice,
    Saket.

    Hi Saket,
    Do you want to find an Enhancement Point or an Implicit Enhancement Point?
    If you want to find an Enhancement Point, then the string ENHANCEMENT-POINT. Enhacement Points are marked as ENHANCEMENT-POINT <enhancement Point> SPOTS <enhancement spots> STATIC. or ENHANCEMENT-POINT <enhancement Point> SPOTS <enhancement spots>.
    If you want to find an Implicit Enhancement Point, then press SHIFT + F4 and then Edit -> Enhancement Operations -> Show Implicit Enhancement Options. This will show you the Implicit Enhancement Points in yellow color (if you are using the Old Front-End-Editor).
    You might get dumps for a number of reasons. In that case go to the dump analysis and sort the problem. Moreover you might even get Short Dump while creating implementations of Implicit Enhancement. This generally occurs because of certain missing patches/upadtes. In such a situation ask the BASIS or admin team to upload all the necessary patches or updates.
    Hope this helps.
    Regards,
    Abhisek.

  • [How-to] Find the middle point between sides of two distant objects.

    [In reference to my attachment]
    I would like to find the middle point between object A's right-most segment (in green) and object B's left-most segment (in blue), quickly, effectively and reliably.
    Ideally, there's a function i'm not familiar with that exists . I would rather not resort to having to create more objects to "figure out" the middle point manually, so-to speak.

    Dandreu,
    In a more general case than assumed in the first post, if you wish to have an actual key point, you may:
    1) Direct Select each of the path segments in question and Ctrl/Cmd+C+F+X+F,
    2) Select either and rotate it by 180 degrees,
    3) Object>Blend>Blend Options, with 1 Step, then Object>Blend>Make, then Object>Blend>Expand,
    4) Select the line in the middle and Object>Path>Add Anchor Point.
    You may also do a similar way where you add an Anchor Point at the middle of the segments and ClickDrag with the Line Segment Tool between them, but that is a bit destructive.

  • How to find the shipping point creation Date and time

    Hi All,
      Could you please help to solve this issue.
       Some of the users created shipping point, Now I have to find out in which date and time the shipping points were created, is there any table to find. please help me.
    Regards,
    Muralikrishna

    hi Murali,
    first define and assign shipping point in enterprise sructure in define shipping point EC07 and assign in OVXC
    goto OVL2 and assign the shipping points
    The following are used for the shipping point determination:
    1. Shipping conditions - Proposed from CMR. The entry in VOV8 for the sales document type if there overwrites the entry in the shipping conditions mainatined in the CMR.
    2. Loading group - Proposed from the material master record.
    3. Plant - proposed from CMIR - if not found then CMR - if not found then MMR.
    But you should first define and assign the shipping point in the "enterprise structure" otherwise you will not be able to do the shipping point determination.
    IMG - logistics execution - shipping - basic shipping functions - shipping point & goods receiving point determination - assign shipping points.
    Shipping point definition:
    IMG - enterprise structure - definition - logistics execution - define, copy, delete, check shipping point. You have to define the shipping point here for the particular plant.
    Shipping point assignment:
    IMG - enterprise structure - assignment - logistics execution - assign shipping point to plant. Here select your plant and assign the shipping point to the same.
    hope this helps,
    cheers,
    Hema.

  • How to find data's from table whose sum=given input.

    Hi all,
    how to find values whose sum=given value.
    i have a master. table
    master table
    name amount
    a 1000
    b 6000
    c 2000
    d 1500
    input amount=4500 (may change);
    how to get name from master table whose sum(amount)=4500;
    i.e) a,c,d as output.

    Hi,
    I realy like the approach you made.
    But it is not realy scalable, as you probably know already.
    I tried the following:
    WITH
    master_table as
    select 'a' name, 1000 amount from dual union all
    select 'b',      700 from dual union all
    select 'c',      2000 from dual union all
    select 'd',      300 from dual union all
    select 'e',      1000 from dual union all
    select 'f',      1200 from dual union all
    select 'g',      2300 from dual union all
    select 'h',      500 from dual union all
    select 'i',      400 from dual union all
    select 'j',      600 from dual union all
    select 'k',      700 from dual union all
    select 'l',      400 from dual union all
    select 'm',      500 from dual union all
    select 'n',      600 from dual union all
    select 'o',      700 from dual union all
    select 'p',      800 from dual union all
    select 'q',      900 from dual union all
    select 'r',      1000 from dual union all
    select 's',      1700 from dual union all
    select 't',      1400 from dual
    ,got_name_list     AS
         SELECT     LTRIM ( SYS_CONNECT_BY_PATH (name, ',')
                    )                         AS name_list
         ,     SYS_CONNECT_BY_PATH (amount, '+')     AS amount_list
         FROM     master_table
         CONNECT BY     name     > PRIOR name
              AND     amount     < :target_amount
    SELECT     name_list, amount_list
    FROM     got_name_list
    WHERE     XMLQUERY ( (amount_list)
               RETURNING CONTENT
               ).getnumberval ()     = :target_amount
    ;And indead I received a solution. But it toke 788 seconds.
    I think that if you want to use this with more rows you have to find a PL/SQL solution.
    Regards
    Peter

  • How to find the details of the BPC process running in SM37 and SM50

    We had BPC performance issues and noticed that there are some process or batch jobs that are kicked from BPC that runs longer and kind of hanging.  SM37 and SM50 provides some information like job name, how long it is running.  Job name is kind of cryptic and the user name is always BPC_SYSADMIN and not able to get any additional information.  Is there a way to find more details about the job/process that is running  (whether it is a input template and which input template, whether it is a DM package and which package, whether it a report/EVDRE and which one etc.  Plus the BPC user name)?
    Couple of times, the user received the error message u201CSystem error: -2146697205u201D after it ran for a while.

    You can distinguish between reports and DM Packages easily: reports/IS run in DIA process while DM packages in BGD.
    To find out which BGD process corresponds to which DM Package take note of the time that package started (Local time). Than go to SM37 with user ID BPC* and find a job that started at same time (Server time).
    Looking into job details you can find on what Application server it's running and PID - this uniqely identifies BGD process in SM50.
    Hope this helps.
    Gersh

  • How to find the name of query for a given report

    Hi All,
    I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report.
    Thanks.
    Regards,
    Pooja Joshi.

    Use this FM
    RSAQ_DECODE_REPORT_NAME
    This FM takes program name as I/P and gives Query Name as O/P.
    This FM uses the structure AQADEF to fetch the data.
    Hope this helps.
    Regards
    Vinayak

  • How to find out that the card in a given NIDAQ slot is a DSA card?

    In the description of DAQ_Op(...) function in the traditional NIDAQ function reference one reads:
    "buffer" is an integer array. "buffer" has a length equal to or greater than count.
    When DAQ_Op returns with an error number equal to zero, buffer contains the acquired data.
    For DSA devices, buffer should be an array of i32. These devices return the data
    in a 32-bit format in which the data bits are in the most significant bits.
    Question 1: How to find out programmatically that the card in a given NIDAQ slot is a DSA card?
    Question 2: How many MSB carry the information? How do I find out bit-ness of the card (programmatically)?
    The obvious solution to create and keep updated the table/fil
    e with the data for all existing DAQ cards is unacceptable. This could be maintained by NI itself, but not by 3rd party developpers, like me.

    Bryan, thanks for your answer.
    I hope that my NIDAQ-wish-list will not only reach NIDAQ developers but some of it will be implemented in the next versions of NIDAQ.
    I should say that I am quite pessimistic because I was sending similar requests via German support few YEARS ago and I am still even do not know whether they reached developers or not. Even if yes, the present NIDAQ still does not have these functions and this means that NI takes 2..4 years to react on the feedback.
    At the moment I have no choice, and I do maintain self-made info file (nidaq.ini). But beleive me, it is a pain in the @ss to scan help files and manuals of the DAQ cards which I've never seen just to include info in nidaq.ini. And when my customers of a brand new NIDAQ ca
    rd call and wonder why the card is not reacognized by my application correctly, I tell to them that this is basically fault of NI. Because NI provides no way to get card info. I am doing my best analysing error codes, but it does not help in all cases. Sorry, guys, but you left no choice to me.
    As for NIDAQmx, this is not a solution either. I am not going to rewrite my existing and working rather big application. It could be a good suggestion for those who just starts developing a new applications from the scratch, but not for those who almost finished it. Even for those who begin now, NIDAQmx may not be a good choice, because, as I saw in this forum, it does not support all cards that are supported by NIDAQ. It also looks like that instead of improoving, developing and fixing NIDAQ, NI dicided to change API completely. It is not yet clear to me whether NIDAQmx is supposed to substitute NIDAQ in the future or not. If not, I would concentrate on improoving trad. NIDAQ. If yes, it wou
    ld be a disaster for many developers. :-(
    Anyway, I hope that the interaction between NIDAQ team and application developpers will be improoved, and we will see some results of this feedback.

  • How to find which model of iPhone 5 I am using? and is that GSM or CDMA?

    How to find which model of iPhone 5 I am using? A1428 or A1429 ? Is there any short code you can dial in and check the model number ?
    And which is GSM or CDMA out of this model.

    If you purchased the phone in the US with an AT&T contract then you have the locked CDMA A1428 version of the iPhone 5. 
    At the moment and if the contract is a new contact, then you won't be able to get the phone unlocked at the moment and no, you won't be able to use it in your home country.  You will also have LTE 4G compatibility issues too and your phone will only work on 3G and also you need to remember that iPhones are only covered by country specific warranty, so it is only covered in the US, so if you go home and then have a problem with your phone, you will have to come back to the US to get it repaired.
    You need to approach AT&T about whether they will unlock your phone for you as they are the ONLY ones that can do it, but the answer to your question is no and if you had wanted to use your phone at home, then you should not have purchased it in the US.  The best that you can hope for at the moment is to use it on international/roaming.
    If you purchased your phone in the US, then it will be a CDMA phone.  You don't have a GSM phone, but GSM phones are unlocked anyway and these are the ones that are selling in Canada and the UK.
    If you have your phone on an AT&T contract then ultimately, AT&T are the only ones who can help you with any questions regarding unlocking and they are the only ones who can unlock it for you, noone else.

  • How to find the second max value

    i have a table named customer, which have a column named salary ,how can i find the customer number which have the second largest salary.

    this example might be of help.
    SQL> select empno, ename, sal, job,
      2         rank() over (partition by job order by sal desc) rank
      3    from emp;
         EMPNO ENAME             SAL JOB             RANK
          7902 FORD             3000 ANALYST            1
          7788 SCOTT            3000 ANALYST            1
          7934 MILLER           1300 CLERK              1
          7876 ADAMS            1100 CLERK              2
          7900 JAMES             950 CLERK              3
          7369 SMITH             800 CLERK              4
          7566 JONES            2975 MANAGER            1
          7698 BLAKE            2850 MANAGER            2
          7782 CLARK            2450 MANAGER            3
          7839 KING             5000 PRESIDENT          1
          7499 ALLEN            1600 SALESMAN           1
         EMPNO ENAME             SAL JOB             RANK
          7844 TURNER           1500 SALESMAN           2
          7521 WARD             1250 SALESMAN           3
          7654 MARTIN           1250 SALESMAN           3
    14 rows selected.
    SQL> select e.empno, e.ename, e.sal, e.job
      2    from (select empno, ename, sal, job,
      3                 rank() over (partition by job order by sal desc) rank
      4            from emp) e
      5   where e.rank = 2;
         EMPNO ENAME             SAL JOB
          7876 ADAMS            1100 CLERK
          7698 BLAKE            2850 MANAGER
          7844 TURNER           1500 SALESMAN

Maybe you are looking for