VALIDATE_WITH_CONTEXT mental block ...

Hi,
I just do not see the problem. Maybe someone could tell me the problem here:
This returns TRUE:
select sdo_geom.validate_geometry_with_context(
MDSYS.SDO_GEOMETRY(2002,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,4,4,1,2,2,9,2,1,13,2,2,17,2,1),MDSYS.SDO_ORDINATE_ARRAY(
58.189064,27.84252,53.290648,29.430492,50.255568,33.590349,48.868152,34.622531,47.430334,33.661802,39.617106,13.36138,58.96513,25.058884,59.633961,26.745352,58.189064,27.84252))
,.05)
from dual;
This returns TRUE:
select sdo_geom.validate_geometry_with_context(
MDSYS.SDO_GEOMETRY(2002,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,4,3,1,2,1,5,2,2,9,2,1),MDSYS.SDO_ORDINATE_ARRAY(
56.30703,24.11664,40.708971,14.686303,46.948194,30.897129,50.52856,25.989908,56.30703,24.11664))
,.05)
from dual;
This returns a 13354: incorrect offset
select sdo_geom.validate_geometry_with_context(
MDSYS.SDO_GEOMETRY(2003,2236,null,MDSYS.SDO_ELEM_INFO_ARRAY(
1,2003,3, 1,2,1, 5,2,2, 9,2,1,
11,1005,4, 11,2,2, 19,2,1, 23,2,2, 27,2,1),MDSYS.SDO_ORDINATE_ARRAY(
56.30703,24.11664,40.708971,14.686303,46.948194,30.897129,50.52856,25.989908,56.30703,24.11664,
58.189064,27.84252,53.290648,29.430492,50.255568,33.590349,48.868152,34.622531,47.430334,33.661802,39.617106,13.36138,58.96513,25.058884,59.633961,26.745352,58.189064,27.84252))
,.05)
from dual;
I am just not seeing it ...
r,
dennis

Dennis
I believe your polygon geometry has the following properties:
both the interior as the exterior rings are compound: combination of line strings and arcs.
Therefor the interior and exterior ring SDO_ETYPE should end with 5 (2005 and 1005).
in your example here the interior ring ends with 3: 2003 which is in contradiction with both the interpretation 3 and the the combination of the first 3 triplets lines and arcs. sdo_etyp 2 003 and interpretation 3 means it is an interior ring defined as rectangle.
if you change the 2003 into 2005 it validates.
Luc
Edited by: lucvanlinden on Dec 18, 2008 9:06 AM

Similar Messages

  • Illustrator 10, Convert to Profile: mental block or sudden blindness?

    I've either hit a mental block or have become temporarily blind, but I cannot find "Convert to Profile" in Illustrator 10.0.3 Mac, running Tiger 10.4.11.
    Any hint or slap on the head that might jog my memory will be appreciated.  The Help files have not been helpful yet.  As the fortune cookie said, old age always comes at a most inopportune time. 
    Thanks in advance.
    Wo Tai Lao Le
    我太老了

    steve fairbairn wrote:
    Or do you mean Assign Current Working Space (colour profile) when opening a file?
    No!  When you Assign a profile, you preserve the numbers but you change (wreck the hell out of) the colors.  When you Convert to a Profile, you change the numbers but you preserve the colors.
    It seems that old AI 10 did not have such a menu Command in the Edit menu, as Photoshop has, so the workaround would be to close the file and pen it again, at which time you do get presented with the choice of CONVERTING to a profile.
    steve fairbairn wrote:
    Edit:
    Edit > Color Settings (Cmd+Shift+K)
    No, Changing your Color settings is a global dialog box that affects your working space, not your open document.
    Thank you for your time anyway.

  • Mental Block on using templates

    Greetings all! I'm new to BC so please forgive my use of improper terms and my ignorance in general
    I'm trying to understand the work flow, and apparently I'm thinking about this all wrong and I need some help in understanding it. I'd like to start a new site that is nothing more than an online store. I start BC and pick an e-commerce shopping template and it creates it all, then, my intention would be to edit all the products and edit all the graphics. However, when I go to the Pages area and click to edit the pages, instead of WYSIWYG, I get the little icon for a graphic or missing graphic. So there's nothing for me to visually see, or click on to replace with my own graphic.
    I'm assuming that I'm trying to edit things in the wrong place and I need to be editing the core template somewhere else, but I don't know where that would be and I can't seem to locate it.
    Any help with that would be appreciated
    Am I okay in using that method, just using the BC template for the whole thing, or so I really need to create something in Muse, bring that in, and then drag and drop modules or widgets into that Muse site? I'd really like to use BC for the whole thing if possible.
    It's a very basic, simple online store, so what's available is fine, except for the graphics, which I'd like to modify
    Thanks for your time, I appreciate the help!
    Steve

    Hi Steve,
    I think your refering to the products etc themselves?
    Not everything is a page.
    Products are found under eCommerce and products, in there is the content for the images etc.
    If you are refering to the template layout itsefl it depends on the template. You should not really edit the html in the editor in the admin though as its ntot design for that but templates are under the Templates folder via SFTP and in the admin under site manager. Images and main layouts are there.
    It really is best to go through the BC guides etc.
    http://forums.adobe.com/community/business_catalyst/documents
    On the right there are links to 3rd party guide sites and of course you have:
    https://www.google.co.nz/search?q=business+catalyst+getting+started&aq=f&oq=business+catal yst+getting+started&aqs=chrome.0.57j0l2j62l3.5511j0&sourceid=chrome&ie=UTF-8

  • Mental Block AGAIN

    Hey Guys...
    Whats the discription for keycommand to cycle by region?
    Thanks

    go to the key commands and search for "cycle"
    you'll get something like this:
    set rounded locators and cycle play or record -
    Always go to the key commands and search for the command u wish for : They R all there:-9))
    Greetz
    25G'S

  • Mental Block this Sunday Afternoon

    Dear Members of this group,
    If I am creating multiple instances of a button called buy on
    a movie (e.g.
    buy1 and buy2) and giving each one a different name. How do I
    get the name
    of the instance clicked? If I use the code below I get the
    name of the
    original button not the instance name. So easy I presume that
    I am
    embarrassed asking the group.
    Buy.onPress = function() {
    trace(this._name);
    Thanks.
    Gerry.

    Rothrock,
    Thanks for the clarification. I am now much clearer. You have
    enlightened me
    this Sunday. Thanks again.
    Gerry
    "Rothrock" <[email protected]> wrote in
    message
    news:gguj7j$eqv$[email protected]..
    > Well what you are saying isn't making any sense. So yeah
    that is probably
    > it.
    >
    > If you have:
    >
    > Buy.onPress=function....
    >
    > Then that means you have some object with the instance
    name of "Buy" and
    > you
    > are telling it to give you the name of itself when you
    press it. That is
    > why it
    > is telling you its instance name. I think you might be
    confusing library
    > name
    > with instance name a little bit here?
    >
    > There is no way that with that code you are doing
    anything with something
    > called Buy1 and/or Buy2. If you want to work with Buy1
    and Buy2 then you
    > need
    > to define event handlers for the events on those
    buttons.
    >
    > There are several ways to do what you are asking. I
    would probably do
    > something like this:
    >
    > Buy1.onPress=sayMyName;
    > Buy2.onPress=sayMyName;
    >
    > function sayMyName(){
    > trace("Pressed: "+this._name);
    > switch(this._name){
    > case "Buy1":
    > // do stuff for Buy1 press
    > break;
    > case "Buy2":
    > // do stuff for Buy2 press;
    > break;
    > default:
    > trace("I don't know what you pressed.")
    > }
    >
    > }
    >
    >
    >
    >

  • How do I use a button within a movieclip to go to the root?

    Hi there, I am new to flash and AS3 and need some help
    getting my buttons to work.
    I made a script for the file that i am working with that has
    buttons located within 2 movieclips. I want that button to load and
    image into a UILoader (problemLoader_mc) that I placed on the stage
    on the main timeline (the timeline that contains WeekBar_mc). The
    problem is that I don't know how to get to the root of the file to
    start a new directory to tell my function to load the image i want.
    I have tried multiple approaches including:
    MovieClip(root).problemLoader_mc.source = problemArray[0]
    MovieClip(parent).problemLoader_mc.source = problemArray[0]
    root.problemLoader_mc.source = problemArray[0]
    parent.problemLoader_mc.source = problemArray[0]
    (root as MovieClip).problemLoader_mc.source = problemArray[0]
    If anyone can help me out with this, I would greatly
    appreciate it, I am banging my head against a wall at the moment.
    (Also, please excuse my vague descriptions, I am still learning the
    official terms.)
    Here is the code that I have written that pertains to this
    problem:

    I have a mental block for reasoning things out as far as
    assigning the listener to an object two mc's away from the main
    timeline while having the function in the main timeline, so I may
    play with that on my own for awhile. One thing you didn't do
    though, was to pay the same attention to the problemArray[0]
    assignment in that function, which I assume also lives in the root.
    But here's what I'd do for the moment.
    Take all that code except the array and plant it in the
    timeline where WEEK1btn lives, modifying it as follows....
    WEEK1_btn.addEventListener(MouseEvent.CLICK, pload1);
    function pload1(event:Event)
    MovieClip(this.parent.parent).problemLoader_mc.source =
    MovieClip(this.parent.parent).problemArray[0];
    I haven't utlized root myself yet, so I am not comfortable
    offering you a solution that attempts it.

  • Audio tracks: lock vs disconnect?

    Hi, all. I'm new to iMac and FCE Express. I'm not sure I understand the functional difference between locking the audio tracks versus disconnecting them. Don't both functions do the same thing?
    Thanks,
    Jeff

    Yes, I guess I'm referring to the patch panel.
    So you're saying that if I UNpatch, say, an audio track, and I have a clip in the Viewer that has both video AND audio, moving it to the timeline with the UNpatched audio track will move the video portion only, and not the new clip's audio?
    I'm sorry, I don't mean to be an idiot about all this. I think I understand the concept of LOCKING and UNLOCKING the tracks in the timeline. I'm just not getting the whole thing of PATCHING and UNPATCHING tracks, and when patching and unpatching is to be used instead of locking and unlocking. It's a mental block of some sort??
    Thanks,
    Jeff
    Message was edited by: jla930

  • How to access network from internet side

    Network newbie.
    Using BEFW11SW V.4 wireless router on a DSL mosdem to ISP, on small office network - 3 puters on it running XP Pro SP2/3. That side works fine for intranet and internet, mostly. snorton Norton firewall set up OK for access out.
    But I have mental block understanding how to get into my office network from outside, i.e. home via the internet. I can find the IP address of the router and the DSL modem while at work. But from home how do I route through to the computers & printers  across the internet to the work network.  What IP address works, and what ports do I try to open from the outside on the road.  Thinking in particular of remote desktop on the road, including access to office computers and printers.
    BTW remote desktop, Win Live Messanger, netmeeting all work from the office network outbound through the wireless router and DSL to internet to home puter -
    but I want the reverse path. What address/port/redirect ??
    Thanks for the kind words.

    since you want to use the Remote desktop feature....you will need to forward port number 3389 on you work router....once done...save settings the drawback here is that whenever you want o access the work pc....you will need to know the current IP you are getting from the DSL connection.. to access the work PC , open internet explorer and in the address bar type the following syntax http://your.current.wan.ip:3389

  • How do you store parsed XML data in an array

    Hi, i am trying to complete a small program which implements the SAX parser to parse an XML file. My problem is that i am writing a custom class to store the parsed data into an array, and then make the array available to the main program via a simple method which returns the array. I know this must be very simple to do, but i seem to have developed a mental block with this part of the program. I can parse the data and print all the elements to the screen, but i just cant figure out how to store all the data elements into the array. I will post the class which is supposed to do this, and ask anyone out there if they know what i'm doing wrong, and also, if there is a more effeicient way of achieving this ( i expect there definitely is!! but i have never used the SAX parser before and am getting confused by the API docs on it!!) Any help very much appreciated.
    Here is my attempt at coding the class to handle the parsed XML data
    class Sink extends org.xml.sax.helpers.DefaultHandler
         implements org.xml.sax.ContentHandler{
    Customer[] customers = new Customer[20];
         int count = 1;
         int x = 0;
         int tagCount = 0;
         String name;
    String custID;
         String username;
         String address;
         String phoneNum;
    public void startElement(String uri, String localName, String rawName, final org.xml.sax.Attributes attributes)throws org.xml.sax.SAXException{
    //count the number of <name> tags in the XML file
         if(rawName.equals("name")){
              tagCount++;
    public void characters(char[] ch, int start, int len){
    //get the current string
         String text = new String(ch, start, len);
         String text1 = text.trim();
    //there are 5 elements for each customer found in the XML file so when the count reaches 6
    // i reset this to 1
         if(count == 6){
         count = count - 5;
         if(text1.length()>0 && count == 1){
              name = text1;
              System.out.println(name);
              }else{
         if(text1.length()>0 && count == 2){
              custID = text1;
              System.out.println(custID);
                   }else{
                   if(text1.length()>0 && count == 3){
                   username = text1;
                   System.out.println(username);
                   }else{
                        if(text1.length()>0 && count == 4){
                        address = text1;
                        System.out.println(address);
                        }else{
                        if(text1.length()>0 && count == 5){
                             phoneNum = text1;
                             System.out.println(phoneNum);
                             //add data to the customer array
                             customers[x] = new Customer(name, custID, username, address, phoneNum);
    // increment the array index counter
                        x = x+1;
                        }//end of if
                        }//end else
                        }//end else
                   }//end else
              }//end else
    }//end of characters method
    public void endDocument(){
         System.out.println("There are " + tagCount +
         " <name> elements.");
    }//end of class Sink
    Before the end of this class i also need to make the array available to the calling program!!
    Any help would be much appreciated
    Thanks
    Iain

    Ok, yer going about this all the wrong way. You shouldn't have to maintain a count of all the elements. Basically you are locking yourself into the XML tags not only all being there but are assuming they are all in the same order. What you should do is in your characters() method, put all of the characters into a string buffer. Then, in endElement() (which you dont use btw, you should) you grab the information that is in the string buffer and store it into your Customer object depending on what the tagName is.
    Also, you should probably use a List to store all the Customer objects and not an single array, it's more dynamic and you arent locked into a set number of Customers.
    I wont do it all for you, but I'll give you a good outline to use.
    public class CustomerHandler extends DefaultHandler {
        private java.util.List customerList;  // List of Customer objects
        private java.util.StringBuffer buf;   // StringBuffer to store the string of characters between the start and end tags
        private Customer customer;  // Customer object that is initialized with each entry.
        public CustomerHandler() {
            customerList = new java.util.ArrayList();   // Initialize the List
            buf = new java.util.StringBuffer();   // Initialize the string buffer
        //  Make your customer list available to other classes
        public java.util.List getCustomerList() {
            return customerList;
        public void startElement(String nsURI, String sName, String tagName, Attributes attributes) throws SAXException {
            // Clear the String Buffer
            //  If the tagName is "Customer" then create a new Customer object
        public void characters(char[] ch, int start, int length) {
            //  append the characters into the string buffer
        public void endElement(String nsURI, String sName, String tagName) throws SAXException {
            // If the tagName is "Customer" add your customer object to the List
            // Place the data from the String Buffer into a String
            //  Depending on the tagName, call the appropriate set method on your customer object
    }

  • Where can I find a method to return the number of constants in an enum?

    I'd like to get the number of constants in an enum, but can not find any documentation on the topic.
    The only method I find reference to is the values() method.
    Are there other methods?
    Is there a method to return the number of items in the values array?
    Thanks,
    Norm

    Encephalopathic wrote:
    A_Sailor wrote:
    I had a mental block there.In my field, we call this a "cerebral spasm".From what I know of your field, that's a strange place to keep your cerebrum ;-)

  • Changing sequence aspect ratio in FCP

    My Video/Audio settings were NTSC DV 48k
    I had wide screen SD clips in bins of my project
    When creating a new sequence and dropping 16X9 SD clip FCP would open a dialogue box asking me:
    "For best performance your sequence and external video should be set to the format of the clips you are editing" Change sequence settings to match the clip settings? NO / YES"
    I would choose "NO" and have my wide clips letter boxed in 4:3 sequence (I figured it would play on 4:3 TVs with no issues)
    However, now I want to change the edited sequence settings from letter boxed 4:3 to wide 16:9, so that the sequence would match the wide native size of the original footage. Any attempt to change sequence setting results in stretched image inside 16X9 canvas window (or the wide screen sequence)
    what should I do to have the image conform to sequence's change setting from 4:3 letter boxed to native 16X9

    Captain or Michael,
    I am stuck with how to pick sequence attributes best suited to mixing standard DV in 4:3 and assets from a SD camcorder in 16:9. Is there a sequence attribute for this? I want the result to vertically letterbox (may not be the right term) the brief bit of 4:3 clips, but have the QT export be 16:9. I am sure I must have a mental block about this, but I have only thus far edited HD 16:9 clips within a single project, and 4:3 exclusively in others.
    By the way, I imported the 16:9 clips into an iMovie 09 project, and then added the 4:3 clips, and iMovie 09 seems to crop the tops and bottoms of the 4:3 clips to fill the screen -- not what I really want by preference, but might do on this little quickie project.
    Ernie

  • Newbie looking for a few answers on upgrading

    I have been a switcher for about 5 months. I have a mental block sometimes from Windows... I tend to make it harder than it really is....
    I am now interested in upgrading to Leopard.
    I have a few concerns/questions.
    I have a used mac mini (reason for the switch).
    I plan on doing an archive and install.
    So here are the questions.....
    1. Where can I find a detailed step by step of what to do before/during/after install? ( i have a bootable backup already)
    2. will I loose my iweb internet site?
    3. do I need to de-authorize my itunes account before install?
    4. How/can I bring my mail messages into the new mail......
    Thanks for any advice you can give......
    Message was edited by: ATX guy
    Message was edited by: ATX guy

    Welcome to Apple Discussions!
    1. Where can I find a detailed step by step of what to do before/during/after install? ( i have a bootable backup already)
    My FAQ*:
    http://www.macmaps.com/upgradefaq.html
    2. will I loose my iweb internet site?
    Not if you archive and install and save user settings and your system is healthy. There is no guarantee your system is healthy, which is why you made a bootable backup.
    3. do I need to de-authorize my itunes account before install?
    No.
    4. How/can I bring my mail messages into the new mail......
    They will not move as long as you save user and network preferences.
    - * Links to my pages may give me compensation.

  • Urgent help about Interface problem

      Please take a look at the following picture:
    Description:The vitual keyboard doesn't disappear when I slide to the leftmost "Search :iPhone" and then slide to the right.Whatever I slide the interface It remains until I start an app ! What is the problem?
    Location:China mainland
    OS:iOS 5.1, Not  Jailbreak
    问题描述:如图所示,当滑动到最左面的"搜索:iPhone"后,再向右滑动,该虚拟键盘不消失,此时,不论左滑还是右滑,都是这种情况,只有当点击一个程序时,它才会消 失!
    位置:中国大陆
    <Edited by Host>

    Please ignore - DOH
    Mental Block removed, twas a silly mistake ;-) When I had tried it earlier this way I had made a typo.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • Running different set of methods on the same class via threads

    Hello all,
    I have this issue that I am trying to deal with. It looks pretty simple to me, but maybe just a mental block I guess :)
    Now the code below will give you an idea of what I am trying to achieve. I am not sure if its possible or if there is some other better way to do this. Any help will be appreciated.
    Thanks
    public class TestClass extends Thread{
         public TestClass(){
         // Assume something goes in here.
         public void abc(){
              System.out.println("In abc");
         public void xyz(){
              System.out.println("In xyz");
         public void run(){
         //What do I put here, since my call is specific.
         public static void main(String args[]){
              TestClass t1 = new TestClass();
              t1.start();// I want t1 to call only abc()
              TestClass t2 = new TestClass();
              t2.start();// I want t2 to call only xyz
    }Edited by: mikkin on Mar 12, 2009 3:00 PM

    kogose wrote:
    you can use the Reflection API to make the desired method an instance variable:Whoa, that's a pretty big case of over-engineering (or under-engineering, depending on how you look at it) and abuse of Reflection. The real problem in the original post is that Thread isn't being used properly. You almost never want to subclass Thread, for reasons like these: your runnable target should be separate from the thread. I would organize your code like this:
    public class TestClass {
       public TestClass() {
          // Assume something goes in here.
       public void abc() {
          System.out.println("In abc");
       public void xyz() {
          System.out.println("In xyz");
       public static void main(String args[]) {
          final TestClass t1 = new TestClass();
          final TestClass t2 = new TestClass();
          new Thread(new Runnable() {
             public void run() { t1.abc(); }
          }, "t1Thread").start();
          new Thread(new Runnable() {
             public void run() { t2.xyz(); }
          }, "t2Thread").start();                   
       }

Maybe you are looking for