Unable to create index ..can anyone help me

Dan,
I have created the following table and the values are as following,
create table zonetemp(
name varchar2(15),
SHAPE MDSYS.SDO_GEOMETRY)
insert into zonetemp values('Raju',
MDSYS.SDO_GEOMETRY(2003,null,null,
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),
MDSYS.SDO_ORDINATE_ARRAY(10,30,40,10)))
insert into zonetemp values('Kalpan',
MDSYS.SDO_GEOMETRY(2003,null,null,
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),
MDSYS.SDO_ORDINATE_ARRAY(0,20,40,0)))
insert into zonetemp values('Chetan',
MDSYS.SDO_GEOMETRY(2003,null,null,
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),
MDSYS.SDO_ORDINATE_ARRAY(0,40,40,20)))
commit
I am unable to index the table.
exec geocoder_http.setup_locator_index('ZONETEMP','SHAPE');
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13219: failed to create spatial index table [ZONET_SHAPE_IDX_HL13N1$]
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 7
ORA-06512: at line 1
ORA-06512: at "MDSYS.GEOCODER_HTTP", line 168
ORA-06512: at line 1
My Query :
SELECT NAME FROM ZONETEMP A
WHERE SDO_FILTER(A.SHAPE,MDSYS.SDO_GEOMETRY(2001,null,MDSYS.SDO_POINT_TYPE(20,20, 0), NULL, NULL)),'QUERYTYPE='WINDOW') ='TRUE'
Basically these gemoteries are polygon.
what i want to do is query this table with the operator SDO_FILTER with reference geomotry as POINT and find the corresponding polygon in which it is found.
Is it Possible?Is this a valid Query?
N.B for the ploygon definations one can asssume a gird layout of 40*40.
null

Hi Raju,
There are a few things I would change below.
The first is that optimized rectangles (which you are using) need to be specified as lower left then upper right, assuming the lowest values are in the lower left corner of the coordinate system.
The way you've specified them is upper left, lower right which will not work.
The second thing I would change is your create index statement. You shouldn't be using locater to create the index - locator is a separate product should be used only with point geometries.
Your create index statement should look something like this:
create index zonetemp_sidx on zonetemp(shape)
indextype is mdsys.spatial_index
parameters ('sdo_level=NN');
where NN above is an integer number representing the tiling level you are going to use for the index. This is workload dependent, but I will give you a range of 8-12 to start with - you can protype using real data and figure out what gives you the best performance - if it is 12 you may want to go higher.
Also, you will have had to preload user_sdo_geom_metadata.
Finally, your query looks good, although I would change it slightly to set the third ordinate to NULL rather than 0, i.e.:
SELECT NAME
FROM ZONETEMP A
WHERE SDO_FILTER (A.SHAPE,
MDSYS.SDO_GEOMETRY(2001,null,
MDSYS.SDO_POINT_TYPE(20,20,NULL),
NULL, NULL)),'QUERYTYPE='WINDOW')
='TRUE'
Hope this helps,
dan

Similar Messages

  • I'm trying to connect to the internet wirelessly and unable to do so, can anyone help?

    I
    I'm trying to connect to the internet wirelessly and unable to do so, can anyone help?

    With the lack of information you provide how can anyone help? How connected? What kind of service? Router? Make? Model? What model MBP? What happens when you try to connect?
    This will help.
    In the body of the post, provide a description of the problem, the environment, actions you have taken etc so that people who have expertise can have a chance of providing an answer without having to ask more questions. Please help us to help you.

  • TS3297 Hi, I've setup my new mini ipad today, restored a backup from icloud and all is fine.  However, when I try to download my music, they almost completely download then an error message pops up saying "unable to download songs" - can anyone help pleas

    Hi, I've setup my new mini ipad today, restored a backup from icloud and all is fine.  However, when I try to download my music, they almost completely download then an error message pops up saying "unable to download songs" - can anyone help please?

    So it appears iCloud/iTunes Match isn't the issue - the error message would seem to be complaining about where the music is being downloaded to. So with this in mind:
    In iTunes select Preferences and select Advanced. The iTunes media folder should be set to /Users/<your account>/Music/iTunes/iTunes Music. <your account> would be whatever your user account is. If you see something else there I'd guessing it is a folder you don't have permission to write to.

  • Unable to locate DLL - can anyone help???

    I've had my nano for 3 months now, and I'm still not able to use it due to a software issue that cannot be resolved. Microsoft does not even want to deal with me. I am unable to properly install itunes - I keep getting a long error message about not being able to find the dynamic link library. I've tried uninstalling, etc., with no success. I heard that it could be a firewall issue, anyone. PLEASE help me - I'm extremely frustrated, as I was very excited to get a new MP3 player, and I'm not even able to use it. Thanks!!!
    iPOD nano   Windows 98  

    Hello oxsmurf13,
    Welcome to Apple Discussions.
    According to Apple specifications, you will need at least Windows 2000.
    There appears to be a work-around:
    http://win98.drivers.w.interia.pl/ipod.html
    Gary

  • LabView unable to open design : Can anyone help recover?

    Having made some minor changes to my design and saved. LabView now refuses to open the design, reporting Memory Full, Load error code 1 and Load error code %ld:%p. Given this has effectively destroyed my entire design, I am keen to find a way to recover something.
    The design is not large enough to get even close to using the available memory. I've tried the obvious rebooting the PC, but beyond that, I can't think of much I can do as I can't even get into the VI. Does anyone know of any way to recover the design?

    The cause could have been one of many things, but last things I did was edit a cluster of numeric indicators to change the units from 'C' to 'Cdeg' (mistakenly thought C was centrigrade). To do this I just changed the C to Cdeg on the unit after the numeric display. My design then uses a VI server ref and Value property note to write a value into the cluster element. I also changed the unit conversion in generating the number to write to Cdeg (so it matched what the element expected). After doing this, although the units matched, an error was reported. Instead of dragging the numeric out of the cluster and then putting it back to clear the false error (something I've found to work in the past). I thought I'd try saving and reopening to see if this would force the tools to revaluate the design and confirm there is no error (works on some other tools I use). My thinking was this would save having to regenerate assignments to the element, since these would be lost when removed from the cluster.
    The design was hence reporting an error when saved (something I don't usually do, but I'd have thought not too uncommon). It was when I tried to re-open the design, that it failed to open.
    My last back-up was 3 weeks ago, but I've managed to re-implement most of the changes (or at least those I can remember making).

  • I lost my i phone 4g  can anyone help me in tracking my iphone or getting me back as i filed police complaint now its four months still im unable to get my i phone

    i lost iphone 4 my ,im unable to find mphone can anyone help me in getting bck my iphone or able to track my phone if anyone is using this devise?
    <Serial Number Edited by Host>

    And after four months, even if you did have Find My iPhone set up, whoever has the iPhone now has almost certainly turned that feature off, one way or another.
    Sorry, but there's nothing anyone can do. At this point you can, I'm sorry to say, probably consider your iPhone gone forever.
    Regards.

  • I am unable to transfer my audio book from my Mac lap top to my iPhone.  Can anyone help me?

    I am unable to transfer my audio book from my Mac laptop to my iPhone.  Can anyone help me?

    Then restore from you Mac laptop's backup, if you have not been backing up then you may be in for a very painful lesson on why backing up is the VERY FIRST thing you should do with any new Mac. Create a backup plan and use it on a regular basis. If the laptop was using 10.5.x or later then you have absolutely no excuse for not backing up. Sorry for being terse and blunt but Time Machine has been built into 10.5.x, 10.6.x and 10.7.x so we have had years to have a seamless and mindless method of backing up. If you have been using an earlier verision of OS X there are quite a number of methods of backing up.
    If you aren't successful then take the laptop and iMac to your local Apple Store or AASP and they may be able to help you recover your contacts. 

  • I have recently restored my phone to unlock it.  I have installed the latest version of IOS.  Since then, I have not been able to play the music I have purchased.  The scrolls or flips through the songs and I am unable to listen to them.  Can anyone help?

    I have recently restored my phone to unlock it.  I have installed the latest version of IOS.  Since then, I have not been able to play the music I have purchased.  The scrolls or flips through the songs and I am unable to listen to them.  Can anyone help?

    iTunes is quite friendly, and very powerful....   You probably just need to set up automatic syncing in iTunes.
    If the iTunes sidebar (along left side of window) is hidden, from the menu bar, under View, select Show Sidebar.  The iPod appears in the sidebar, under DEVICES.  Select the iPod there.
    To the right, the iPod's Summary screen is shown.  Toward the top, there is a bar of buttons, starting with Summary.  Click on Music next to Summary.  This Music screen is where you tell iTunes how to sync songs to the iPod.
    Check the box for Sync Music.  This setting enables automatic syncing for music.  If your iTunes music library is small enough to fit on the iPod's storage, you can choose to sync Entire music library.  Otherwise, you can choose to sync Select playlists, artists, albums, and genres.  From the lists below, select (checkmark) what you want to sync to the iPod.
    Here's one convenient way to set this up.  In your iTunes library, create one or more playlists.  Add the ALL the songs you want on the iPod to those playlists.  OR, you can use existing playlists.  Back on the iPod's Music screen, select those playlists under Playlists.  (You can select other items on those lists, if desired.)
    When you click Apply, the songs in your selection sync to the iPod.  Going forward, to update your iPod (add/remove songs), just update those playlists in your iTunes library.  The iPod does not need to be connected.  The next time you connect the iPod (or click Sync if already connected), iTunes automatically updates the iPod with the same changes.
    NOTE:  On the bar of buttons that starts with Summary, click on the other buttons (such as Movies, Podcasts, Audiobooks, etc.) to set up syncing for those iTunes media categories.

  • Can anyone help? am unable to upload photos into iphoto. have been doing it for a few years but will not allow it anymore. no error message comes up. has anyone had a similar experience?

    can anyone help? am unable to upload photos into iphoto. have been doing it for a few years but will not allow it anymore. no error message comes up. has anyone had a similar experience?

    What version of iPhoto? How are you trying?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I carnt hear my message tone,the sounds it makes when the phone locks and opens.Also i am unable to hear my music playing from my phone but my alarm and ringtone are working.Can anyone help

    i carnt hear my message tone,the sound it makes when the phone locks and opens,also i am unable to hear music when playing from my phone but my ringtone and alarm tone work.Ive made sure the silent button is not on,and the volume button on the side of the phone is just showing it blank instead of it going up and down.To try and fix this i have reset my settings and restored my phone,but now its just skipping the music i have purchased from itunes when in a docking station which is now another problem i have as well.Can anyone help????

    Hello dbrookes,
    Thank you for using Apple Support Communities!
    It sounds like even though the Mute switch is not on, sounds are not making the, well, sound they should, and the volume buttons make a blank volume indicator appear on the screen that does not show the volume level.
    I wanted to recommend a couple of things.
    First, I would reset the phone:
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    From: iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
              http://support.apple.com/kb/ht1430
    If that does not resolve the issue, then you may want to try backing up to iTunes, and restoring the iPhone again but this time do not restore the backup and set it up as new to see if the issue persists without the previous configuration.
    Just incase you need it, this article will help with that:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Cheers,
    Sterling

  • I create an apple id then i want to verify it, i verify it once then  when i log in with my apple id it asked mi again to verify it.everytime i log in it asked me to resend verication and after i resend it i press done. Please can anyone help me ?

    I create an apple id then i want to verify it, i verify it once then  when i log in with my apple id it asked mi again to verify it.everytime i log in it asked me to resend verication and after i resend it i press done. Please can anyone help me ?

    How are you verifying it?  Are you responding to the email that is sent?  If not, do so.
    If so, then try changing your password.

  • HT1369 hey, when I connect either my ipod or ipad to itunes I get the promt ' i tunes was unable to load data class information from sync services. Reconnect or try again later'. Can anyone help me with syncing my devices?? Thanks in advance

    Hey, when I connect either my ipod or ipad to itunes I get the prompt 'itunes was unable to load data class information from sync services. Reconnect or try again later. Can anyone help me with syncing my devices?? Thanks in advance

    I am having the same issue, anyone else ?

  • How can I edit my website from another computer? and how can I create a new website next to the one, I have already? Can anyone help, please?

    How can I edit my website from another computer? and how can I create a new website next to the one, I already have? Can anyone help, please?

    Move the domain.sites file from one computer to the other.
    The file is located under User/Library/Application Support/iWeb/domain.sites.  Move this file to the same location on the other computer and double click and iWeb will open it.  Remember, it is your User Library that you want and not your System Library, as you will not find iWeb there.
    Just create a new site on the same domain file and it will appear below the other site.  If you want them side by side then duplicate your domain file and have one site per a domain file and they can then be side by side.

  • My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by hoster, so they should work. Can anyone help me, for these forms are crucial for my business.

    My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by my hoster, so they should work. Can anyone help me, for these forms are crucial for my business. The forms confirm delivery, but the mails are not recieved. No spam filters enabled.
    Meanwhile, I was able to narrow the problem down: PHP seems not to accept a re-directed mail address as sender of the mail in some cases. So, it has nothing to do with the mail form itself.

    Hi Ingo,
    Please refer to this document, Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Last section, "I've uploaded my new Muse form, and tried submitting it in the browser, but I never receive an email with the form data. What's wrong?"
    - Abhishek Maurya

  • HT2486 I am sending an email to a group which I have created in my contacts.  I would like to hide the list of people's emails but cannot see how I can do that.  Can anyone help please?

    I am trying to send an email to a group which I have created in my contacts.  I would like to hide the list of email addresses but cannot see how to do this.  Can anyone help please?

    Thank you for your message.  
    I can see how you do that when using the 'normal' emailing system from my mailing box, but not when working from the contact application (the 'book' on the bottom icon bar with the @ on it)....

Maybe you are looking for

  • InDesign Conditional text batch export with TOC update

    Hello Everyone, I'm just getting into the scripting, so bear with me please. I have an indesign document with several conditional text variations and a generated Table Of Contents. I've found -hans-'s batch exporting script which works perfectly, BUT

  • Trying to understand NSObjectController etc

    OK - I've tried to read all of the Apple documents (as well as many other sources) about bindings and I seem to be able to use them with core data. However, this one has me beaten! I have a class called 'ActiveDataSource' that has a KVC value of 'fre

  • Firefox settings in custom not disabling explorer

    I've noticed a screen display change regarding a lighter text that is appears on every website page and application such as MS Word. So I downloaded the new Firefox update 3.10 and ever since then the default settings have changed on my computer and

  • How to make versioning of resources customizable, present in resources tab of a workbench

    hi all i am new to workbench or to say new bee for it i m creating the service through it while creating service i use the diffrent .xdp files which are present in my resources tab. when we modifiy the .xdp files  the versioning updatation is done an

  • FOP with iAS

    I'm trying to set up the process to create PDF's Using FOP. I read the HOW-TO document technote_htmldb_fop.html. These instructions look like they are for the HTTP install that comes with the companion CD. I am trying to install this on iAS (9.0.4),