Find X,Y coordinates

I am looking to find the centroid and display the x,y coordinates of all the polygons in my parcel file. Can someone help me on what this query will look like 8.1.7.
Matt

Hello Matt,
That question has been asked previously. Have a look at Andy Dix "Extracting ordinates" posted April 23, 2001
Extracting ordinates
where the reply by Indrek Toom might be what you want in 8.1.7.
Also keep an eye on Peter Hubers "Access to items of an SDO_ORDINATE_ARRAY" posted March 11, 2003 here:
Access to items of an SDO_ORDINATE_ARRAY
giving a 9.2 solution
- hope this helps,
Jens Ole Jensen
Kort & MatrikelStyrelsen (WWW: http://www.kms.dk)
Danmark

Similar Messages

  • How to find out the coordinates of rotated textframe

    Hi All,
    With the help of (idml) itemtransform horizontal / vertical distances and path point arrays, I can find out the coordinates of text frame (x1,y1), (x2,y2), (x3,y3), (x4,y4). If the textframe is rotated then item transform values are getting changed, but the path point array values are same. I can find rotation angle by the matrix [cos(θ) sin(θ) -sin(θ) cos(θ) 0 0], But I could not get the exact coordinates of rotated textframe. The textframes are given below.
    Normal Text frame
    <TextFrame Self="u136" ParentStory="u124" ItemTransform="1 0 0 1 101.72727272727272 -349.41818181818184">
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/>
                                <PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>         
    </TextFrame>
    Rotated textframe
    <TextFrame Self="u136" ParentStory="u124" ItemTransform="0 1 -1 0 320.3805483338268 -125.07900895050204">
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/>
                                <PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>        
    </TextFrame>
    When I converted the values of rotated textframe in to coordinates and drawn in a screen then  I am not getting the exact position where it drawn in the original.
    Can anyone help me to find out the cordinates of rotated textframe.
    Thanks in advance.

    It seems pretty straightforward to me.
    Your center point is (42.375 mm, 27.458 mm) and your box is 58.417 mm x 28.417mm.
    IDML defines the rectangle by its corners, not its center, so let's find the upper-left corner. Divide the width by two and subtract from the x, same for the height and the y. You get (13.665 mm, 13.2495 mm).
    That is in page coordinates relative to the upper-left corner of the page, we can see from your rulers.
    But IDML coordinates are spread-relative from the center of the spread. Your spread is a single page that is 85 mm x 55 mm.
    So if we translate your upper-left corner, it is (13.665, 13.2495) mm - (85/2, 55/2) => (29.3335 mm, 14.2505mm) in spread-relative coordinates.
    But IDML coordinates are in points, not in mm. So we convert (multiply by 2.835). And we get (83.150 pt, 40.395 pt).
    But that doesn't match up with your IDML file, which has  (-82.650 pt, -39.890pt).
    But look at the difference: (0.500 pt, 0.505 pt). That's really 1/2 point, because your box has a 1-pt border and that gets split evenly across all 4 sides. And there's 0.005 of round-off error, bceause floating point math sucks.
    Any questions?

  • Where can I find the GPS coordinates in iPhoto 11 for geotagged pics? In iPhoto 09 this information was available under the Photos menu "Show Extended Photo Information".

    Where can I find the GPS coordinates in iPhoto 11 for geotagged pics? In iPhoto 09 this information was available under the Photos menu "Show Extended Photo Information".

    I think you can only see the map.  To see the actual EXIF data you would need to export and use a viewer.

  • How to find out the coordinates of pageitems

    Hi,
    I designed a demo file in Indesign with a rectangle.
    Pagesize: 85mm x 55mm
    Rectangle: x=42,375mm, y=27,458mm, width: 58,417mm, height=28,417mm
    In the next step I did an idml export.
    Spread.xml:
    <Rectangle Self="ud8" ... ItemTransform="1 0 0 1 0 0">
        <Properties>
             <PathGeometry>
                <GeometryPathType PathOpen="false">
    <PathPointArray>
    <PathPointType Anchor="-82.6496062992126 -39.893700787401585" LeftDirection="-82.6496062992126 -39.893700787401585" RightDirection="-82.6496062992126 -39.893700787401585"/>
    <PathPointType Anchor="-82.6496062992126 39.65748031496063" LeftDirection="-82.6496062992126 39.65748031496063" RightDirection="-82.6496062992126 39.65748031496063"/>
    <PathPointType Anchor="81.94094488188978 39.65748031496063" LeftDirection="81.94094488188978 39.65748031496063" RightDirection="81.94094488188978 39.65748031496063"/>
    <PathPointType Anchor="81.94094488188978 -39.893700787401585" LeftDirection="81.94094488188978 -39.893700787401585" RightDirection="81.94094488188978 -39.893700787401585"/>
    </PathPointArray>
    I do not understand how to calculate the  x, y  coordinates which are shown in indesign!?
    I tried to understand the matrix calculation which is described in the IDML reference on page 98. http://wwwimages.adobe.com/...ml-specification.pdf
    | a b 0 |    | x |            | 1 0 0 |      | -82.6496062992126    |             | -82.6496062992126    |
    | c d 0 | *  | y |     -->   | 0 1 0 |  *  | -39.893700787401585 |    -->     | -39.893700787401585 |
    | e f  1 |    | 1 |            | 0 0 1 |     | 1                               |              | 1                               |
    :-(   That does not correspond to the display coordinates in Indesign   ( x=42,375mm, y=27,458mm)
    Can anybody help?
    THANKS!

    It seems pretty straightforward to me.
    Your center point is (42.375 mm, 27.458 mm) and your box is 58.417 mm x 28.417mm.
    IDML defines the rectangle by its corners, not its center, so let's find the upper-left corner. Divide the width by two and subtract from the x, same for the height and the y. You get (13.665 mm, 13.2495 mm).
    That is in page coordinates relative to the upper-left corner of the page, we can see from your rulers.
    But IDML coordinates are spread-relative from the center of the spread. Your spread is a single page that is 85 mm x 55 mm.
    So if we translate your upper-left corner, it is (13.665, 13.2495) mm - (85/2, 55/2) => (29.3335 mm, 14.2505mm) in spread-relative coordinates.
    But IDML coordinates are in points, not in mm. So we convert (multiply by 2.835). And we get (83.150 pt, 40.395 pt).
    But that doesn't match up with your IDML file, which has  (-82.650 pt, -39.890pt).
    But look at the difference: (0.500 pt, 0.505 pt). That's really 1/2 point, because your box has a 1-pt border and that gets split evenly across all 4 sides. And there's 0.005 of round-off error, bceause floating point math sucks.
    Any questions?

  • Coordinates -where I find it in iPhoto 11??

    Where can I find the GPS coordinates and altitud datas in iPhoto 11 ? In iPhoto 09 this information was available in informations. I can't believe they removed that.

    Welcome to the Apple Discussions. While viewing the files as thumbnails type Command+i to slide out the Info panel on the right. The Info window has been reconfigured (don't shoot the messenger) and is not nearly as convenient to use:
    Click to view full size
    However, the GPS data seems to be viewable only as a pin on a map and not as actual coordinates. At least in the test photo I used in the screenshot. if you get different let us know.

  • How to Find the coordinates of blister

    hi
      i want to find the edge coordinates of blister of image attached
      Plz tell whether it can be calculated
    Regards
    Abhishek Verma
    Attachments:
    13.jpg ‏2305 KB

    Hi Abhishek Verma,
    please save the next time your picture as a real jpg. Do you have vision? Did you already start with something?
    Mike

  • How to get coordinates of components. PLEASE HELP ME URGENT!

    Hi, I am trying to get the coordinates of my components that are tabbed pane buttons, buttons, text fields etc so I can place an image of a pointer under it that points to it and then under the image of the pointer I would put a label describing the button for example "press the tab to start". Then when I press tab1 the image of pointer image points to the next component and has a label under pointer.
    Now I have tried using componenet.getX() and getY() and then set the values of the the image panel to use then the label panel so they be placed under the component, these panels are not using layout manager but absolute positioning. If the window is resized then the labels and image of pointer should also adjust. I have tried putting the label and arrow into a glasspane and now layerdpane as some people here suggested which when I do then add it to contentpane the main panel with the components is not there but the layerd pane is.
    I am having huge difficulties with this and if someone can Please just tell me or even better give me an example code how to find out the coordinates of components so I can place my image of pointers and labels underneath them I will be very grateful of you. I am on a verge of giving up accomplish what I am doing and I am new to the swing framework. My progress to solve this has been very slow and frustrating. I just hope someone here can help.

    I tried the both of codes given. But the code given by both the person i have not understand. And what they there code is doing. This is the code form my side if this example help u.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    * Author Waheed-Ul-Haq ( BS(CS)-8 )
    public class Samulation2
         JPanel pane;
         JLabel label1;
         JTextField entProcesfld;
         JButton buttCreat;
         JButton buttReslt;
         JLabel usrProcesID[];
         JTextField usrArivTam[];
         int processes;
         public JComponent createComponents()
         pane = new JPanel();
         pane.setLayout (null);     
         label1 = new JLabel();     //Label for to tell user to enter no of Processes.
         label1.setText("Enter the no. of Processes");
         pane.add(label1);
         label1.setBounds(20, 25, 150, label1.getPreferredSize().height);
         entProcesfld = new JTextField();     //TextField to enter no of processes.
         entProcesfld.setToolTipText("Enter the no of Processes.");
         pane.add(entProcesfld);
         entProcesfld.setBounds(180, 25, 100, entProcesfld.getPreferredSize().height);
         buttCreat = new JButton();          //Button to create the TextFields.
         buttCreat.setText("Create TextFields");
         pane.add(buttCreat);               //Adding cutton to Jpane.
         buttCreat.setBounds(new Rectangle(new Point(30, 60), buttCreat.getPreferredSize()));
         buttCreat.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        buttCreatActionPerformed(e);
                   } } );          //ActionListenr to Create the TextFields.
         pane.setPreferredSize(new Dimension(600,600));
         return pane;
         }     //-------END of Component createComponents()--------//
         private void buttCreatActionPerformed(ActionEvent e)     //Action to Create the TextFields.
                   processes = Integer.parseInt (entProcesfld.getText ());
                   JLabel Labproces = new JLabel();     //Label of Processes.
                   Labproces.setText("Processes");
                   pane.add(Labproces);
                   Labproces.setBounds(new Rectangle(new Point(15, 105), Labproces.getPreferredSize()));
                   JLabel labArivTam = new JLabel();     //Label of Arival time.
                   labArivTam.setText("Arrial Time");
                   pane.add(labArivTam);
                   labArivTam.setBounds(new Rectangle(new Point(90, 105), labArivTam.getPreferredSize()));
                   //----Creating Dynamic JLabels------//
                   usrProcesID  = new JLabel[processes];     /* Makes an array */
                   int yXis = 125;          //Variable for Y-axix of JLabel.
                   for(int i=0; i<processes; i++)      /* i takes each value from 0 to processes-1 */
                    usrProcesID[i] = new JLabel("P" + i);      /* Makes a JLabel at an array place */
                    pane.add(usrProcesID);      /* Adds a JLabel (rather than an array) */
    usrProcesID[i].setBounds(new Rectangle(new Point(28, yXis), usrProcesID[i].getPreferredSize()));
    yXis = yXis + 25;     /* Increses the Y-axis to show JLabels. */
    }     //EndFor     
    //-------End Dynamic JLabels---------//               
                   //-----Creating Dynamic Arival Time TextFields-----//
                   usrArivTam = new JTextField[processes];          /* Makes an array */
                   yXis = 125;          //Variable for Y-axix of JTextField.
                   for(int i=0; i<processes; i++)      /* i takes each value from 0 to processes-1 */
    usrArivTam[i] = new JTextField();     /* Makes a JTextField at an array place */
    usrArivTam[i].setToolTipText("Enter Arival Time.");
    pane.add(usrArivTam[i]);      /* Adds a JTestField (rather than an array) */
    usrArivTam[i].setBounds(100, yXis, 35, usrArivTam[i].getPreferredSize().height);
    yXis = yXis + 25;     /* Increses the Y-axis to show JTextFields. */
    }     //EndFor     
    //-----End Dynamic Arival Time TextFields.-----//
    //----Calculating points for Label and textfields.
    Point poi = new Point();
    poi = usrArivTam[processes-1].getLocation ();     //Getting the location of the last text field of ArivalTime.
    //-----Label for Average Waiting time.--------\\
    JLabel averWaitLB = new JLabel();
    averWaitLB.setText("Average Waiting Time");
              pane.add(averWaitLB);
              averWaitLB.setBounds(new Rectangle(new Point(30, (int)poi.getY()+50), averWaitLB.getPreferredSize()));
    //-----TextField for Average Waiting Time.--------\\
    JTextField averWaitTF = new JTextField();
    averWaitTF.setText ("Hello");
    averWaitTF.setEditable(false);
    pane.add (averWaitTF);
    averWaitTF.setBounds(190, (int)poi.getY()+50, 35, averWaitTF.getPreferredSize().height);
    }     //------END of void buttResltActionPerformed(ActionEvent e)---------//
         private static void createAndShowGUI()
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("Priority Scheduling (Non-Preemptive)....");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Samulation2 application = new Samulation2();
    //Create and set up the content pane.
    JComponent components = application.createComponents ();
    components.setOpaque (true);
    int vertSB = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
              int horzSB = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
              JScrollPane scrollPane = new JScrollPane(components, vertSB, horzSB);
    scrollPane.setPreferredSize (new Dimension(720,455));
    frame.getContentPane ().add (scrollPane,null);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    }     //------END Of void createAndShowGUI()--------//
         public static void main(String[] args)
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
         }     //---------End of main()----------------//
    }     //--------END of class Samulation2----------//
    If any body help me implementing the ScrollBars in this code. I am unable to use Scroll Bars with this code while using NULL layout. If any body tell me how to get the Size and set for the pane.

  • IPhoto 11 GPS Coordinates

    Where can I find the GPS coordinates in iPhoto 11 for geotagged pics? In iPhoto 09 this information was available under the Photos menu "Show Extended Photo Information".

    Afraid not.  However, as Larry suggested you can use x EXIF Viewer for Mac OS X to get the GPS coordinates from the file.  Just launch EXIF Viewer and drag the photos from iPhoto's window onto the EXIF Viewer icon in the Dock to get this:
    No need to export the photo to get the info.

  • Screen coordinate of the table

    Hi,
    I need to find the screen coordinate of the table that is displayed in a jsp page using java script . I am only able to get the resolution and not the xy coordinates.
    Can anyone help me pls
    Regards
    Jeyanth
    Message was edited by:
    jeyanth23

    First of all, do you realize that the "table" (an HTML thing) and javascript (another HTML thing) have nothing to do with Java?

  • Finding shape segemnts

    Hello
    I am currently working on a project called : Jigsaw solver where I load a jpeg picture of all the pieces of a jigsaw puzzle in an unmade state laid out on a plain white background. The image is analysed to isolate the images of each piece from the whole image.
    At the moment i have made simple shape as my image as a jpeg. I will only be dealing wiht black and white colours for now. Therefore, my image will be black on a white background. I ahve written an edge detection algorithm as posted below. It detects the edge of a shape iteratively and saves the edge coordinates in an arraylist called, boundary.
    I am successful at finding the edge of a shape.
    My current problem is I need to find the coordinates within my shapes edge boundary. I need to find the inner coordinates as segments and store the segments in another arraylist. Not sure how to retrieve the coordinates as segments ???
    Any help would be greatly appreciated :) many many thanks
    I have posted my code below:
    * FindEdge.java
    package jigsaw;
    import java.awt.image.*;
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.awt.*;
    public class FindEdge
    public void detectEdge(JigSawPanel jp) // does the walking around the edge
    BufferedImage img = jp.getImage();
    int width = img.getWidth();
    int height = img.getHeight();
    int fromDir = 0;
    ArrayList<Point> boundary = new ArrayList<Point>();
    for (int x = 0 ; x < width ; x++)
    for (int y = 0 ; y < height ; y++)
    int pixColour = img.getRGB(x, y);
    Color rgbColour = new Color(pixColour);
    int val = getRGBValue(rgbColour);
    if (val < 80) // 80 is the threshold value that filters between black and white pixels... rgb val for white is 765 and for black its 0 but had to filter ou greys too
    // System.out.println (val); // so if its is a black pixel then do the following find its next black neighbouring edge
    Point current = new Point(x, y);
    Point startPoint = new Point(current); // to check whether we have come back to the starting point after walking around
    System.out.println("start point : " + startPoint);
    Point nextPos = new Point();
    do
    int toDir;
    for (toDir = 0 ; toDir < 6 ; toDir++)
    step(fromDir, current, toDir, nextPos);
    int nxtPix = img.getRGB(nextPos.x, nextPos.y); // getting rgb value of its neighbouring pixel
    Color nxtcol = new Color(nxtPix);
    int value = getRGBValue(nxtcol);
    if (value < 80)// checking if the neighbouring pixl is black
    //System.out.println("implements here 2");
    break;
    if (toDir == 6)
    System.exit(1);
    System.out.println(
    "from: " +
    fromDir +
    " current: " +
    current +
    " to dir: " +
    toDir +
    " nextPos: " +
    nextPos);
    // debugging: we know that pixel is an edge and turns the edge pixel to red... to check if correct edge has been detected
    //img.setRGB(nextPos.x, nextPos.y, Color.red.getRGB());
    boundary.add(new Point(current)); // adds that pixel coord into an arraylist
    //jp.repaint();
    //System.out.println("size: "+ boundary.size());
    fromDir = (fromDir + toDir + 6) % 8 ;
    current.x = nextPos.x;
    current.y = nextPos.y;
    } while (!startPoint.equals(current));
    System.out.println("end of scan!!!: found " + boundary.size() + " points on the boundary");
    for (Point pt : boundary)
    img.setRGB(pt.x, pt.y, Color.red.getRGB());
    jp.repaint();
    break;
    public void step(int fromDirection, Point currentPoint, int toDirection, Point nextPoint)
    switch (fromDirection)
    case 0: //different directions for checking where the next black edge pixel is
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y;
    break;
    case 3:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    break;
    case 1:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y;
    break;
    case 2:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y;
    break;
    break;
    case 2:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y;
    break;
    case 1:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y;
    break;
    case 5:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    break;
    case 3:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y;
    break;
    case 4:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y - 1;
    break;
    break;
    case 4:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y;
    break;
    case 3:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 5:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y;
    break;
    case 2:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y;
    break;
    break;
    case 6:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y ;
    break;
    case 1:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x ;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 4:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y ;
    break;
    case 5:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    break;
    case 7:
    switch (toDirection)
    case 0:
    nextPoint.x = currentPoint.x - 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 1:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 2:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y - 1;
    break;
    case 3:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y ;
    break;
    case 4:
    nextPoint.x = currentPoint.x + 1;
    nextPoint.y = currentPoint.y + 1;
    break;
    case 5:
    nextPoint.x = currentPoint.x;
    nextPoint.y = currentPoint.y + 1;
    break;
    break;
    // case 6:
    // if (checkEnd(currentPoint.x, currentPoint.y, startPoint))
    // break;
    public boolean checkEnd(int x, int y, Point startPoint)
    if (x == startPoint.x && y + 1 == startPoint.y)
    return true;
    else
    return false;
    public int getRGBValue(Color colPix) // gets the sum of red, green, blue colour value for a pixel
    int red = colPix.getRed();
    int green = colPix.getGreen();
    int blue = colPix.getBlue();
    int value = red + green + blue;
    return value;
    import java.awt.image.*;
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.awt.*;
    public class JigSawPanel extends JPanel
    private BufferedImage image;
    /** Creates a new instance of JigSawPanel */
    public JigSawPanel()
    //file from location
    String imgFile= ("/home/aps/projectStudents/Nikita/sample.jpg");
    // try to load file to buffered image
    try
    image= ImageIO.read ( new File (imgFile));
    setPreferredSize(new Dimension(image.getWidth(), image.getHeight()));
    catch(IllegalArgumentException ie) // if file does not exist or corrupt
    System.exit(1);
    catch(IOException ie)
    System.exit(1);
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    g.drawImage(image, 0, 0, this);
    public BufferedImage getImage()
    return image;
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.awt.*;
    public class JigSawFrame extends JFrame
    /** Creates a new instance of Main */
    public JigSawFrame()
    JigSawPanel jp = new JigSawPanel();
    FindEdge fe= new FindEdge();
    int x = jp.getImage().getWidth(this); // get image width from jig saw panel
    int y = jp.getImage().getHeight(this); // get image height from jig saw panel
    jp.setPreferredSize(new Dimension (x, y)); //set panel size
    Container content= getContentPane();
    content.add(jp, BorderLayout.CENTER);
    pack();
    setVisible(true);
    show();
    fe.detectEdge(jp);
    public static void main(String[] args)
    JFrame frame= new JigSawFrame();
    }

    hey,
    package jigsaw;this doesn't make any sense here...since it's not given by the code. So what this jigsaw package does for your code or programme?

  • Title designer coordinates bug

    I'm having an issue with CS6 Premiere Pro's title designer.
    If I place text in the title, add it to my timeline, and then reopen the title for editing, I find that the coordinates of the placed text read as X 100 & Y 100, regardless of where they are actually placed. As soon as I click on either coordinate text field, the text will jump to X 100 or Y 100, depending on which field I click on. I have revisited this a few times, and consistently, the coordinates for placed text read as X 100 & Y 100. In CS5.5, they simply retain their proper coordinates. Am I doing something wrong, or is this a bug???
    System info:
    CS6 Premiere Pro 6.0.1 (MC: 264587)
    6-core MacPro5,1
    16GB RAM
    OSX 10.6.8
    ATI  Radeon HD 5870 video card
    Permissions repaired and disks checked (ONXY & Disk Warrior)
    Here's a screen shot of some text's position coordinates after being placed:
    Here's what I get when I double click the title to open it for editing. Note that the text is still in its original location in the title, but the coordinates now read as X 100 & Y 100:
    This is mostly a major annoyance as I can manually reposition the text, but if I want to match text postions of a few titles via numerical coordinates, I have to enter both X and Y values.

    No they don't, if you want it fixed you need to file a bug report.
    Adobe - Feature Request/Bug Report Form

  • Camera Raw Default Tone Curve Function / Coordinates

    Hi,
    I would like to know where I can find the function / coordinates for the Lightroom / ACR default tone curve that is applied to any image.
    I think it's the red one in that image, or it's very very close:
    I want to generate a lookup table to match it's effect. For now I plotted something that is very very close but I lack precision at the bottom of my curve.
    Cheers,
    Thomas

    I'm confused - I thought the default was linear. I mean, this is probably not what you want, but here is a curve which makes PV2012's linear tone curve equivalent to PV2010 linear, or at least that's how I call it:
    <dngclr:ToneCurve rdf:parseType="Resource">
    <dngclr:Edit0 rdf:parseType="Resource">
       <dngclr:X>0</dngclr:X>
       <dngclr:Y>0</dngclr:Y>
    </dngclr:Edit0>
    <dngclr:Edit1 rdf:parseType="Resource">
       <dngclr:X>17</dngclr:X>
       <dngclr:Y>26</dngclr:Y>
    </dngclr:Edit1>
    <dngclr:Edit2 rdf:parseType="Resource">
       <dngclr:X>34</dngclr:X>
       <dngclr:Y>44</dngclr:Y>
    </dngclr:Edit2>
    <dngclr:Edit3 rdf:parseType="Resource">
       <dngclr:X>51</dngclr:X>
       <dngclr:Y>60</dngclr:Y>
    </dngclr:Edit3>
    <dngclr:Edit4 rdf:parseType="Resource">
       <dngclr:X>68</dngclr:X>
       <dngclr:Y>74</dngclr:Y>
    </dngclr:Edit4>
    <dngclr:Edit5 rdf:parseType="Resource">
       <dngclr:X>85</dngclr:X>
       <dngclr:Y>89</dngclr:Y>
    </dngclr:Edit5>
    <dngclr:Edit6 rdf:parseType="Resource">
       <dngclr:X>102</dngclr:X>
       <dngclr:Y>105</dngclr:Y>
    </dngclr:Edit6>
    <dngclr:Edit7 rdf:parseType="Resource">
       <dngclr:X>119</dngclr:X>
       <dngclr:Y>120</dngclr:Y>
    </dngclr:Edit7>
    <dngclr:Edit8 rdf:parseType="Resource">
       <dngclr:X>136</dngclr:X>
       <dngclr:Y>135</dngclr:Y>
    </dngclr:Edit8>
    <dngclr:Edit9 rdf:parseType="Resource">
       <dngclr:X>153</dngclr:X>
       <dngclr:Y>151</dngclr:Y>
    </dngclr:Edit9>
    <dngclr:Edit10 rdf:parseType="Resource">
       <dngclr:X>170</dngclr:X>
       <dngclr:Y>167</dngclr:Y>
    </dngclr:Edit10>
    <dngclr:Edit11 rdf:parseType="Resource">
       <dngclr:X>187</dngclr:X>
       <dngclr:Y>183</dngclr:Y>
    </dngclr:Edit11>
    <dngclr:Edit12 rdf:parseType="Resource">
       <dngclr:X>204</dngclr:X>
       <dngclr:Y>200</dngclr:Y>
    </dngclr:Edit12>
    <dngclr:Edit13 rdf:parseType="Resource">
       <dngclr:X>221</dngclr:X>
       <dngclr:Y>218</dngclr:Y>
    </dngclr:Edit13>
    <dngclr:Edit14 rdf:parseType="Resource">
       <dngclr:X>238</dngclr:X>
       <dngclr:Y>236</dngclr:Y>
    </dngclr:Edit14>
    <dngclr:Edit15 rdf:parseType="Resource">
       <dngclr:X>255</dngclr:X>
       <dngclr:Y>255</dngclr:Y>
    </dngclr:Edit15>
    </dngclr:ToneCurve>

  • Getting the screen coordinates of the table

    Hi,
    I need to find the screen coordinate of the table that is displayed in a jsp page. I am only able to get the resolution and not the xy coordinates.
    Can anyone help me pls
    Regards
    Jeyanth

    You may want to find a javascript forum to ask that, as it is not something you can do in JSP

  • Coordinates of rotated textframe

    With the help of itemtransform horizontal, vertical distance and path point arrays, I can find out the coordinates of text frame (x1,y1), (x2,y2), (x3,y3), (x4,y4). If the textframe is rotated then item transform values are getting changed, but the path point array values are same. I can find rotation angle by the matrix [cos(θ) sin(θ) -sin(θ) cos(θ) 0 0], But I could not get the exact coordinates of rotated textframe. The textframes are given below.
    Normal Text frame
    <TextFrame Self="u136" ParentStory="u124" ItemTransform="1 0 0 1 101.72727272727272 -349.41818181818184">
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/>
                                <PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>          
    </TextFrame>
    Rotated textframe
    <TextFrame Self="u136" ParentStory="u124" ItemTransform="0 1 -1 0 320.3805483338268 -125.07900895050204">
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPointType Anchor="-101.72727272727272 -46.581818181818164" LeftDirection="-101.72727272727272 -46.581818181818164" RightDirection="-101.72727272727272 -46.581818181818164"/>
                                <PathPointType Anchor="-101.72727272727272 -0.3272727272727103" LeftDirection="-101.72727272727272 -0.3272727272727103" RightDirection="-101.72727272727272 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -0.3272727272727103" LeftDirection="115.9090909090909 -0.3272727272727103" RightDirection="115.9090909090909 -0.3272727272727103"/>
                                <PathPointType Anchor="115.9090909090909 -46.581818181818164" LeftDirection="115.9090909090909 -46.581818181818164" RightDirection="115.9090909090909 -46.581818181818164"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>         
    </TextFrame>
    Can anyone help me to find out the cordinates of rotated textframe.
    Thanks in advance.

    I suspect you'll do better asking here: http://forums.adobe.com/community/indesign/indesign_sdk

  • GPS coordinate numbers. Where is it?

    N8. Anna. Maps 3.06
    While viweing at a particular place on the map, I don't seem to be able to find the GPS coordinate of that particular place. Selecting it only provides the options of "Navigate", "Save" and "Share".  Any idea?
    Solved!
    Go to Solution.

    Thought that ability to retrieve co-ordinates disapeared from v3.06 onwards, especially since "Landmarks" application no longer compatible with S^3!
    Happy to have helped forum with a Support Ratio = 42.5

Maybe you are looking for

  • Satellite L450 crashes for no obvious reason

    I have a two month old L450 running "windows7". Within a week of purchase and for no obvious reason, the screen went black with a blue message box in the centre. It only remains on the screen for a few seconds before shutting down so I don't have cha

  • My nokia 5310 wont turn on..

    i charged it last time..but i didn't notice that the charger is quite broken..the i turned on my phone while its charging and it opened..but it got drained again..but for the second time i tried to turn it on..the nokia logo was displayed after that

  • Tree node to respond to the drag and drop...

    I have to be able to drag a file into a tree node to drop. When I drop at the tree node, the file should be shown at the right side of panel. Just like MS Window Explorer. Drag and drop at the table to table is working but not drag into the tree and

  • Photoshop Elements 8: Installer freezes while checking system profile at 80%-90% (Mac OS)

    Hi All, In the last two months, we have observed that due to OS upgrade issues and some java script issues, some of the PSE 8 Mac users were not able to go past "Checking System Profile" check initialization dialog after 80-90% progress and installer

  • Help with soft like skype

    Does blackbeery have a program/software like skype. I really need a soft to call to others computers from my blackberry 8310. Just sign session and call a contact who stay in his computer. Thanks for all. Alberto from argentina.