Get length and width of a rectangle

I am using sdo_sam.tiiled_bins to breakup rectangles into different sections. I need to divide the rectangle along the x or y axis depending on if is longer or wider. I checked the documentation and I could not find a way to get the length and width of a minimum bounding rectangle. Is there any built in functionality to get the length and width of a rectangle or do i have to create my own? Database is 11gr2.
Thanks
Rob

Rob,
You can use SDO_GEOM.SDO_MIN_MBR_ORDINATE and SDO_GEOM.SDO_MAX_MBR_ORDINATE to compute the length and width of an mbr.
References:
[ SDO_GEOM.SDO_MIN_MBR_ORDINATE | http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_objgeom.htm#i866250 ]
[ SDO_GEOM.SDO_MAX_MBR_ORDINATE | http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_objgeom.htm#i866249 ]
Regards,
Noel

Similar Messages

  • How to get length and width of a textbox or image box and display on a dialog

    Hi,
    When I draw a textbox or frame on a document, and If I select it then I want to display its length and width on a dialog.I am not able to solve it, Can anybody help me ?
    Can u suggest some sites or online books about Indesign plugin development programming using c++.
    Thanks,
    Ravi Sharma

    Thanks Schneider. It was very helpful.<br /><br />As I am new to Indesign CS3 SDK programming. <br /><br />I am not able to understand the syntax of this programming ,<br /><br />How to use InterfacePtr.<br /><br />For eg:<br /><br />InterfacePtr<IClassIDData> orgDocFileHandlerData(doc, IID_ORGICLASSIDDATA); <br /><br />Can u please explain me this and suggest some good sites/online books <br /><br />about Indesign CS3 SDK programming for Windows and Mac.<br /><br />Thanks n Regards,<br /><br />Ravi Sharma

  • Applescript to resize images by BOTH length and width?

    I've searched for this, so please forgive me if I've somehow missed it.  I'm looking for an Applescript that will resize both the length and width of an image.  Ideally, I'd just like to save it to my desktop and drop images on it, resizing them to 250x166 pixels.  Is this possible?  I've seen scripts for length OR width, but nothing that will do both.  I know, the images will be out of proportion, but for what I'm doing, that won't be an issue.  Any help is greatly appreciated!

    Your request is a little unusual, which may be part of your problem.
    The issue is that, usually, when you resize an image you want to scale it proportionally to maintain the same aspect ratio. Otherwise you end up distorting the image in one direction.
    For example, if your image is, say 250 x 84px and you just double the height to get 166px, the image will distort and probably not look like what you wanted.
    So what you want is probably a combination of scale, crop and/or pad. Scale proportionally increases or decreases the image's dimensions. crop trims an image to a certain size, and pad expands an image's boundaries to fill the space. Anything more than that requires additional thought as to what you want the image to look like.

  • Measuring length and width of objects

    I want to use photoshop cs6 extended to measure maximum length and width of objects (like in the picture below).
    Does anyone know how to do that? Is it also possible to do it automatically?
    Thanks!

    11ilse11 wrote:
    I want to use photoshop cs6 extended to measure maximum length and width of objects (like in the picture below).
    Does anyone know how to do that? Is it also possible to do it automatically?
    Would a measurement using the Ruler tool accomplish this? Trace over your green line with the ruler then read distance traversed between endpoints of the line in the ruler tool options bar.
    You then could determine perpendicular width by rotating the image such that the green line is vertical.*  Then measure width with a horizontal line. 
    * You can drag out a measure line on an image feature that should be horizontal or vertical, and then choose Image >
    Image Rotation > Arbitrary. The correct angle of rotation required to straighten the image is automatically entered into the
    Rotate Canvas dialog box.

  • Adjusting length and width by inches

    I need to make a cover for a dvd using 5 x 7.3 is there any way to adjust the length and width. i know you can adjust the width at the top but i also need to adjust the length. does anyone know how to do this.
    thanks

    jseth wrote:
    thank you so much, also is there a way to make the whole background black?
    for the entire page or for the box ?
    If it's for the box, create a rectangular shape with black border and background then enter your text in the shape.
    Yvan KOENIG (from FRANCE dimanche 17 mai 2009 19:24:54)

  • KM: How to get length and substring?

    I write my own IKM and I need detect long string and cut them.
    I try to use
    <%=odiRef.getTable("L","TARG_NAME","A").length() %> --> returns value: 70 (!) , but real length is 25 (perhaps returned buffer size).
    Any ideas?

    This is not correct code
    if (tname.length() > 25)
    tname=tname.trim().substring(0);
    Because,after
    tname = snpRef.getTable("L","TARG_NAME","A");
    ODI put into tname <?=snpRef.getObjectName("L", "<table name>", "<schema>", "", "D") ?>. This code will be evaluate on execution.
    tname.length() is equal to "<?=snpRef.getObjectName("L", "<table name>", "<schema>", "", "D") ?>".length() and return 70.
    I parse <?=snpRef.getObjectName("L", *"<table name>"*, "<schema>", "", "D") ?> and resolve my problem:
    <%
    var s=snpRef.getTable("L", "TARG_NAME", "A");
    var pos1 = s.indexOf('"', 0);
    var pos2 = s.indexOf('"', pos1 + 1);
    var pos3 = s.indexOf('"', pos2 + 1); // 3-td quote pos
    var pos4 = s.indexOf('"', pos3 + 1); // 4-th quote pos
    var targ_name = s.substring(pos3 + 1, pos4);
    And now, targ_name.length() and targ_name.substring(x,y) return correct values.
    %>
    Edited by: Aikon on 29.11.2012 1:59

  • How to increase the size (Length and width)  of check box

    Hi All,
    I have to increase the size of ( width and length) of check box, I have revised to check box topic in dev guide but didnt find any clue, i have also tried to use CCStyle class but that is also not working, I would appreciate if some can help me out on this. Thanks in advance , let me know if any clarification required.
    Thanks
    Pratap

    Hi Pratap ,
    I honestly don't know how to increase the size
    But i am giving you an alternate solution : we can create two Images with check box type 1 ) with checked
    2 ) with unchecked . ( you can create image of any size ) and get them displayed on OAF screen dynamically using switcher case .
    Dynamically displaying image will give the illusion of check box being checked and unchecked .
    keep this image moved to following media directory
    eg : /oraapp/mfgtestcomn/java/oracle/apps/media .
    Implement the switcher case , add the fire action to this Image Column , create a transient attribute and attach to this
    column . Depending on the value returned by transient attribute display the image on the column .
    Let me know if its not clear .
    Keerthi

  • Graphics length and width in Smartforms

    Hi experts,
    I need to insert a logo in a custom SMartform. I have imported the logo as a graphic via SE78 and I have created a new graphic in my Smartform with the same name. All this is working pretty fine. The only problem is that I can not change the width and the loength of the graphic (these fields are display only for the graphic). I can change the resolution of my graphic, but that doesn't make it take the dimensions I would have wished.
    Is there any way to change the graphics dimensions?
    Thanks in advance

    In you smartform, go to logo general attributes(tab), under technical attributes you change the resolution.Ex: 200 DPI or 300 DPI
    Note: Width and Height are controlled by resolution.
    Regards,
    SaiRam

  • Help on how to Set a page length and width.

    Hi guys I'm kind a new to java JDBC and Jasper.
    I'm currently creating my senior project, developing a POS system using Java JDBC, MySql and JasperReport.
    I'm now on the finally stage of my project polishing stage.
    Now here is my problem.
    My adviser wanted my to print sale Invoice using and ordinary Printer let say Espon LX 300 which is available on our Cmpter Lab. He want me to print Sale Invoice using continues paper and try to simulate an actual thing. But I don't know on how to set up a custom paper size in Java or trying to select printer from your system or in your network.
    here is the sample of the code:
    void PrintInvoice(String databaseName,String userName,String password,String reportFile,String Invoice_Reprint)
            HashMap hm = new HashMap();
            hm.put("REPORT_DATE", saledate_tbox.getText());      
            hm.put("REPORT_VAT", vat_tbox.getText());
            hm.put("REPORT_SUBTOTAL", subtotal_tbox.getText());
            hm.put("REPORT_TOTALPAYMENT", total_tbox.getText());
            hm.put("REPORT_CASH", cash_tbox.getText());
            hm.put("REPORT_CHANGE", change_tbox.getText());
            hm.put("REPORT_POS",POS);       
            hm.put("REPRINT", "REPRINT");
            Connection connection = null;
            ResultSet resultSet = null;
            Statement statement = null;
            try{
            Class.forName(JDBC_DRIVER);     
            String query1 = "select invoice.idinvoice as 'Invoice No'" +
                    ",CONCAT(customer.firstname,' ',customer.lastname) as 'Customer'" +
                    ",invoice.date as 'Date-Time'" +
                    ",item.description as 'Description'" +
                    ",sum(invoice_items.quantity) as 'Quantity'" +
                    ",Format(item.regular_price,2) as 'Unit Price'" +
                    ",Concat((invoice_items.discount*100),'%') as 'Whl Disc'" +
                    ",Format(invoice_items.price,2) as 'Price'" +
                    ",employee.username as 'Employee'" +
                    ",Format(invoice.totaltax,2) as 'Vat'" +
                    ",Format(invoice.total,2) as 'Total'" +             
                    ",Format(invoice.cash,2) as 'Cash'" +
                    ",Format((invoice.total-invoice.totaltax),2) as 'Subtotal'" +               
                    ",Format((invoice.cash-invoice.total),2) as 'Change'" +
                    " from invoice,item, invoice_items,customer,employee " +
                    "where invoice.IDINVOICE = invoice_items.IDINVOICE " +
                    "AND invoice_items.UPC_CODE = item.UPC_CODE " +
                    "and invoice.idcustomer = customer.customerid " +
                    "and invoice.idemployee = employee.idemployee " +
                    "AND invoice.idinvoice = (select idinvoice from invoice " +
                    "where idemployee = (select idemployee from employee where username = '"+soldby_tbox.getText()+"') " +
                    "AND idinvoice = '"+Invoice_Reprint+"' ) GROUP BY item.DESCRIPTION";
            connection = (Connection) DriverManager.getConnection(databaseName,userName,password);
            statement = (Statement) connection.createStatement();
            resultSet = statement.executeQuery(query1);
            JasperDesign jasperDesign = JRXmlLoader.load(reportFile);
            JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);        
            JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, hm, new   JRResultSetDataSource(resultSet));        
            JasperExportManager.exportReportToPdfFile(jasperPrint, PDFEXPORT);        
            JasperViewer.viewReport(jasperPrint);
            JasperPrintManager.printReport(jasperPrint, false);       
          }catch(Exception ex) {
             String connectMsg = "Could not create the report " + ex.getMessage() + " " + ex.getLocalizedMessage();
             System.out.println(connectMsg);
          finally{
            try                                                       
                  statement.close();                                     
                  connection.close();                                    
               } // end try                                              
               catch ( Exception exception )                             
                  exception.printStackTrace();                           
               } // end catch    
        }My code print the report on the default printer and default printer setting.
    I hope someone out there can help me thx alot. by the way I uses Ubuntu as my OS.
    The theme of my Senior Project: POS System Using Open Source.
    Hey can someone suggest a project tag line or a better theme cause I believe in the ideals of Open Source,
    Thx

    Try to define ENTER this way & try
    class cl_abap_char_utilities definition load.
    DATA : BEGIN OF enter,
    x type c value cl_abap_char_utilities=>cr_lf,
    END OF enter.
    PS : I am not 100% sure about this.

  • What's the length and width of an iPad?

    Im doing a project and using the exact same shape of an iPad, so wondering if anyone knows the size of an iPad in "cm" ..

    http://www.apple.com/ipad/specs/
    Stedman

  • How to make PDF file size smaller from an Illustrator file without changing the quality or size (length and width) of the file?

    Is there a way to make a 30x42 size (40 GB) Illustrator file as a PDF but make the file smaller in size (able to email to clients) with out compromising the quality of the file or the size of the file?

    If you are working in RGB you can embed a colour profile. Embed ICC Profiles is one of the Acrobat save options. It will increase files size dramatically.
    When you save your pdf you can choose the compression method for placed images. Default is ZIP which is really no compression at all for pixel images. Instead you should opt for JPG compression (of varying degree according to how sensitive the images are to compression).
    You should also examine the other Acrobat save options. To minimize file size you should not have any of the options checked (Preserve Illustrator Editing Capability, Embed page Thumbnails etc. etc.).
    40 gigabytes for a file like the one you show is ridiculous. Did you maybe embed the placed images? If so, don’t. Keep them linked unless you really need to embed them.

  • How can I get the image width and height stored in database?

    Hi!I write s servlet to display images store in database.but how can I get the image width and height?

    Have you tryed using PJA or a similar library?
    I presume you get java.lang.NoClassDefFoundError on the line :
    Toolkit.getDefaultToolkit();?

  • I jumped into a swimming pool, did a few lengths and then realised that my iPod was in my pocket!!! I have tried putting it in rice but it still won't turn on or anything! Could I get it fixed anywhere?

    I jumped into a swimming pool, did a few lengths and then realised that my iPod was in my pocket!!! I have tried putting it in rice but it still won't turn on or anything! Could I get it fixed anywhere? Or is there another trick to recover it?

    If it is dry (in rice for a week and changing the rice every day or so)
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
      Apple - iPod Repair price                             

  • What is the viewable image area/screen size (length x width) on the 2014  21.5" and 27" imacs?

    what is the viewable image area/screen size (length x width) on the 2014  21.5" and 27" imacs? i have an older 24" and am trying to determine if i need to go up or if 21.5" will be adequate. Thanks!

    21.5 -
    Height: 17.7 inches (45.0 cm)
    Width: 20.8 inches (52.8 cm)
    27 -
    Height: 20.3 inches (51.60 cm)
    Width: 25.6 inches (65.0 cm)
    Ttake about an inch off for the lack border from each side and youll have an approximate.
    http://www.apple.com/imac/specs/

  • How do i get the max width and height?

    Hey
    I want to get the max width and height, so my desktoppanes size can be set automatically.
    I know i should use getBounds but i cant find a concrete example on goole, on how to use it.
    Can someone point me in the right direction, with an example?

    Ok, assuming you want to get the screen resolution, i.e. 1024 x 768.
    You will need these imports:
    import java.awt.Dimension;
    import java.awt.Toolkit;and this line of code:
    Dimension myScreen =  Toolkit.getDefaultToolkit().getScreenSize() ;You can now use myScreen.width and myScreen.height to access the height and width of your screen's resolution. (width = 1024, height = 768 in my case)
    Hope this helps,
    Stern
    Edited by: Stern on Apr 13, 2008 6:49 AM

Maybe you are looking for

  • How to attach Documents in a query

    Hi expert, I would like to include some information (p.e. instructions) in a report in order to let the user see this additional information. We usually see the reports in Bex Analyzer (we don't use the Browser) Here is an example: Instructions: 1. R

  • Can't Login to Service Designer

    I'm unable to login to the PTG Service Designer. I'm running NT/OAS. Upon starting the Service Designer I provide the appropriate credentials: Location: hostname:2008/PanamaServer UserName: Administrator Password: manager (tried several other combina

  • Opening Installation File In Applications

    Hi All, I'm having great difficulty oopening a game I have downloaded. I have gone onto the Second Life website to download the game onto my apple mac OS X Panther. It has downloaded successfully and gives the instructions to move the SL icon into my

  • How can I know the length of the image data section of a PSD file

    I'm a C++ programmer developing a project to parse PSD files, and it's necessary to know whether there is a length field indicating the length of the image data in image data section of a PSD file, if not, how can I know the length? Thank you.

  • Importing mpeg 4 files

    i have them all imported but the render times are so long... it's a total of about 5 minutes of footage... is there anything i can do to speed the render times up... i didn't think it would take so long, being that the files are smaller than the usua