Obtain offset of a point from a line segment

Hi,
Given a line segment and a point perpendicular to the line segment(both in LRS). Is it possible to retrieve the offset of the point from the line segment. i've serached the LRS documentation and have not found a built in function to do so.

If I understand you correctly, the following thread should answer that: If not, please explain further.
lrs offset
Bryan

Similar Messages

  • Why does removing an anchor point from this line reshape the image?

    Hi,
    I tried removing an anchor point from a semi-circle, but removing the anchor point reshapes the image.
    Video of it here:
    Anyone know how I can correct it? The semi-circle is a portion of a circle that remained after I had removed a portion, so reshaping it by moving the remaining anchor point will not do, as it will not create that perfect semi-circle.

    Can you first change to outline view then select the anchor point in question with the direct selection tool and post a screenshot of the outcome (with guides showing). Just want to see if there is a handle point attached and then this may be the reason why. It may be worth using the delete anchor point tool instead of the eraser.

  • CS5: How do I clear all width points from a line?

    The width tool is cool, but how do I get rid of all points I created if I don't like them? I know I can delete them by shift-clicking all, but it's a lot of work and I'm not really sure I'm getting them all. Is there a clear all somewhere?

    Select the path and open the Stroke panel. Look for a pull-down at the bottom labelled Profile. From this, select Uniform.
    The same setting is available on the Control Panel and in the Stroke settings in the Appearance panel.

  • The intersection point of two lines in 3D

    How to calculate the intersection point of two lines in 3D?
    source code!

    this is actually a rather easy operation. lets look at some basic properties of lines / vectors in 3D space:
    1. If two lines intersect at a single point, then there must be exactly one plane in which the two lines are co-planar. This is pretty trivial to prove, but I won't bother here, because you can google to find out that two vectors that extend from a common point define a single plane.
    2. If you take the cross-product of two vectors, the resulting vector is guaranteed to be perpendicular to both lines (this is a basic property of a cross-product). If the two lines intersect, then this cross-product will be the normal vector to the plane in which both lines lie.
    3. Now transform (rotate) yours space such that your z-axis becomes parallel to the normal vector of that plane.
    Now, the parametric equation for a line in 3D space is this:
    (x, y, z) = (xo, yo, zo) + k(xd, yd, zd)
    After you have transformed your space, you will notice that the equation of each line will now be
    (x, y, z) = (xo, yo, zo) + k(xd, yd, 0)
    If zo is equal for both lines, then the two lines intersect. Otherwise, the two lines do not intersect.
    if the intersection exists, then to solve for it, you ignore the z coordinate, and treat it like a two dimensional system:
    (x, y) = (xo, yo) + k(xd, yd)
    you can use the basic 2D formula y - yo = m(x - xo), or y = m(x - xo) + yo
    you can calculate m = yd / xd.
    which simplifies to y = mx -mxo + yo, or 0 = mx - y + (yo - mxo)
    you now have two equations of the form Ax + By + C = 0.
    From there, you can use Cramer's rule to find the intersection of the two lines.
    It sounds kind of complicated when you read it as I have presented it, but it's actually extremely easy to write a program for, because each step is simple mathematic operation with basically no decisions involved (hence no if-structures, except at the one point where you actually need to determine if the lines intersect).
    So to reiterate, the steps required are:
    1. Check if lines are parallel. If yes, check if they are the same line, and then stop.
    2. If not parallel, cross-multiply the direction vectors of each line.
    3. Rotate your space such that z is parallel with cross-product of lines
    i. dot-product of z axis (0, 0, 1) with cross-product of lines gives angle*
    ii. cross-product of z axis (0, 0, 1) with cross-product of lines gives axis of rotation.
    iii. rotate your lines (i.e. point and direction vector) about that axis by negative of ange determined in (i).
    4. if z value of points from both lines is the different, no solution. stop.
    5. otherwise, apply Cramer's rule.
    6. done.
    * obtaining the angle of rotation with the dot product relies on the angle being less than 90 degrees, so check if z value of normal vector is + or -, and then perform dot product and cross-product on appropriate + or - z vector.
    - Adam

  • Drag and dynamically add line segments?

    Dear all:
    I draw a continuous line segments by mouse, which starts by a left
    mouse click. Then if user click on another location on the screen, it
    will continuously add a line segment to the screen. This process ends
    with a right mouse click. In this case, all the points are shown
    in a JPanel and stored in a Vector.
    My question is:
    after the line is shown on the screen, how can I use mouse to drag
    any points on these line segments (it does not necessary need to be
    the line-segment connecting points), such that the new points will be
    added to the line, and original line segments' shape changed
    accordingly during the mouse drag.
    Example:
    Step 1: A line (containing line segments], which is drawn by mouse on the Panel:
        * [left click]
          *  [left click]
          |
          |
          *  [left click]
           * [right click]
    Step 2: Drag any points in the line, this does not necessary to be
    original points that define the line-segments, such as the + in the
    following.
          |
          + [here left click a point on the line]
          |
    Step 3: If I drag the + in above figure to left, it will become:
        +  [right click, the new point and new line segment is added]
    When the mouse released, the new shape is shown on the panel.How to do the dynamically drag?
    Thanks in advance!

    Try this
    regards
    Stas
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.ArrayList;
    public class Test {
        JScrollPane scroll;
        JPanel p=new JPanel(new BorderLayout());
        Robot robot=new Robot();
        public Test()  throws Exception {
            final JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(p);
            frame.getContentPane().add(new Desktop());
            frame.setBounds(0,0,350,350);
            frame.show();
        public static void main(String[] args) throws Exception {
            new Test();
    class Desktop extends JPanel implements MouseListener, MouseMotionListener{
        ArrayList polyline=new ArrayList();
        Point startPoint;
        boolean dragged=false;
        int lineIndex=-1;
        public Desktop() {
            super();
            addMouseListener(this);
            addMouseMotionListener(this);
            polyline.add(new Line2D.Double(10,10,150,150));
            polyline.add(new Line2D.Double(150,150,10,300));
        public void mouseDragged(MouseEvent e) {
        public void mouseMoved(MouseEvent e) {
        public void mouseClicked(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
            Point point=e.getPoint();
            Rectangle2D pointRect=new Rectangle(point.x-3,point.y-3,7,7);
            for (int i=0; i<polyline.size(); i++) {
                Line2D line=(Line2D)polyline.get(i);
                if (line.intersects(pointRect)) {
                    startPoint=point;
                    lineIndex=i;
                    return;
            lineIndex=-1;
        public void mouseReleased(MouseEvent e) {
            if (lineIndex>=0) {
                Point2D endPoint=e.getPoint();
                Line2D line=(Line2D)polyline.get(lineIndex);
                Line2D firstPart=new Line2D.Double(line.getP1(),endPoint);
                Line2D secondPart=new Line2D.Double(endPoint,line.getP2());
                polyline.remove(lineIndex);
                polyline.add(secondPart);
                polyline.add(firstPart);
                this.repaint();
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void paint(Graphics g) {
            super.paint(g);
            g.setColor(Color.red);
            for (int i=0; i<polyline.size(); i++) {
                Line2D line=(Line2D)polyline.get(i);
                ((Graphics2D)g).draw(line);

  • How to pass arguments from command-line to Point(x,y)

    Hi guys, I'm a beginner. i'm trying to figure this out 'how to pass the arguments from command-line to Point(x,y)'. See below is the code that i have written. But it appears eror. Is there anyone can help me to figure this out?
    class day5FourDPoint {
    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;
    day5FourDPoint rect(Point AB, Point CD) {
    a = AB.x;
    b = AB.y;
    c = CD.x;
    d = CD.y;
    return this;
    void printout() {
    System.out.println("Four Dimension : " + a + b + c + d);
    public static void main(String[] arguments) {
    day5FourDPoint FD = new day5FourDPoint();
    FD.rect(arguments);
    if (arguments.length > 1 & arguments.length < 4) {
    for (int i=0; i < arguments.length; i++) {
    FD=Integer.parseInt(arguments);
    FD.printout();
    }

    I don't use VBS so this is just a guess based on what I have read in this forum. I think when you are passing an 'array' to javascript it needs to be a variant data type. My guess your arguments are not making it to the javascript because it it the wrong data type.

  • 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

  • VPN Client disconnection from command line

    Hi,
    I want to connect to IPsec VPN on ISA500 by VPN Client (v 5.0.07.0440, the last version, I think), using command line parameters.
    I can connect with the command:
    "%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -c -user myUser -pwd myPassword "MyConnectionEntry"
    but i don't know the command to disconnect from command lines.
    If I do
    "%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -?
    I obtain the list of parameters
    vpngui [-c | -sc [sd] [-user <username>] [-pwd <password> ! -eraseuserpwd]] <connection entry>
    but I don't unterstand what I have to do... I try every combination using -sd parameter (I think means for silent disconnect), but in every case I can only to show VPN interface  without disconnect anything...
    Can anyone help me?
    Thanks

    Prasath,
    This appears to be a data flow issue.  You need to look in the dataflow log file.  Your information indicates the project name is SAMPLES.xml, and the data flow ID is D20091213_014350765.  Look at the data flow log file in
    C:\dqxi\11_7\repository\configuration_rules\runtme_metadata\project_SAMPLES\D20091213_014350765
    Alternatively, you can temporarily replace the transactional reader and writter transforms with their corresonding batch transforms, and run the job from the Project Architect.  Any errors will be displayed in the Running window.
    Paul

  • How can I connect dots across missing data points in a line chart?

    Hi all!
    I have a table in Numbers that I update every few days with a new value for the current date (in this case body metrics like weight, etc.), which looks something like this:
    Column 1              Column 2      Column 3
    Aug 16, 2011         87.1             15.4
    Aug 17, 2011         86.6
    Aug 18, 2011         86.1
    Aug 19, 2011              
    Aug 20, 2011         85.7             14.6
    Aug 21, 2011         85.3
    Every once in a while there will be a missing value for a given date (because I didn't take a reading on that day). When I plot each column against the date on a line chart, there is a gap where there are missing data points. The line does not connect "across" missing data points. Is there a way to make the line connect across missing data points?
    Thanks for any help. This thing has been driving me nuts!

    Leave your nuts in peace.
    Don't use line charts but scatter charts.
    These ones are able to do the trick.
    Of course to do that you must study a bit of Numbers User Guide.
    In column D of the Main table, the formula is :
    =IF(ISBLANK($B),99999,ROW())
    In column E of the Main table, the formula is :
    =IF(ISBLANK($C),99999,ROW())
    Now I describe the table charter.
    In column A, the formula is :
    =IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,0)),"")
    In column B,the formula is :
    =IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,1),"")
    In column C, the formula is :
    =IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,0)),"")
    In column D, the formula is :
    =IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,2),"")
    In this table, select the range A1 … D5
    and ask for a Scatter chart.
    You will get what you need.
    I asked that points are joined by curves
    I just edited the parameters of Xaxis and Yaxis to get a cleaner look.
    I repeat one more time that knowing what is written in the User Guides is useful to be able to solve problems with no obvious answer.
    Yvan KOENIG (VALLAURIS, France) samedi 27 août 2011 15:59:20
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • How to run a 10g report from command line ?

    Good Afternoon,
    Please advise if there is a way to run a 10g report from command line.
    We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
    Thank you,
    Dmitri

    Steps to take.
    (1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
    (2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
            (a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
                   or, if it does not work
            (b.) Add D:\OracleDevR2\bin to the system env. variable PATH
    (3.) Start OC4j
    (4.) Now you can access the jobs using URL like:
        http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
          where 192.161.11.143 is your machine's IP address.

  • Running FlexUnit tests from command line

    Sorry if that has been posted before: I searched best I could and nothing came up.
    I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
    I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
    I looked into at least how to build something from the command line, I found this:
    http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
    Can't get past this error:
    Buildfile: /Users/dbanks/build_test.xml
    BUILD FAILED
    Target "FlexUnitApplication" does not exist in the project "null".
    Total time: 0 seconds
    Adobe Flash Builder 4:
    An error has occurred. See the log file
    /Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
    Plus, even if I got this going, I am just building the swf.  I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
    FWIW, the script/xml I am using to try to build:
    build_test.xml:
    <?xml version="1.0"?>
    <project default="main">
        <target name="main">
            <fb.exportReleaseBuild project="NightclubMogul" />
        </target>
    </project>
    execute_build_test.sh:
    WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
    # works with either FlashBuilder.app or Eclipse.app
    "/Applications/AdobeFlashBuilder4" \
        --launcher.suppressErrors   \
        -noSplash   \
        -application org.eclipse.ant.core.antRunner   \
        -data "$WORKSPACE"    \
        -file "/Users/dbanks/build_test.xml" FlexUnitApplication
    I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere.  I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
    Any help would be great: getting the tests to build from command line, then getting them to run.

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • Substitute from another line in the same document - MIRO & FB60

    Hi ABAPers,
    Would any of you please advise me on how to achieve the automatic substitution of certain field information from another line item in the same accounting document. For example,
    Dr Vendor
    Cr P & L
    Dr Balance sheet (automatic)
    On the Line item "balance sheet", I would like the logic to search withint the same document to copy attribute from the first line item 'Vendor'. Please advise me on how to achieve this on the following both scenario
    - MIRO (Logistic Invoice Verification)
    - FB60 (Finance Invoie)
    Kind regards

    Hi
    Thanks for the note.
    The information I would like to substitution are terms of payment, vendor number, baseline date and Text field.
    also advise With reference to 386896 - Substitution for call-up point 3 ('Complete document'), how would we be able to achieve the call up point 3 things if the origin of the document is from MM (MIRO).
    Thanks in advance
    taro

  • Add WaterMarkFrom File with 0 points from top leaving some space in the top

    Hi,
    I tried to add a water mark image from a file with 0 points from the top. But still it is having some extra space on the top.
    The issue is that I need to place a text and an image at same vertical position from the top of pdf. But image leaves some extra space.
    Can you please help me with this
    Thanks,
    VKP1

    I cannot duplicate your experience. When I add a watermark from a file, and
    the file has content that fills the page completely, I do not see any white
    space between the top or the left edge when I place it at the top left
    corner, with 0pt offset.
    How are you placing the watermark?
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • Jython scripts fails from cmd line Error: no domain or domain template...

    --------------script---------------
    connect('weblogic','welcome1','t3://obi5.mnapps.state.mn.us:7101',adminServerName='AdminServer');
    print 'Connecting to Domain ...'
    try:     
         domainCustom()
    except:     
         print 'Already in domainCustom'
    cd('..\..')     
    print 'Go to biee admin domain'
    cd('oracle.biee.admin')
    print 'Go to coreapplication_obips1 Mbean'
    cd('oracle.biee.admin:oracleInstance=EPM91TD,type=BIDomain.BIInstanceDeployment.BIComponent,biInstance=coreapplication,process=coreapplication_obis1,group=Service')
    ------------script end---------------------
    ---works fine if it start wlst and type commands
    when runing "java weblogic.WLST RestartOBI.py"
    -----------------------------output from command line execution--------------------------
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Error: No domain or domain template has been read.
    Connecting to Domain ...
    You will need to be connected to a running server to execute this command
    Go to biee admin domain
    Error: No domain or domain template has been read.
    Go to coreapplication_obips1 Mbean
    Thanks

    Also, you must put the parameters of the net use command in the correct order.
    C:\>net help localgroup
    The syntax of this command is:
    NET LOCALGROUP
    [groupname [/COMMENT:"text"]] [/DOMAIN]
    groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
    groupname name [...] {/ADD | /DELETE} [/DOMAIN]
    This help information tells you that you put the group name first after the words
    net localgroup. As Forest brook pointed out, if the group name contains spaces, you must enclose it in quotes.
    After the group name, put the name of the user or group you want to add to (or remove from) the local group. If the user or group name contains spaces, as noted, you must enclose it in quotes. After this group name, put the parameter
    /ADD to add to the local group, or put /DELETE to remove.
    For example, suppose you want to add the domain group FABRIKAM\Account Operators to the local Administrators group. This is the command you would enter:
    C:\> net localgroup Administrators "FABRIKAM\Account Operators" /add
    This command adds FABRIKAM\Account Operators to the local Administrators group.
    In your specific case, it looks like the command would be:
    C:\> net localgroup Administrators "XYZ\Desktop Administrator" /delete
    Bill

Maybe you are looking for

  • Multiple copies in sequence

    Hi, I need to print multiple copies (3) of documents in sequence. So for example of we are printing a 2 page shipping note the customer would like page 1 printed 3 times first and then page 2 printed 3 times. I know we can print  multiple copies by m

  • Accept the enduser license agreement when opening a pdf file in the internet

    I have launched adobe reader when opening a pdf file in the internet i get the following error message Bevor proceeding ou must first launch adobe Acrobat and accept the Enduser license agreement am user of a mac book pro

  • Why isnt the right version showing in "About Firefox" - after installing?

    There was an important update(V.6) in a pop-up window. I go ahead and install it. After installment, it pops up a new window telling me it is important to APPLY the installment. I agree on that and them it tries to contact the update server and nothi

  • Budget Exceeded Error when amending the PO

    Dear Friends, We are using SAP former budgeting system, we have an issue related to PO Budget. PO created in the year 2009 and paid fully in 2010. no amount left to carryforward the PO to year 2011. As some additional amout need to pay against this P

  • BDC program in Foreground and Background

    Hi, I have a requirement from client to write a BDC program which can upload the data in TABLES in foreground and background. There will be a flag for FOREGROUND on the screen, if user clicks the FOREGROUND FLAG then data should be uploaded in foregr