Display point stored in SD_GEOMETRY

I have a point that is stored in a SDO_GEOMETRY variable. There must be a way to output the coordinates of this point on the display. DBMS_OUTPUT.put_line(var) has failed.
It appears that a detailed SELECT statment may work but thus far my attempts have failed.
Thank you for any assistance.

for sdo_point specific
SELECT a.id, a.geometry.sdo_point.X, a.geometry.sdo_point.Y
FROM YOUR_TABLE a;
make sure you use an alias on your tablename!
another generic way:
SELECT c.id, t.X, t.Y, t.id
FROM your_table c,
TABLE(SDO_UTIL.GETVERTICES(c.geometry)) t
ORDER BY c.id, t.id;
Read:
http://download.oracle.com/docs/html/B14255_01/sdo_util.htm#BABDEGIA

Similar Messages

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Displaying server stored images in an air application

    Usually when I go about displaying server stored images in a regular flex application I go about it the following way:-
    - Create a mysql database table on a server which contains image names
    - Create a php file which generates all of the image namesfrom the table as xml and upload this file to the server
    - Create a new flex application/project
    - In the application make a http service which points to my php/xml file and turns this data into an array collection
    - Set the array collection to the dataprovider of a tilelist component so that all of the images will eventually be displayed within it when they are created
    - I set the itemrenderer of the tilelist to an image component which has it's source set to something like source="{'assets/images'+ data.imagename}" with imagename being the field containing the name of the image which is stored in the mysql database table.
    - Make a folder in the app/project called assets/images which will contain all of the images
    - Upload the app to the server and once it runs all the images will be displayed in the application
    - Then any images that are uploaded to the server can also be displayed as long as their names are added to the mysql database
    My question is though how do you get server stored images to display within an Air Application? My air app will be used on multiple machines but I want the images in it to be dynamic i.e. stored on a server and can be changed. How can this be done?

    I'm struggling to figure out how to access the image files when the assets/images folder will be on a server and the app itself will be on the user's desktop whereas usually in the case of a regular flex app this wouldn't mater as both the app and the image files would be on the server together. Is what I'm trying to do possible i.e. displaying images on a desktop air app straight from a server?

  • Displaying Images Stored on a Server In Flex

    My original idea for my app was to have live thumbnails of websites by screenshotting a html component in the app and saving these screenshots as jpgs which are applied as the source of the thumbnails. I now realise this is a bit too unstable as if the site doesn't load the images won't display. What I want to do instead is use the same idea but instead of the application writing to the application directory writing to a server where the images are stored so that it will overwrite these images.
    What I need to know is how to display server stored images in flex in either an image component or an array collection so they can be applied to a tilelist. The problem is I have zero experience at using server side data with flex. Can anyone point me in the direction to some examples/tutorials on how to display server stored data or more specifically images within a flex application or give me advice on this? Cheers.

    quick and easy way to do it would be with PHP.
    Make a script, scan a server folder and return the results in an XML format that can simply be fed into a datagrid/tilelist/whatever. To give you a few hints of what to look into.
    You'll need an initial HTTPService request fired off to the php script. The PHP script will then need to parse through the folder finding all the images, i'd recommend the glob() function in PHP to do this. eg:
    print "<images>";
    foreach (glob("directory/*.jpg") as $filename) {
        print "<screen><name>".$filename."</name><location>directory/".$filename."</location></screen>"
    print "</images>";
    then you'll need to handle the result event, simply feed each item into its respective place and ta daa.
    there are loads of examples around with this same methodology principle like this one:
    http://www.vipercreations.com/tutorials.php?t=28&page=1&c=Adobe%20Flex
    and i'm sure if you search around for 'flex php gallery' on google you'll probably even find a totally relevant example.

  • Displaying images stored in SQL Server

    Is there someway of displaying images stored within SQL
    Server. Is FDS required? Prefer a method to display images without
    using FDS; Web Service would be okay if that can work

    I do that sort of thing using PHP and mySQL the binary part
    of the image is stored in a BLOB field (Binary Large OBject) along
    the rest of the information necessary for the http headers (e.g.
    mime type, file name, file size) being staored in their own fields.
    That info is then used to build the file using PHP. The PHP
    file contains a mySQL query whos result is echoed with the
    appropriate headers. The URL points at the PHP file rather than at
    any saved image.
    Here's the php:
    <?
    # display_imagebank_file.php
    # Note: the ID is passed through the url e.g.
    # this_files_name.php?id=1
    # connect to mysql database
    mysql_connect('HOST', 'USERNAME', 'PASSWORD');
    mysql_select_db('DATABASE');
    # run a query to get the file information
    $query = mysql_query("SELECT FileName, MimeType, FileSize,
    FileContents FROM blobTable WHERE ID='$id'");
    # perform an error check
    if(mysql_num_rows($query)==1){
    $fileName = mysql_result($query,0,0);
    $fileType = mysql_result($query,0,1);
    $fileSize = mysql_result($query,0,2);
    $fileContents = mysql_result($query,0,3);
    header("Content-type: $fileType");
    header("Content-length: $fileSize");
    header("Content-Disposition: inline; filename=$fileName");
    header("Content-Description: from imagebank");
    header("Connection: close");
    echo $fileContents;
    }else{
    $numRows = mysql_num_rows($query);
    echo "File not found <br>";
    echo $numRows;
    echo " is the number of rows returned for id = ";
    echo $ID;
    ?>
    Hope that helps
    Phil

  • Position of items in a region changes when changing region display point

    Hi all,
    I encounter a strange behaviour of items when changing the display point of a reports region from default (Page Template Body (3)) to anything else.
    If set to Body (3), my items are correctly displayed above the report, but else they are displayed below.
    Changing the sequence numbers does not affect this.
    To clarify what I mean I created a sample application:
    http://apex.oracle.com/pls/otn/f?p=16478:1
    Is there any possiblity to influence whether items in a reports region are displayed below or above the report table? - I did not find anything...
    TIA,
    Felix

    If you read the description of those other regions you'll clearly see "items below region content" rather than "items above region content", like the page template body region #3.
    This is one limitation of the ApEx region templates that some would like to see improved - meaning, allowing for more flexibility.
    Earl

  • Problem displaying picture stored in mySQL

    Hi, i just have got problem displaying picture stored in database as BLOB and presented on JSP over servlet. Below is my code i am using to upload file into database, than download it and display again. The result is the picture can not draw inself and there is always only empty picture space on the web page i am displaying. Please help me to find why it is not working, thanx.
    servlet uploading picture to database
                   boolean isMultipart = FileUpload.isMultipartContent(req);
                   DiskFileUpload upload = new DiskFileUpload();
                   List items = upload.parseRequest(req);
                   Hashtable textFields = new Hashtable();
                   byte[] data = new byte[4096];
                   if(isMultipart)
                        Iterator iter = items.iterator();
                        while(iter.hasNext())
                             FileItem item = (FileItem)iter.next();
                             if(item.isFormField())
                                  textFields.put(item.getFieldName(), item.getString());
                             }else{
                                  data = item.get();
                   String sqlStatement = "INSERT INTO cds VALUES('" textFields.get("id")"'," +
                                            "'" textFields.get("album") "','" textFields.get("interpreter") "'," +
                                                      "'" textFields.get("gr1") "','" textFields.get("gr2") "','" textFields.get("price") "')";
                   String sqlStatement2 = "INSERT INTO pics VALUES('" textFields.get("id") "','" data "')";
    servlet to download picture
    String SQL =
         "SELECT Picture " +
         "FROM pics " +
         "WHERE id = '" + request.getParameter("id") + "'";
         ResultSet rs = stmt.executeQuery(SQL);
         rs.next();
         Blob blob = null;
         blob = rs.getBlob(1);
         response.setContentType("image/jpg");
         request.setAttribute("blob", blob);
         System.out.println("just above OutputStream");
         InputStream in = blob.getBinaryStream();
         ServletOutputStream sout = response.getOutputStream();
         int b;
         while ((b = in.read()) != -1) {
         sout.write(b);
         in.close();
         sout.flush();
         sout.close();
    img tag in JSP
    <img src="LoadImageServlet?id=some id>
    plus i am using
    Tomcat 5.0
    mySQL 4.0
    debuging in eclipse
    thanx for help once more, Libor.

    1:
    are there any exceptions throws by the jdbc code
    2:
    is the code in a doGet
    3:
    you should do a if(result.next())
    4:
    Is your mapping code working

  • Can you connect more then one external screen to a mac with one mini display point?

    Does any one know if you can connect more then one external screen to a mac, with one mini display point?

    This company has a dual monitor solution for DisplayPort;
    http://www.matrox.com/graphics/en/products/gxm/dh2go/

  • Default Display Points in Page Templates

    Ver 1.6 adds Default Display Points in the Page Templates. As I understand it these would be the default positions for Breadcrumb menus and Sidebars.
    How do these work? If you create a region, based on a breadcrumb style menu, you must specify a Display Point. The breadcrumb menu region uses that location rather than the Default Display Point.
    How do these work?
    And whats a sidebar? it is not a menu type
    Thanks

    Thanks Vikas.
    Since the format had to be repeated over many pages, I just built a custom type of Region that I use with the button positions that I need for which I modified the CSS to include my formatted classes well as the Region for only those button position that I need.
    Regards,
    Nayana

  • Display image stored @ content managemenbt

    Hi,
    this is regarding to displaying image stored @ content management, using <html:img> tag in .jsp
    under a node i am uploading two images. (node having two upload options)
    in .jsp i am using <html:img> tag to display the images.
    i tried to display both the images. But the first image what i upload is not showing. what i upload second is displaying.
    pls let me know how to resolve this.
    Thanks.

    You need to access binary property values separately from the node. In 9.2 the API is accessed via INodeManager.getStream(). Alternatively you can take advantage of the tags we have for this as well. Take a look here on edocs:
    http://e-docs.bea.com/wlp/docs92/cm/developCM.html
    -Ryan

  • N82, Gallery doesn't display pictures stored in th...

    Hi!
    Suddenly the gallery function doesn't display pictures stored on the memorycard. Well, not any files in the memory card.., doesn't recognize musicfiles either.
    Is there a way to set the gallery function to display files in the memory card? It did automatically before.
    New pictures are stored in the memorycard and also not displayed.
    I can browse and open the pictures using the filemanager. If i copy them to the phonememory it also displays correctly..
    I've upgraded the firmware but the problem remains..
    Help much appreciated
    Solved!
    Go to Solution.

    glad its worked
    If you find my post useful then click on
    Kudos!Nokia N96 (v20.050 / RM-247)
    www.shaysoft.net | Competitions!

  • Can you create more region display points??

    There are a number of region display ponts ie Page Template Region Position 1, Page Template Region Position 2.........> Page Template Region Position 8. Is it possible to create another ie Page Template Region Position 9 which is directly below 8??? If so.. how?? I am building a application and am using alot of conditional displays and i have run out of regions!
    thanks Roddy

    Hello,
    No you can not create more region display points.
    But each display point can have N number of regions in it and conditions are at a region level not a region display point level.
    Carl

  • How do you manipulate / add / remove Display Points

    In a pagedefinition you can define a template and a display point for a certain item. I'm looking for the place where the display points you can choose from are defined, so I can edit these display points. I now use a standard theme, but I'd like to add a display point to the left, and remove some other display points that are defined now, but will never be used. Where do i find these display point definitions?

    Hi,
    As Shunt and me did say, go edit your page template
    Home>Application Builder>Application xxx>Shared Components>Templates
    Pick page template and edit. Scroll bottom of page where is list/report of those positions and substitution strings.
    Then modify page template Body part
    br, Jari
    Edited by: jarola on Nov 20, 2009 11:22 AM
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#sthref1658

  • Page slow - Disabled grid support for display point

    The page loads slowly and it shows the following debug entries "Disabled grid support for display point".
    There is as well global page 0's regions in the page.
    I can't figure out which page regions/items are our exceeding the grid.
    The show-grid on the page shows green grid, but hmm. cant figure out the amount of grids.
    1. Where to look for this grid + items problem in the Page Designer?
    Application Express 5.0.0.00.31
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    Theme 25, subscribed from Apex5 repository
    Upgraded application from 4.2
    Two Level Tabs - Left Sidebar
    Elapsed
    Execution
    Message
    Level
    0.13712
    5.94805
    Disabled grid support for display point BODY because there are no more grid columns available!
    2
    6.08515
    6.19260
    Disabled grid support for display point BODY because there are no more grid columns available!
    2
    12.27775
    Page contains page items/buttons which are  not assigned to a region!
    2
    Rgrds Paavo

    Hi, found inefficient sql and by using Tuning Advisor I was able to tune them, so now it renders faster.
    When looking the LEVEL9 debugs there are still those rows with
    0.40106
    0.00180
    Disabled grid support for display point BODY because there are no more grid columns available!
    and
    0.56902
    0.00003
    Page contains page items/buttons which are not assigned to a region!
    0.56906
    0.00010
    ......Render page items and buttons
    0.56916
    0.00038
    ...No grid layout necessary, because
      everything is displayed in first column
    So the question are those messages 'harmless' and can I leave the page as it is or should I try to find what is leaking on the page?
    What is the consequence of Disabling grid support - messed page on certain browser?
    Is there method to show how many GRID's there are (12 ?) and which page item is in which grid.
    Rgrds Paavo

  • Display point

    Hello every one,
    How can i change display point of a page? Because I have a tree on page. I want to show tree left side. While I am clicking a node, region is refreshed in the right side.
    I can take tree in left side. But, tree's region is too width.
    any suggestion? Thanks

    Modify your page template(s) so that the left side region has a fixed width , either adding an inline style in the template or add it to a css file (using the sidebar region's selector)
    OR
    add an inline style to the sidebar region in the region attributes as style=&quot;width:200px&quot; (modify 200 to what works for you)

Maybe you are looking for

  • White line on screen

    White line at bottom of screen Close up of part of it About a month ago I noticed a white line across the bottom of my screen. Not exactly sure when it first appeared, as I have had a light coloured background and only saw it when i watched a DVD. I

  • Problem with ClassicMac FTP

    My Fetch program quit working today and I was looking for a free option rather than having to purchase FTP software if it wasn't necessary. I found ClassicMac here on the Apple site, downloaded & installed, then launched it. I logged in twice but whe

  • Constant conforming error.

    Hi. I've used Premiere a bit but I'm fairly new to it. I'm trying to edit an .avi file, but the conforming keeps failing, so I seem to get sound in the previews at first, but then it disappears when the error message shows up. I've tried deleting the

  • LabVIEW Signal Express, averages

    Hello, I'm brand new to LabVIEW. I have a temperature signal  from a thermocouple up in LabVIEW express, and I'm trying to get an average of this signal because it's very noisy. Can anyone provide me with very detailed help (as I'm brand new, and hav

  • FireWire and USB not working!!!!!

    I have devices that I run through USB and FireWire. I've had my PowerBook G4 (12") for (almost) 2 years. It is SLOW. I used to have 10.3, now I have 10.4. I've had a lot of glitches. Now, my USB and FireWire isn't working!!!!! I can't update my iPod,