How to create a georaster image from vector polygons

I want to create a georaster image from polygons. I know i can use it gdal_rasterize utility but want to find out if i can do it within Oracle itself. Are there any vector or georaster functions i can use?

Hi, there is no such functions within oracle to do that. thanks.

Similar Messages

  • How to create an Average Image from Gray Scale (8 bits) JPEG Images

    I�m trying to create a mean image from 9 JPEG Images, but this mean image has lots of "noise", is distorced, and doesnt�resemble at all the original ones.
    I need this mean image so I�ll correlate each of the original ones to find out the best image I�m going to choose ussing NCC (normalized cross correlation coeficient).
    When I use setRGB(x,y,rgb), it returns diferent "images" according to the number of zeros, for ex.: rgb = 028028028 is different from 28028028 and from 282828. I can�t find a way to work it out.
    My algorithm is the folowing:
            File f;
            double [] [] pixels = null;
            Color [] [] tempPixel = null;
            Integer [] [] byte0 = null;
            Integer [] [] byte1 = null;
            Integer [] [] byte2 = null;
            Integer [] [] byte3 = null;
         Integer [] [] tempPixels = null;
            mean = null;
            int w,h;
            fileNames = new String[numFrames];
            for (int i=1; i<numFrames; i++){
                fileName = path + "Frame#" + i + ".jpg";
                fileNames[i-1] = fileName;
            // just for getting width, height, for configuring pixels array and
            // buffered images - mean & best.
            fileName = path + "Frame#8.jpg";
            f= new File(fileName);
            try{
                temp = ImageIO.read(f);
            }catch(IOException io){ return false;}
            w = temp.getWidth();
            h = temp.getHeight();
            mean = new BufferedImage(w, h, BufferedImage.TYPE_BYTE_GRAY);
         pixels = new double [w][h];
            byte0 = new Integer [w][h];
            byte1 = new Integer [w][h];
            byte2 = new Integer [w][h];
            byte3 = new Integer [w][h];
            tempPixel = new Color[w][h];
              tempPixels = new Integer[w][h];
            f=null; temp = null;
            //reset pixels values.
            for(int x = 0; x < w; x++){
                for(int y = 0; y < h; y++){
                    byte0[x][y] =0;
                    byte1[x][y]=0;
                    byte2[x][y]=0;
                    byte3[x][y] = 0;
                    pixels[x][y] = 0;
            // read each file (image), and according to W & H and collects the
            // pixels values.
            for(int j=0; j<numFrames-1; j++) {
                f = new File(fileNames[j]);
                try{
                    temp = ImageIO.read(f);
                }catch(IOException io){ return false;}
                if(temp!=null)
                    for(int x=0 ; x< temp.getWidth(); x++){
                    for(int y=0; y<temp.getHeight(); y++){
                        tempPixel[x][y] = new Color(temp.getRGB(x,y));
                  pixels[x][y] = pixels[x][y] + temp.getRGB(x,y) / 16581375;
                        //BLUE
                        byte0[x][y] = byte0[x][y] + (tempPixel[x][y].getBlue());//tempPixel[x][y].getBlue(); //& 0xff;
                        //GREEN
                        byte1[x][y] = byte1[x][y] + (tempPixel[x][y].getGreen());// >>8 & 0xff;
                        //RED
                        byte2[x][y] = byte2[x][y] + (tempPixel[x][y].getRed()); //>>16 & 0xff;
                        //ALPHA
                        byte3[x][y] = byte3[x][y] + (tempPixel[x][y].getAlpha()); //>>24 & 0xff;
                f=null;
            }//end of loop for j<numFrames
            String t0, t1, t2, t3;
            for(int x=0 ; x< temp.getWidth(); x++){
                for(int y=0; y< temp.getHeight(); y++){
                     byte0[x][y] = byte0[x][y] / numFrames;
                    if((byte0[x][y])<10)
                             t0= "0" + byte0[x][y].toString();
                    //else if((byte0[x][y])>=10 & ((byte0[x][y])<100))
                    //    t0 = "0" + byte0[x][y].toString();
                    else
                        t0 = byte0[x][y].toString();
                    byte1[x][y] = byte1[x][y] / numFrames;
                    if((byte1[x][y])<10)
                             t1=  "0" + byte1[x][y].toString();
                    //else if((byte1[x][y])>=10 & ((byte1[x][y])<100))
                    //    t1= "0" + byte1[x][y].toString();
                    else
                        t1 = byte1[x][y].toString();
                    byte2[x][y] = byte2[x][y] / numFrames;
                    if((byte2[x][y])<10)
                             t2= "0" + byte2[x][y].toString();
                    //else if((byte2[x][y])>=10 & ((byte2[x][y])<100))
                    //    t2 = "0" + byte2[x][y].toString();
                    else
                        t2 = byte2[x][y].toString();
                    byte3[x][y] = byte3[x][y] / numFrames;
                    if((byte1[x][y])<10)
                        t3="0" + byte3[x][y].toString();
                    else
                        t3 = byte3[x][y].toString();
                        pixels[x][y] = (pixels[x][y]/numFrames) * 16581375;
                    try{
                        String rgbs = t2+t1+t0;
                        Integer rgb = Integer.valueOf(rgbs);
                              //System.out.println("Valor do rgb: " +rgb);
                        mean.setRGB(x,y,(int)pixels[x][y]);
                    }catch(NumberFormatException nfe){
                        System.out.println("ERROR: Integer to STRING: "  + nfe);
                        return false;
                    }// end of catch

    It�s ok, I�ve already found the solution.
    Thanks.

  • How to create one clean image from multiple shots?

    I tried searching, but I really don't know how to search for this so I came up empty.
    I have multiple pictures of the same product but had to focus on different parts to get those parts in focus. As you can imagine, this meant other parts were out of focus.
    I seem to remember during one of the "CS3 is cool" seminars I attended that something along the lines of what I'm hoping to do is possible.
    I would like to merge these images together to form one image with everything in focus. Exposure is the same on each of them.
    Is this possible (and if so, how) or am I dreaming?
    Using PS Extended.

    Thanks for all the suggestions, guys. I'll give those a shot and see if they work enough. If it looks like it'll take too long right now, I'll just try to find a better angle where I can get it "good enough" as I have many more pictures I need to take of cables and wires.
    Super fun.
    To answer some of the questions posed to me:
    I looked at photomerge, but that looked to me like more of a way to make panaramic (sp?) pictures from multiple shots. I may tinker with that a bit though as it's something I'd like to use for other things as well.
    I don't need this very often so this would not be a common practice, but if I knew how to do it, that would open some more options for me and I'd likely do it more often but still not regularly.
    It's not a super closeup, though I've had need of this operation on those in the past; wound up just shooting differently and settling for second or third best.
    I don't use what anyone would call a photo studio. It's a 4x8' piece of styrene tacked to the wall and a fold-up 6' table in a room with flourescent lighting (please try to restrain your laughter). The company's camera, while decent, is very old: Sony DSC-D770. This is why I bought my own Sony DSC-F828 2-3 years ago. Not the best but much better (the tiny-to-sometimes-larger purple haze around most edges is what bugs me the most). And my setup is just my camera on a tripod. I'm not fooling myself about my skills at photography; I'm very small-time, but I still need my shots to look good.
    (Out of respect for actual photgraphers, I don't even call myself a photographer. I "shoot product photos" or "do product photography" which still sounds a bit too lofty, but....)
    The product itself is the Velleman TLM12, a test tweezer for SMD devices. I'd like to get a "long" shot of it but that angle makes the tip and leads get out of focus in most shots and they're tiny so it's really noticable. I can get every part in sharp focus in 3-4 shots, but not in one at the angle I'm hoping to get.
    I use a macro lense when I need to get big pictures of 1" connectors and the sort, but this is way too big for that and the macro has a very small area of what would be in focus so this problem would be compounded far more than I'm experiencing now.
    I think layer masks might be the quickest way to achieve what I'm trying for here. Like I said, I don't need this often but if I knew how, I'd do it more frequently and might even create an action to do this faster.
    Thanks again, everybody. HUGE help. :)

  • How to create a pdf file from multiple images ?

    Dear All,
    I want to create a SINGLE page pdf file from two or more page size images that are combined to make a single page pdf. Again, this question is on pdfs that are made out of several, atleast  two color images and a black-and-white mask for one of them.
    I have such pdf files from an unknown source (the producer is edited out) whereby there are three tiff images, obtained using the well known pdfimages extractor.
    When I want to make a pdf out of tiff or png or other image formats, I right click and tell Adobe Acrobat to make a pdf.
    However, I dont know how I can give a command to select say,  three tif images and specify which is the mask for which and then join  them in a way that I get the pdf from the composite of the two color images and a mask for one of them.
    Please help me out.
    I am a little familiar with the pdf structure skeleton and when necessary, fixed xref tables in one of my favorite editors. A few years ago, I also wrote a bunch of javascripts to make some annotations and needed some automation and used some itext type libraries. However, I need your help in this problem as I am now rusty and forgot some of what I studied to solve my earlier problems. This is a new problem for me. Gentle hints from you would be very nice to help me in this problem. Please specify if necessary what manual and pages to read. in the pdfspec.
    Best Regards
    Disabled Veteran [physically handicapped]

    Hello Again.
    On Fri, May 11, 2012 at 12:20 PM, lrosenth <[email protected]> wrote:
    >
    > Re: How to create a pdf file from multiple images ?
    >
    > created by lrosenth in PDF Language and Specifications - View the full
    > discussion
    > ________________________________
    >
    > No clue who Irving is…
    >
    I was hoping to have your first name so its easy for me to address you.
    > I have no clue what OS platform, programming language, etc. you use so
    > can’t really narrow things down.
    I would gladly mention that I am working on windows platform, preferably XP.
    I can also work on linux for free products that come with it.
    >  Also, as this is an Adobe forum, we only
    > recommend Adobe products – so there may be other options that even my list
    > wouldn’t include.
    But adding other products, for the help of an adobe products user,
    even if it outside adobe, shall add greater prestige to your company
    and give impression of user-centeredness.
    > If you read ISO 32000-1:2008 (aka the PDF standard), you will find the
    > information about Images and Image Masks well described.  I didn’t think I
    > needed to repeat any of that information.
    Well, just add the few pdf stanzas since you are proficient on it and
    I am presently a little rusty as I mentioned. Just asking a little
    extra yard, not even to go an extra mile.
    > And, if you read that same document, you will see that there is NO SUCH
    > THING as a “text only PDF”.   All PDF documents are structured binary files.
    Well, ascii format or uncompressed format that is human readable. I
    know its a binary file, but human readable ascii version of it.
    I hope you can give me some stanza and various other approaches
    possible so I can select or combine things for myself. I see only a
    miniscule number of posts claiming to have written masks in this forum
    and then with no details.
    Regards
    Roger
    Message was edited by: dying veteran
    because the adobe posting system went crazy and truncated all except the first line ... dunno why

  • How do i create a jpeg image from clips in fcp

    how do i/can I create a jpeg image from clips in fcp?
    Stephen

    Select clip in timeline and place the playhead over the frame you want to save as a JPEG. Open the share window ( Button on far right of tool bar) and select 'Save current frame'. If you don't see that option click on add destination and select the Save current frame choice. It will be added to your share options.

  • How do you create a still image from a video using IMovies 11?

    How do you create a still image from a video using IMovies 11 on a Pro Mac?

    The simplest way is to do a simple screen capture.  

  • How do I create a JPG image from a clip

    I need to create a jpg image from a movie clip. Is making a freeze frame the same and creating a jpg?

    A jpg image is saved by FCE in a new file, while a freeze frame in FCE is a still picture used for a sequence in a project, but not saved separately.
    To make a jpg, position the playhead in the timeline on the frame you want to save and Export/Using QuickTime Conversion and select Format: Still Image.
    You are asked for a file name.
    To make a freeze frame, position the playhead in the timeline on the frame you want to reuse within the project and Modify/Make Freeze Frame. This leaves a new still in the viewer: you can drag it to the timeline, drag it to the browser, etc.. - However this does not create a separate file but stays embedded in the project where it is used.
    Piero

  • How can I manually attach images from my photo booth (imported into iPhoto) to emails? Auto function, in photo booth has my photos lying sideways?

    How can I manually attach images from my photo booth to iCloud emails?
    They are imported as 'events' into my iphoto library.
    Auto function, in photo booth has my photos lying sideways when placed in 'mail' emails?

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • How to create dvd/cd image using super drive in MacBook Air

    I have MacBook Air and also Apple Supper drive for the same. can u help me to find dvd/cd burrning and copy software. and also guide me "how to create dvd/cd image using super drive in MacBook Air"

    First to create a video DVD you need to use DVD authoring software like iDVD.  You can purchase it from the online Apple Store while supplies last.
    For creating a disk image use Disk Utility.
    To burn items to a CD or data DVD just insert the disc in the optical drive and drag those items onto the disc icon on the Desktop.  Then drag the disc icon to the Trash icon in the Dock which changes to a Burn icon.
    OT

  • How to retreive entire GEORASTER image.

    Hi,
    I am trying to retrieve entire georaster image from database. Already I had coded how to connect and retrieve a part of georaster image with the help of GEORASTER API. Please look at the below code
    JGeoRaster jGeoRaster = new JGeoRaster(struct);
    GeoRasterImage geoRasterImage = jGeoRaster.getGeoRasterImageObject();
    img = geoRasterImage.getRasterImage(0, 0, 0, 500, 500, new long[4]);
    Here I am able to retrieve only part of the image with given x,y. I want to retrieve entire image from database and save it to georaster image object. I had searched in api document wheather is there any api method is avaliable for getting entire image. But I could'nt find. Please I need help from anybody to sovle my problem.
    Thanks
    Baskar

    Thank you very much Jeffrey.
    With the help of your reply I am understanding the GEORASTER API fully. I have following questions with me. I hope you can reply for my question.
    QUESTION 1 :
    As you said in your previous reply, I tried to get the model co-ordinates of my image like below
    double[] cor = geoRaster.getMetadataObject().getSpatialReferenceInfo().getModelCoordinate(0,0,0);
    My image co-ordinates are :
    Top - 45.9243981481 Left - -70.8435648148 Right - -69.0518980048 Bottom - 43.9668979915
    From the above line I got the top and left model co-ordinates. Likewise How can I get right and bottom co-ordinates? The whole idea is I am trying to find MinX, MinY, MaxX and MaxY something like Envelope.
    QUESTION 2 :
    Most of GEORASTER API takes JGeometry object. I want to know how can we initialte JGeometry object. I tried like below
    ResultSet rs = statement.executeQuery(" query to select GEORASTER data column from GEORASTER table");
    if(rs.next()) {
    STRUCT geor = (oracle.sql.STRUCT) rs.getObject(1);
    JGeometry j = JGeometry.load(geor);
    When i execute above code I am getting the following error
    Exception in thread "main" java.lang.ClassCastException: oracle.sql.CHAR
    at oracle.spatial.geometry.JGeometry.load(JGeometry.java:2981)
    Please I need help anybody how to sovle above two problems.
    thanks
    baskar

  • How do I view multiple images from different projects at the same time?

    Hello
    I've been trying to find the answer in the user manual, but no luck so far.
    I did find how to open 2 projects at once, but I can only see one image at a time in the viewer and I have to keep going back and forth between projects to compare images. (These are scans of old photos and I want to eliminate the ones that are poorer quality, so need to compare numerous images from 2 sets of scans)
    How can I view an image from one project at the same time as an image from another? I know that it can be done in the same project by apple-clicking the second, third etc image, but this doesn't work if the images are from different projects.
    Thank you
    Elizabeth

    Thank you again Tony
    I've now created an album, independent of the projects, and dragged test images into it and it does just the job I needed. Now i just need to keep my brain sorted with which ones are which while i'm working
    Elizabeth

  • How to Create a new column from two different result sets

    How to Create a new column from two different result sets, both the result set uses the different date dimensions.

    i got solutions for this is apply filters in column formula it self, based on the requirement.

  • How to create a new connection from SAPGUI to Test drive?

    Hi,
    I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
    I entered the following values for my new connection entry
    Description: SAP Netweaver
    Application server: 192.168.1.160
    Instance number: 01
    System ID: DB2
    SAProuter: /H/192.168.1.160/S/3201/H/
    But it does not work. Any idea about the values needed  for creating a new entry?
    Thanks in advance,
    Dariyoosh

    >
    Dibya R Das wrote:
    > Why are you entering a router string? Can't you reach a box directly from your machine?
    >
    > Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
    >
    > Remove the router string you wont need if the above works.
    >
    > - Regards, Dibya
    Hello there,
    Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
    Kind Regards,
    Dariyoosh

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

Maybe you are looking for

  • Duplicate persistence units in JPA weblogic

    Hello, I'm cross-posting thsi question from weblogic forum as a suggestion from james.bayer. I am using weblogic 10.3. I am trying to deploy a spring web application with severaljars, that contain jpa entities with a persistence.xml. The persistence

  • Upgrade Oracle from the version 9 to 10

    Hi! We are planning a SAP-upgrade from 4.6c with Oracle version 9 to SAP EHP4. The target oracle version should be 10. Questions: 1) What is the procedure to update Oracle from version 9 to 10? 1a) where can I find the appropriate documentation? 1b)

  • My iPhone 4 keeps shutting down with high battery percentage?

    I have an iPhone 4 that I just received in September/October due to issues I was having with the screen.  It has recently begun to freeze, shut down and come back on, and ultimately shutting down around 36% battery life.  I can plug it into the charg

  • Pink screen. I'm an idiot!

    I had thousands of songs on iTunes. Like an idiot I tried moving the iTunes folder to an external hard drive then back again thinking I was running out of HD space (which I was not). Now my iTunes interface is pink and I cannot find most of my music.

  • Applet & File Class

    Hello Java Fans! I have an applet that is embedded in an HTML file. The applet is just a button that launches a Frame Window. Now the Frame window has a 'File Class' object. If I test it in the appletviewer everything works fine and I get the: File l