Return points within certain distance to each other

I have a geometry of points (say 1000 points) and I want to return only points within certain distance(say 100 meters) to each other and exclude others. I have been using the sdo_aggr_union with tolerance value of 100, but it returns one of the points from all of which are 100 meters apart and also returns other points.
I would appreciate if anyone can please help me with this. I basically want to identify bunch of points placed close to each other. sdo_within_distance will not work as this is between two geometries. Here I have the same geometry column in the table but multiple records. Sorry, if I have confused too much.Thanks in advance.

Hi
Your initial question said you want to find all points within a certain distance to the each others. The distance was said to be 100 meter.
Therefor the query will return for every single point all the others that are within that distance.
As this is performed on one single table the SDO_JOIN is well suited.
Obviously this returns a lot of recs. Let me explain why. draw for example 5 points (on a line to make it simple) and every point is 10 meters further from the previous. If you want to know for the first point what are the others within the 100 meter distance, you will end up with all the others. So doing this for every point this means that for every point you will have returned all the other, increasing the number of records returned. this is actually what the example query will do.
If you have additional filters you must add them for both (in your case same) tables, if you want for all points with a specific faceid to list all other points within that distance and with the same faceid.
However this will not be limited to only 549 recs I expect.
Maybe you can try to give more explanation what you are trying to achieve.
Should you try to achieve to identify clusters of points you might want to take a look at spatial clustering http://download.oracle.com/docs/html/B14255_01/sdo_sam_ref.htm#CACJAJDC
tx
Luc

Similar Messages

  • Both disc drives broke within two weeks of each other?

    I bought an imac and macbook pro about a year and a half ago and within two weeks of each other, both have broken. They have always been awkward to insert/eject disc to/from, but now they either don't accept discs in or wont spit them out. Surely this isn't coincidence as they get very different usage from each other. Also, i've just upgraded to 10.6.8. Is this a known problem? Can i request Apple fix these issues for free, as i don't really feel one and a half years is acceptable for the breakdown of both machines, especially as they get very little usage.
    Advice?

    AppleCare covers you for three years.

  • Macs bought within a month of each other (1 has leopard one has tiger)

    I got a mac laptop for my birth day, my brother got one a month later with leopard. can i use the his installation disk again for my mac? I love leopard, but i dont want to buy it if i can use his disk

    It is illegal to do what you want to do. But if your Mac was purchased on or after October 1st 2006 you are eligible for the up-to-date program.
    Mac OS X Leopard Up-to-Date Program (US and Canada)

  • Selecting duplicates within a time period of each other? [SOLVED]

    Using Oracle 9i 9.2.0.6.0
    I'm trying to return all the rows in a table where the entries are the same and within a certain amount of time of each other (15 seconds or less). The time is not stored as a date, but rather as a number, seperate from the date column. What makes an entry a duplicate is based on a combination of columns in the table.
    If the table is:
    store_id   customer_id   product_id   date_started   time_started
    101 12345 001 2008/09/14 153412
    101 22345 001 2008/09/14 153413
    102 12222 021 2008/09/14 161005
    102 12222 040 2008/09/14 161120
    102 33355 555 2008/09/14 171244
    102 33355 555 2008/09/14 171244
    300 70012 313 2008/09/14 111502
    300 70012 313 2008/09/14 111503
    300 70012 313 2008/09/14 111504
    300 54321 424 2008/09/14 153412
    I would want to return
    102 33355 555 2008/09/14 171244
    102 33355 555 2008/09/14 171244
    300 70012 313 2008/09/14 111502
    300 70012 313 2008/09/14 111503
    300 70012 313 2008/09/14 111504
    I can't seem to wrap my head around how to do this. Any suggestions?
    Edited by: user10269852 on Sep 16, 2008 1:27 PM
    Edited by: a small rabbit on Sep 18, 2008 7:49 AM

    SQL> with t as (
      2             select '101' store_id,'12345' customer_id,'001' product_id,to_date('2008/09/14','YYYY/MM/DD') date_started,153412 time_started from dual union all
      3             select '101','22345','001',to_date('2008/09/14','YYYY/MM/DD'),153413 from dual union all
      4             select '102','12222','021',to_date('2008/09/14','YYYY/MM/DD'),161005 from dual union all
      5             select '102','12222','040',to_date('2008/09/14','YYYY/MM/DD'),161120 from dual union all
      6             select '102','33355','555',to_date('2008/09/14','YYYY/MM/DD'),171244 from dual union all
      7             select '102','33355','555',to_date('2008/09/14','YYYY/MM/DD'),171244 from dual union all
      8             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111502 from dual union all
      9             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111503 from dual union all
    10             select '300','70012','313',to_date('2008/09/14','YYYY/MM/DD'),111504 from dual union all
    11             select '300','54321','424',to_date('2008/09/14','YYYY/MM/DD'),153412 from dual
    12            )
    13  select  store_id,
    14          customer_id,
    15          product_id,
    16          date_started,
    17          time_started
    18    from  (
    19           select  t1.*,
    20                   case
    21                     when lead(datetime_started) over(partition by store_id,customer_id,product_id order by datetime_started) - datetime_started <= 15 then 1
    22                     when datetime_started - lag(datetime_started) over(partition by store_id,customer_id,product_id order by datetime_started) <= 15 then 1
    23                     else 0
    24                   end indicator
    25             from  (
    26                    select  t.*,
    27                            to_date(to_char(date_started,'YYYYMMDD') || to_char(time_started,'000000'),'YYYYMMDDHH24MISS') datetime_started
    28                      from t
    29                    ) t1
    30          )
    31    where indicator = 1
    32  /
    STO CUSTO PRO DATE_STAR TIME_STARTED
    102 33355 555 14-SEP-08       171244
    102 33355 555 14-SEP-08       171244
    300 70012 313 14-SEP-08       111502
    300 70012 313 14-SEP-08       111503
    300 70012 313 14-SEP-08       111504
    SQL> SY.

  • How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

    How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.
    Solved!
    Go to Solution.

    By the time you spend for the nice diadram you might have done the vi
    Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)
    If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 
    Since I don't want to wire others homework here are some pictures
    And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....
    Spoiler (Highlight to read)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Applets don't see each other when having certain jar files as archive

    Hi,
    I have read a nice solution for Applet2Applet communication when they are on different html pages (different frames or windows) at http://www.javaworld.com/javaworld/javatips/jw-javatip101.html.
    They see each other through a static AppletManager.The idea is working it is really good.
    But when I add a certain jar file to the archive parameter they don't see each other any more. Even more the static initializer of the AppletManager class runs twice. I have also noticed that the ClassLoader of the two applet is different:
    LeftApplet: ClassLoader: sun.plugin.security.PluginClassLoader@10a6ae2
    RightApplet: ClassLoader: sun.plugin.security.PluginClassLoader@13adc56
    If I remove that particular jar from the archive parameter they are the same:
    LeftApplet: ClassLoader: sun.plugin.security.PluginClassLoader@13adc56
    RightApplet: ClassLoader: sun.plugin.security.PluginClassLoader@13adc56
    and the two applets can communicate again.
    And here comes the fun the two applet doesn't use anything from that jar package...
    I would appreciate any help, or link where I could go on whit this issue.
    Attila

    If the jar lists are not identical in each Applet, different classloaders are used:
    archive = "a.jar,b.jar,c.jar" in Applet A, means that in Applet B you must have archive = "a.jar,b.jar,c.jar" or a separate class loader will be used. Do this even if your applets don't use any classes in an included jar.

  • I lost all data in "notes" on both my iPod Touch and my new Ipad within minutes of each other.  How can this happen?

    I lost all data in "notes" on both my iPod Touch and my new Ipad within minutes of each other.  How can this happen?

    Where were the devices doing since the content was there and when you found it missing?
    DId you power it off ond then back on?
    Did you reset the iPod?
    I would try resertting the iPod. Noting is lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    It's tied to the Apple ID also - I believe it would use that to find the right person/device.
    Perhaps this article would help: http://support.apple.com/kb/HT4319. It looks like you may want to go in through your contacts and make the call.
    If you're concerned about data charges, put your phone in Airplane mode before trying to Facetime. That will prevent it from trying to make a call over your cellular data.
    ~Lyssa

  • What are odds of iMac and MacBook pro purchased at same time crashing within days of each other?

    HHas anyone else purchased late 2011 model iMacs AND MacBook Pro on the same day crash within days of each other?

    Sounds like something you did. Power surge or outage damaged the machines.

  • HT3529 My wife and I both have an iphone.   We initially created it under her apple id.   We will receive each others text messages from certain people not all.   Any ideas why and what we can do to stop it

    My wife and I both have an iphone.  We initially set them up under one apple id account.  When we text sometimes we will receive each others text messages from others.   Example I will text a friend...she will not see my text but the reply comes to both of us.  It seems to be random which ones.  Any ideas how to correct this

    Yup, get your own AppleID.
    The messages that are being sent to both phones are technically not text, they are Apple's iMessage. They use the data part, not the texting part. So if you have an iPad or a Mac computer, you can send/receive the iMessages there too.
    KOT

  • Chapters run into each other

    The chapters in the books I listen to 'talk' into each other.
    The chapters don't stop and then start Chapter 2.
    The first ends while the second already playing.
    Must be something in the setting, but what?
    I play my book as a playlist.

    Click just before the Chapter Head in the text:
    Menu > Insert > Section Break
    There is a rising hierarchy of breaks:
    Word Break - Hyphenates a word [only off or automatic in Pages]
    Tabs - Breaks up a line by adding points of alignment [left/right/centre/decimal/leading]
    Line Break - Starts a new line without breaking the paragraph [shift return]
    Paragraph Break - New paragraph [return]
    Column Break - Forces text over to the next column or page if there is only one column
    Layout Break - Changes columns/indents within a page
    Page Break - Forces text over to the next page
    Section Break - Divides a document up into sections of different indents/headers/footers/numbering/master layouts. This is what you think of as Chapter Breaks but it can be much more than this.
    Peter

  • My iPod and iTunes seem to hate each other

    They're just not hitting it off. They don't like talking to each other, both seem prone to going into long electronic sulks, and chucking crockery at each other can only be round the corner.
    Ok, serious head on for full story. Short version: iTunes 7 won't sync with our 4th generation iPod. Sometimes it won't sync at all. Other times it'll get to a certain point and gets stuck on a particular song, and Force Quitting iTunes is the only way we can eject it safely so none of the songs end up on the iPod. Very frustrating when you've got up to 941 out of 5000 plus songs. Along the way we've tried the five Rs, had various unknown error messages (1428 seems to be a favourite), and had the folder + ! sign (now gone again).
    The long version: Got a new car stereo that's iPod compatible right out of the box, and we felt that having our entire music collection on tap was more appealing than faffing around with a CD changer. The Mac we bought a few months ago had iTunes 6, and other than locking up a few times it was happy to import 300+ CDs. So far, so good.
    Next step, we got a second hand iPod, and this is where the aggro started. It's a 4th Gen 60GB model, and we immediately ran into difficulties because it had been used with a Windows PC. iTunes 6 didn't want to know, so looked online and found we needed to update to iTunes 7. Did that, only to find we then needed to update OSX as well. At this point I started getting all misty eyed and nostalgic for the old Windows PC - I mean I've still got ancient Win95 stuff that worked ok on Win2K. I really didn't expect this much aggro when we switched to Mac. Anyhoo, did the OSX update (which took days since there's no broadband available where we live), and finally we could get the iPod plugged in. Needed to do a restore on the drive, but that went smoothly. Then we went out and left it syncing.
    Sinking more like. It got stuck on the 941st song not long after we got home, and while we were looking we got an error message saying we'd disconnected it without ejecting first. We hadn't touched the iPod, which was still sat in is dock, but as far as it was concerned it had been pulled out. Which meant that we needed to restore it. Again. Which it didn't want to do. After many attempts we found that forcing it into disc mode allowed us to restore it properly. Then tried to sync again, but only with one album to kick off with. That worked ok, so we tried another 2 albums. Got stuck again halfway through the second, but we were able to eject it semi-properly so that resetting worked. At this rate 20+GB of music is going to take so long to get through that our furniture will be antiques before we're done. Nnnnnnnnnnn.
    Next attempt got to just over 800 songs synced before it got stuck again. This time it left the Mac completely unresponsive, which meant another restore. After that I went beck to trying one album at a time. One went on okay, the next stuck on the first song. At this point we've given up trying to suss it out ourselves and have come here for help. Is it worth trying iTunes 6 again? 7 has locked up the computer when the iPod wasn't even in the dock, and although this happened a couple of times when we were importing CDs into iTunes 6 I wonder if the older version might be more stable. What else can we try that we haven't had a go at already?
    Thanks in advance for any advice offered.
    Mac G5   Mac OS X (10.4.10)   Old Win2K PC in the back room

    Hi Michael!
    Just wondering if you managed to resolve the issue? i'm suffering from the exact same problems-my shuffle works on everyone else's computer but not my notebook, which is new as well. everything is fine until i try to add songs then it just freezes. After a while it says cannot read from or write to disk. if i try to restore it, it takes hours or says there is an error. i have literally tried everything and even been sent a new one from apple. it's driving me crazy. please help anyone!
    Matt

  • Diappearing photos replaced by an exclamation point within a triangle.  Prior to loading Lion I could put the image number in finder and locate the original file for that photo.  How do I restore photos now?

    I had problems with photos disappearing and being replaced by an exclamation point within a triangle.  I can see the photo in the thumbnail summary but when you click on it, the screen goes black and the exclamation point within a triangle appears along with the info on the original image number (i.e., img_1120.jpg). Prior to loading Lion, I could go to Finder, enter the image number and locate the original file for that photo.  I could then restore it for editing, copying into Print Shop directly, etc.   That no longer works after installing Lion.   How do I restore photos now?  I have 100s of photos that I have been going back to the original files and restoring and I am frantic that I will no longer be able to get to the original files.  Please help!  Thanks

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • 2 Gateways Sharing One Subnet - How to route traffic in and see each other?

    Hello,
    First, thanks for your feedback in advance.
    I am rolling over from CheckPoint Security Gateways to Fortinet Gateways so I have set up one of each within my datacenter subnet as I wanted to keep the same subnet 192.168.10.0/24 and just roll over from CheckPoint to Fortinet. 
    My current production datacenter gateway (checkpoint) resides on 192.168.10.1/24 with it's own External IP. 100+ ip-sec vpn tunnels communicate through this gateway and happily talk to several servers on the datacenter side (ex. 192.168.10.20, 192.168.10.22,
    etc)
    Since I am preparing to roll over from CheckPoint to Fortinet, I've placed the new gateway in the same datacenter at 192.168.10.2/24, with its own external IP. I've also dropped in a test server at 192.168.10.121 with the gateway pointing to the new Checkpoint.
    It happily gets out to the internet via the new gateway, 192.168.10.2.
    I can get out to the world via each gateway when I am behind my datacenter and I configure the gateways on each server.  And, they can all see each other and communicate within the 192.168.10.X network.
    However, I cannot go from the a Checkpoint tunnel network (ex: 192.168.50.X) go through the CheckPoint datacenter gateway, 192.168.10.1 (via its tunnel) and hit my Fortinet Test server at 192.168.10.121 (fortinet test server gateway set to 192.168.10.2).
     I have the IP statically set in the CheckPoint's DNS server at 192.168.10.20 to 192.168.10.121, but from the 192.168.50.X or any CheckPoint subnet, I can't ping or connect to it.
    Vice-versa, I can go from a fortinet subnet (192.168.195.X) and hit my test server 192.168.10.121.  However, I cannot go from a Fortinet tunnel network 192.168.195.X, go through my new Fortinet datacenter gateway, 192.168.10.2 (via its tunnel), and
    hit any of my CheckPoint-side servers, 192.168.10.20, 192.168.10.22, etc.
    Specifically, all of my scanners at the 100+ sites scan and send via an smtp server within my datacenter (192.168.10.56).  When I deploy the new gateway, the scanner at the office cannot access this IP address to send the email.
    Is there a way to sync two AD/DNS servers within my Datacenter but with different gateways?   In theory, I'd like the request to come in from the outside (whether a checkpoint network or the new fortinet) it will look into its respective AD/DNS and
    point it to the 192.168.10.56 smtp server.
    It does not have to be AD/DNS, but that was the first idea that popped in my head.  I am definitely open to the most efficient and stable method as I have to roll over 100 sites.
    Thank you again!

    Hi Strike First,
     One issue is that we have over 100 remote sites that we are converting from CheckPoint to Fortinet.  And, we do not have the man power to do a single night cutover as these are offices in remote locations.
    I am a little confused on the layout you are proposing:
    Set up fortinet as the backend firewall, point all internal gateways to this backend firewall, then have this firewall NAT through the current CheckPoint firewall?
    Thank you very much for your guidance.

  • CSS divs running into each other 4x3 screens but not widescreen

    I am trying to develop a site:
    http://www.poweredupgamers.com.
    Everything looks great on a widescreen monitor, but when I view it
    on older 4x3 monitors the divs run into each other and the spacing
    gets all messed up. This occurs regardless of the resolution the
    monitors are using.
    I thought by setting up margins with % (5% left margin for
    left div, etc.) that the divs would change in size to fill the
    pages regardless of the resolution the monitor is set at. The divs
    do seem to adjust for the resolution, but the monitor format
    appears to be a different issue. Do I need to set fixed div
    positions or widths to fix this issue? If so, how do I set them to
    ensure the page is filled properly (as little blank space as
    possible) regardless of the monitor's resolution?
    Does it have anything to do with fixed sizes for certain
    images inside divs sizes based on % margins?
    Thanks very much for any help!

    Resolution is not the critical issue. Browser viewport width
    is. To make
    your decision you need to have some ideas about the following
    issues -
    1. What is the primary target demographic for this site?
    2. What are the browsing habits of that demographic? Do they
    normally have
    their browser window maximized on the screen?
    3. If they usually have their browser maximized, what is the
    typical screen
    width?
    4. If they usually do NOT have their browser maximized, what
    is the MINIMUM
    screen width in that demographic.
    5. How do I want to build the page?
    a. Fixed width and left aligned?
    b. Fixed width and centering?
    c. Flexible to fill whatever width from left to right?
    d. Flexible (within limits) and left aligned?
    e. Flexible (within limits) and centering?
    As you can see, this decision is probably much more complex
    than you
    thought, and will require that you know quite a bit about
    your intended
    target visitor and their browsing habits.
    If you elect to go with 5a, or 5b, then your decision would
    be - 'what is
    the mimimum browser width I want to support without
    horizontal scrolling?'.
    Once you have determined that minimum supported width, all of
    your decisions
    are made. That's how wide you want your page to be.
    If you elect to go with 5c, then you just build your page
    within a flexible
    container (the simplest example - although an obsolet one -
    would be to use
    a 100% width table to hold the entire page). Be aware that
    pages with
    limited text content can look VERY sparse and empty on wide
    viewports when
    built in this way.
    If you elect to go with 5d, or 5e, then you would add this
    sophistication to
    your decision matrix -
    'what is the greatest width I want to allow the page and its
    contents to
    become?'
    In this case, you would use the CSS styles - 'min-width' and
    'max-width' on
    the primary page container. Just so you'll know, although
    these styles are
    well supported *now*, earlier versions of IE (and some other
    browsers) will
    not support them so reliably.
    So - which is it? 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "juxtafras" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am trying to develop a site:
    http://www.poweredupgamers.com.
    Everything
    > looks great on a widescreen monitor, but when I view it
    on older 4x3
    > monitors
    > the divs run into each other and the spacing gets all
    messed up. This
    > occurs
    > regardless of the resolution the monitors are using.
    >
    > I thought by setting up margins with % (5% left margin
    for left div, etc.)
    > that the divs would change in size to fill the pages
    regardless of the
    > resolution the monitor is set at. The divs do seem to
    adjust for the
    > resolution, but the monitor format appears to be a
    different issue. Do I
    > need
    > to set fixed div positions or widths to fix this issue?
    If so, how do I
    > set
    > them to ensure the page is filled properly (as little
    blank space as
    > possible)
    > regardless of the monitor's resolution?
    >
    > Does it have anything to do with fixed sizes for certain
    images inside
    > divs
    > sizes based on % margins?
    >
    > Thanks very much for any help!
    >

Maybe you are looking for