Sdo_Geom.Sdo_Intersection does not vertices overlapping

Hi all

I run the query where I try to get the number of vertices that intersect between 2 objects GEOM below.


Sdo_Util.Getnumvertices (Sdo_Geom.Sdo_Intersection(B.geom,R.geom,.00000000005))


The query above works fine when, for ex B.GEOM to say 5 different X tops and are coordinated. It gives me the good number of vertices that intersect with R.GEOM.

However, in my case, B.GEOM has 15 peaks, all having the same X and are coordinated. When I run the above query, the output returned is 1 when there are actually 15 peaks that are intertwined with R.GEOM.

I am a novice in the database space and not very sure if Sdo_Geom.Sdo_Intersection will remove duplication/overlap of the summits? I want to be able to examine all vertices that overlap as well. Can you get it someone please let me know if I'm doing the right thing here?


Please see below the image of intersection where B.Geom have 15 vertices overlapping and R.Geom is the polygon.

You poor soul, who deals these clusters on you anyway?  They should buy lunch you.

So yes, go getnumelem to getnumvertices in the meter of the loop, and then you will need manually extract every x, y in a temporary point normal, simple geometry in the loop.

Here's a little revised sample PL/SQL.

declare
  multip sdo_geometry := sdo_geometry (2005, null, null, sdo_elem_info_array (1,1,3),
                                      sdo_ordinate_array (50,5, 55,7, 60,5)); 

  singlep sdo_geometry; 

  poly sdo_geometry := SDO_GEOMETRY (2003,
                  NULL,
                  NULL,
                  SDO_ELEM_INFO_ARRAY (1, 1003, 1),
                  SDO_ORDINATE_ARRAY (-100,-100,100,-100,100,100,-100,100,-100,-100)); 

  kount pls_integer := 0; 

begin 

  for i in 1 .. sdo_util.getnumvertices(multip)
  loop 

      singlep := SDO_GEOMETRY
                  (  2001,  multip.sdo_srid,    SDO_POINT_TYPE
                    (
                        multip.sdo_ordinates(i * 2 - 1),
                        multip.sdo_ordinates(i * 2),
                        NULL
                    ),  NULL,  NULL);

      --debuggin tip - use determine mask
      --dbms_output.put_line(sdo_geom.relate(singlep, 'mask=DETERMINE', poly, .05)); 

      if sdo_geom.relate(singlep, 'mask=INSIDE', poly, .05) <> 'FALSE'
      then 

        kount := kount + 1; 

      end if; 

  end loop; 

  dbms_output.put_line(kount); 

end;

Tags: Database

Similar Questions

  • PowerPoint for Mac bar vertical scrolling does not work in the Sierra

    I have downloaded Sierra, open a PowerPoint for Mac 2011 version 14.5.4 and immediately noticed that the vertical scroll with my mouse does not work. They're only going to 'up' (for example, slide 14, 13, 12, 11, 10) or will be stuck between 2 blades.

    I unplugged and replugged my mouse, turned PPT market twice and rebooted my MacBook. No change.

    I know it's early days and these are the pains of growth with the new OS, but I use PPTX constantly.

    Any tips are appreciated.

    Have the same problem. I don't know that this isn't a mouse problem because it happens when I use the touchpad as well.

  • When a tab is opened, it does not overlap the screen im on.

    So when I like to open another tab when I click a button, it does not overlap the screen, I'm on and if I click it, nothing happens, so I have to minimize and press tab to open it and when I click on the tab I am the last, it works fine but the other tab is not.

    It seems that your browser runs slowly due to lack of memory (why a new loading tab so seems to freeze and can be thawed by minimize and maximize). This explains also why you can change to the previous tab, but not others; the last tab you used is still in main memory, while the other tabs should return loaded into main memory when you change their (as other data takes the place of the main memory).

    So I suggest you try to restart Firefox (as some may have memory leaks) and closing other applications you have open (use the Task Manager to help if they are slow to respond). If you're still having problems, try closing using the tabs/windows less.

    If you still have the problem, then you should try reinstalling Firefox (see uninstallation and installation).

  • I can do a vertical photo which does not meet the screen

    Is it possible to blur the edges or the bottom when you have a vertical photo that does not cover the full screen? I need suggestions on what to do, so do not always see the black screen. I know that I can put a background behind it, but according to me, the edges of the image are so distinct in this way.

    What seems to have become the default behavior, at least on American television, when it is necessary to introduce video portrait of the TV, is put the image under the vertical of the image, it fits the bottom until it fills the screen and maybe more, then a little blur to hide the pixellation, and finally to darken it, based on the original content.

  • ProBook 440 G2: Scrolling Vertical (touchpad) does not

    Vertical scroll on touch pad not working do not.

    "Scrolling" on the Synaptics mouse settings is enabled.

    I can zoom in/out with two fingers on the pad, but scrolling does not work.

    I remember reading about a guy uninstall Synaptics and install other drivers and it does the job, but I don't remember that drivers.

    Any ideas?

    I found the problem, apparently 'a finger edge scrolling' has not been activated, but "two fingers". "was, I still don't know how to scroll with two fingers, but whatever

  • Mid 2011 iMac 27 pink vertical lines and does not start - any ideas?

    My iMac was working normally when he is suddenly flashed to a Uni blue screen. I rebooted and it came with the normal loading as burt screen with vertical lines of roses. He gets a third of the way through the sequence start then just goes to a gray screen and hangs. I tried Safe thing same boot. Apple Diagnostics ran short and long tests, and comes without any problem.

    Occasionalyl iMac starts and works for awhile then crashes on a gray screen is unresponsive.

    Any thoughts on what would be the problem?

    6 months out of the AppleCare too!

    Please make an appointment at the Apple Store - Genius Bar store and bring it into service. If you are in the United States or is unable to make an appointment in this way, contact your Apple store.

    Question (?) Mark, record of flashing or a gray screen at startup

    It's related, but not identical questions. Their causes are described in based on Intel Mac-Startup sequence and error codes, symbols. Solutions will be found in:

    A globe or a flashing question mark appears when you start your Mac

    Mac OS X - grey appears during startup

    In most cases problems can be caused by one or more of these:

    a. problem with the computer's PRAM - see reset the PRAM and NVRAM on your Mac.

    b. boot, directory of the drive has been corrupted - repair with disk utility.

    c. critical system files are corrupted or deleted - reinstall OS X.

    d. the hard drive is physically non-functional - replace the hard drive.

    Please note that the information I have provided is what Apple recommends, if other users will suggest different solutions found here, then be sure to what they recommend has no impact on your ability to get the Apple continuous service guarantee, if any.

    Please do not start remove disks or change cables unless you know what you're doing and have exhausted other alternatives non-invasive described here. If you perform all knit yourself which is not approved by Apple, then you will void any warranty you can have and lose any other Apple support.

    Fix the hard disk and permissions

    Boot from your Snow Leopard installation disc. After the installer loads, choose your language and click on the button continue. When the menu bar appears select utility drive in the Utilities menu. After that the charges of THE select your entry from hard drive (mfgr. ID and car size) in the list on the left.  In the status area, you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is faulty or has failed. (State SMART is not reported on external drives Firewire or USB). If the drive is "verified", then select your OS X volume in the list on the left (subentries under the entry for the road), click the first aid tab, then click the repair disk button. If THE reports any errors that have been corrected, and then run repair disk again until no errors are reported. If no errors are reported, click repair permissions. Wait until the operation is complete, then exit FROM and return to the installer.

    If THE reports errors, it cannot be resolved, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you do not have one of them or none of them can fix the disc, then you will need to reformat the hard drive and reinstall the OS X.

    The main difference if you use Lion or Mountain Lion, you must first boot from the boot Recovery HD simply HD recovery to perform the foregoing.

    Reinstall Snow Leopard without erasing the drive

    1 fix the hard disk and permissions

    Boot from your Snow Leopard installation disc. After the installer loads, choose your language and click on the button continue. When the menu bar appears select utility drive in the Utilities menu. After that the charges of THE select your entry from hard drive (mfgr. ID and car size) in the list on the left.  In the status area, you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is faulty or has failed. (State SMART is not reported on external drives Firewire or USB). If the drive is "verified", then select your OS X volume in the list on the left (subentries under the entry for the road), click the first aid tab, then click the repair disk button. If THE reports any errors that have been corrected, and then run repair disk again until no errors are reported. If no errors are reported, click repair permissions. Wait until the operation is complete, then exit FROM and return to the installer.

    If THE reports errors, it cannot be resolved, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you do not have one of them or none of them can fix the disc, then you will need to reformat the hard drive and reinstall the OS X.

    2 reinstall Snow Leopard

    If the disc is OK then leave FROM and return to the installer.  Proceed to reinstall OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a new copy of Mac OS X, the installer will move your Home folder, third-party applications, elements of support and network preferences in the newly installed system.

    Download and install Mac OS X 10.6.8 v1.1 updated Combo.

    Relocation of Lion/Mountain Lion without erasing the drive

    HD recovery start: , restart the computer and after the buzzer, press on and hold down the COMMAND and R until the menu screen appears. Otherwise, restart the computer and after the buzzer, press on and hold down the OPTION key until the Boot Manager screen. Select the Recovery HD and click on the arrow pointing down.

    Repair the hard drive and permissions: at startup, select in the main menu disk utility. Repair hard disk and permissions as follows.

    When the recovery menu appears, select disk utility. After that the charges of THE select your entry from hard drive (mfgr. ID and car size) in the list on the left.  In the status area, you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is faulty or has failed. (State SMART is not reported on external drives Firewire or USB). If the drive is "verified", then select your OS X volume in the list on the left (subentries under the entry for the road), click the first aid tab, then click the repair disk button. If THE reports any errors that have been corrected, and then run repair disk again until no errors are reported. If no errors are reported, click repair permissions. Wait until the operation is complete, then exit FROM and return to the main menu.

    Reinstall/Mountain Lion Lion: Select reinstall/Mountain Lion Lion and click on the button continue.

    Note : You will need an active Internet connection. I suggest to use Ethernet if possible because it's three times faster than wireless.

  • my information does not match the screen. I have to scroll sideways and vertically for all to see

    my information does not match the screen.  I have to scroll sideways and vertically for all to see

    How can I change the size if it is adapted to the screen?

    Hi Marilyndunn,

    ·         are what application you referring?

    ·         It occurs on all applications?

    ·         If it works well before?

    ·         Did you do changes on the computer before the show?

    You can see the following article for more information about the display settings.

    Get the best display on your monitor

    http://Windows.Microsoft.com/en-us/Windows-Vista/getting-the-best-display-on-your-monitor

     

    Make the computer easier to see (optimize visual display)

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-the-computer-easier-to-see-optimize-visual-display

    Hope this information helps.

  • T400: vertical scrolling does not not on msn messenger or itune

    Does anyone have this problem? My vertical scroll of T400 touch pad does not work on programs like msn messenger or iTunes and some other software like gtalk. I have install the last UltraNav so I was wondering if anyone has this problem or can help me solve this problem.

    Thank you

    Moderator Note: Type added to the line object for clarity.

    Hello Lord442,

    Please see this and this thread.

    I think Add MSN Messenger is the same procedure.

    Incidentally a horizontal scrolling in Firefox needs this.

    Firefox web browser

    *, *, Firefox.exe, *, *, *, WheelVkey, 0, 9

  • The side-by-side function does not work correctly, windows overlap

    original title: sizing windows side-by-side

    The side-by-side function does not work correctly, windows overlap.  How do fix you this feature?

    Hello

    It is Aero Snap.  When you select a window how you "cutting" it in position?  You do not use the window key and the arrow left/right or are you drag / drop window?  If you drag / drop, using the keyboard shortcuts help to solve the problem?

    Kind regards
    Alex T.
    ~ 2007-2011 MVP Windows desktop experience ~

  • Cascades - Vertical alignment does not work after you add a higher container

    Hi all

    I am facing a problem with vertical alignment... Trying to play and to imagine a way to transfer my apps to BB10, I wanted to create a page layout and Center my components in the center of the screen. I created the necessary containers and things, it worked, but then, my baggage was obviously only in the center of the screen too.

    So I decided to add a top-level container that would hold only the background. But then, my content is not centered (in the container for the child). I do not understand why and I don't know I'm missing something.

    Here is the structure:

    {Page}
    content: container}
         
    layout: {StackLayout}
    }
    background: Color.create ("#555555")
    {Of container
    layout: {StackLayout}
    }
    horizontalAlignment: HorizontalAlignment.Fill
    verticalAlignment: VerticalAlignment.Center / / DOES NOT WORK
                
    {Of container
    horizontalAlignment: HorizontalAlignment.Fill
    layout: {DockLayout}
    }
    {Label
    text: "save location".
    horizontalAlignment: HorizontalAlignment.Left
    verticalAlignment: VerticalAlignment.Center
    textStyle {}
    Base: tsd1.style
    }
    }
    ToggleButton {}
    horizontalAlignment: HorizontalAlignment.Right
    }
    }

    Anyone have any idea on this? Is there a simple way to have centered on the content with a background full screen? I tried a lot of different ways, but none gave me the result I wanted (except setting a padding but that is not as I wanted).

    Thank you

    Add an empty container with spaceQuota 1 down. It will take all of the remaining space.

    Container {
      layoutProperties: StackLayoutProperties {
        spaceQuota: 1
      }
    }
    

    If you want to Center controls, adds another container empty in front of them.

    Also try to play with preferredWidth: Infinity / preferredHeight: Infinity and modes of different adjustment (filling or Center).

  • Vertical ComboBox does not show the label of the selected element of the sound

    Hello

    We created a custom vertical ComboBox.

    Normal ComboBox underwent a rotation of-90 degrees.

    It aims to show the label selected and open the menu to clean x, the coordinate y.

    To open the menu to the right x, y, we have replaced 'downArrowButton_buttonDownHandler' function to move the drop-down list accordingly.

    However, the selected label is not visible on the screen. Rotated text does not appear without embedding fonts. So we tried to embed fonts for the same. It work well.

    Help, please.

    Kind regards

    TANU

    I think you should try integrating "BOLD" to the police version, or

    set the combobox control to display its label in normal fontWeight

  • Why the "vertical-align" argument does not work?

    Very often, I try to use the "vertical-align" argument to control the CSS formatting, but so far he has never worked, so I had to resolve the situation by specifying values for margin...

    Why the "vertical-align" argument does not work in CSS?

    Alternatives?

    For your reading pleasure.

    http://phrogz.NET/CSS/vertical-align/index.html

    Gary

  • period overlaps the code does not work in apex page

    Hello

    Employees have a schedule with a start date and end. Calendar periods cannot overlap for the same employee.

    I have a function that returns the error of validation of text as follows:

    declare
    number of l_dummy;

    Start
    Select count (*)
    in l_dummy

    of fus_medewerker_roosters
    where mdr_code =: p61_mdr_code
    and <>id: p61_id
    and to_date(:p61_begin_periode,'DD-MON-YY') < = eind_periode
    and to_date(:p61_eind_periode,'DD-MOn-YY') > = begin_periode
    +;+

    If l_dummy > 0
    then
    Back to 'this employee already has a calendar in this period.';
    on the other
    Returns a null value.
    end if;

    end;

    But the code does not work. It records data of an employee even though the periods overlap.

    But the code works correctly in workshop:

    declare
    number of l_dummy;

    Start
    Select count (*)
    in l_dummy

    of fus_medewerker_roosters
    where mdr_code =: p61_mdr_code
    and <>id: p61_id
    and to_date(:p61_begin_periode,'DD-MON-YY') < = eind_periode
    and to_date(:p61_eind_periode,'DD-MOn-YY') > = begin_periode
    +;+

    If l_dummy > 0
    then
    DBMS_OUTPUT. Put_line ("this employee already has a calendar at this time."); end if;

    end;

    What goes wrong. Why it works very well in the Studio, but not in my page?

    Kind regards
    Diana

    Edited by: dianap on Sep 4, 2009 08:31

    Hi Diana,

    It comes with the following:

    to_date(begin_periode,'DD-MON-YYYY')
    

    and

    to_date(eind_periode,'DD-MON-YYYY')
    

    Here are the dates of the table itself, should not be converted to dates.

    Secondly and more important still, the list of selection of P11_MDR_ID does not return NULL, it returns "null %" - it is a string that should be converted to null.

    I have made a few changes for postings of these - please take a look and check that everything is working ok.

    Andy

  • overlapTouchPolicy does not work by label overlaps ImageButton

    Hi all

    I want to make a button with a custom image and text, what I did was use an ImageButton control to show the background, on which I put a label to display text. Documentation, I learned that I should put it overlapTouchPolicy: OverlapTouchPolicy.Allow on the label for the button receive the click event.  How ever, don't worry: when I click on the label, it does not raise the button click event. Here is the code:

             Container {
                 layout: AbsoluteLayout {
                 }
                 preferredWidth: 768
                 preferredHeight: 126
    
                 ImageButton {
                     id: sendButton
                     preferredWidth: 186
                     preferredHeight: 82
                     layoutProperties: AbsoluteLayoutProperties {
                         positionX: 560
                         positionY: 22
                     }
                     defaultImageSource: "images/title_btn_normal.png"
                     pressedImageSource: "images/title_btn_press.png"
                     onClicked: {
                         //do something                 }
                 }
    
                 Label {
                     text: qsTr("A button")
                     layoutProperties: AbsoluteLayoutProperties {
                         positionX: 600
                         positionY: 40
                     }
                     overlapTouchPolicy: OverlapTouchPolicy.Allow
                 }
             }
    

    Someone has an ideaon how do I fix this?

    Thank you

    Dong

    Hello

    You manage the label click event. If you click on the image (not the label), the click event works in your code.

    Try the code to handle the click event of the label below:

    Container {
            layout: AbsoluteLayout {
            }
            preferredWidth: 768
            preferredHeight: 126
            ImageButton {
                id: sendButton
                preferredWidth: 186
                preferredHeight: 82
                layoutProperties: AbsoluteLayoutProperties {
                    positionX: 560
                    positionY: 22
                }
                overlapTouchPolicy: OverlapTouchPolicy.Allow
                defaultImageSource: "direction_normal.png"
                pressedImageSource: "direction_over.png"
    //            onClicked: {
    //            }
            }
            Label {
                id: lbl1
                text: qsTr("A button")
                layoutProperties: AbsoluteLayoutProperties {
                    positionX: 600
                    positionY: 40
                }
    //            overlapTouchPolicy: OverlapTouchPolicy.Allow    // Comment this line
                gestureHandlers: [
                    TapHandler {
                        onTapped: {
                            // Handle the label click event
                            //lbl1.text = "label clicked worked..."
                        }
                    }
                ]
            }
        }
    

    Thank you

  • Heroes of slideshow on the home page is unlocked, but does not move vertically another w content when scrolling

    I created a slide show of hero on the homepage. It is "released", but he's not vertically moving with the rest of the content when scrolling up and down. It stays in place even and the other content on the page is scrolled correctly.

    Hi Katie,

    I checked your file and I can see that the slideshow is pinned. Please refer to the following screenshot: http://prntscr.com/2jfuta

    Please have this marking and the problem will be solved.

    See you soon!

    Aish

Maybe you are looking for

  • If I upgrade the ICloud storage all my devices share this cloud (same user)

    It seems that I am running out of storage according to all the emails from Apple. I use three apple devices. If I upgrade the cloud storage is shared by all devices? (Same user name and ID Thank you

  • I moved it to the SD card, why still do 30 MB (and growing) internal memory?

    I see https://bugzilla.mozilla.org/show_bug.cgi?id=615519 said CHECK FIXED the profile data should be moved to the SD card as well as the application and about: hide-and-seek said should take only 10240, but Android noted as taking 30 MB internal mem

  • AirDrop does not work

    AirDrop does not work between the MacBook Pro and iPad / iPhone with the latest OS! I also tried between iPhone and iPad and works as well... advice? PS. He used to work between MacBook and iPad on previous OS Yosemite.

  • How the hell someone from Microsoft to help online?

    How the hell someone from Microsoft to help online?

  • SQL question

    I have a query with a column in a table called "Address1" which contains a mailing address and home address. There is another column called 'Subscription_type' which has these values: "Home" and "Mail".Select n.name_first,n.name_last,na. Address1name