SDO_UTIL.SIMPLIFY seems to be rather unhappy with my polygon

Hi folks,
Not sure if this is a bug or just how things are. I have a polygon that is valid, looking like an upside Q - i.e. a ring-like polygon with a big hole in the middle. On 10.2.0.4, when I run SDO_UTIL.SIMPLIFY with a 20 meter threshold, it returns NULL. A threshold of 80 returns a line whilst a threshold of 10 returns a reasonable result. But NULL? I don't see anything in the documentation about this.
Next I tried the exact same thing on 11.1.0.7 and rather than NULL, I get ORA-13199 instead. This seems like an improvement. So I assume what produces NULL on 10g throws an error on 11g. I guess we call that progress and move on - any plans to backport this behavior to 10g?
But back to the results. Looking through
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_util.htm#sthref2702
I don't see any mention that a legal function result can be ORA-13199. So is this a bug? Or are some threshold values "just not gonna" work and always return an error by design?
Thanks!
Paul
SELECT
SDO_UTIL.SIMPLIFY(
SDO_GEOMETRY(
2003,
8265,
NULL,
SDO_ELEM_INFO_ARRAY(
1,
1003,
1,
63,
2003,
1
SDO_ORDINATE_ARRAY(
-80.6678363850029,
27.1544468240932,
-80.6676581190441,
27.1544578908543,
-80.6673811848868,
27.1545404243406,
-80.6669873181666,
27.1546888239902,
-80.6669011856599,
27.154727424447,
-80.6667227848805,
27.1548484903997,
-80.6666243193133,
27.1549804918455,
-80.6665567184542,
27.1551016239273,
-80.6665443185942,
27.1552556914498,
-80.6666181177095,
27.1555144243224,
-80.6667779183997,
27.1559106917256,
-80.6668025185416,
27.1560536914105,
-80.6668271189153,
27.1560868245381,
-80.6668579182135,
27.1560866907775,
-80.6669009855045,
27.1560592917636,
-80.6669071190522,
27.1559382250141,
-80.6669871190558,
27.1559106906018,
-80.6673439852962,
27.1559052909276,
-80.6673931847717,
27.1558888246279,
-80.6674363186955,
27.1558722246153,
-80.6675469848459,
27.1557622244607,
-80.6678731857396,
27.155575091261,
-80.6679839844916,
27.1554870246634,
-80.6680947191472,
27.1553660239724,
-80.668279384442,
27.1550798248074,
-80.66834698489,
27.1549642916886,
-80.6683593847143,
27.1548432242984,
-80.6683101849162,
27.1547276237897,
-80.6681687190595,
27.1545734909874,
-80.6679841179111,
27.1544468907341,
-80.6678363850029,
27.1544468240932,
-80.6670609857901,
27.1558170906695,
-80.6669317858199,
27.1558172245472,
-80.6668271853341,
27.1557840250493,
-80.6666919857747,
27.1552446911476,
-80.6667105183963,
27.155134623902,
-80.6668213180802,
27.1549420246816,
-80.6670549849476,
27.154793491146,
-80.6674795852521,
27.1546338906477,
-80.6678303186443,
27.154556890968,
-80.6679287847641,
27.1545568916289,
-80.6681071851569,
27.1546450245379,
-80.6681933180075,
27.1547606247241,
-80.6682117191289,
27.1548872243023,
-80.6681931847942,
27.1549532242227,
-80.6681809185176,
27.1549918246254,
-80.6678917187281,
27.1553990242445,
-80.6677069852055,
27.155542091489,
-80.667479384833,
27.1556740913815,
-80.667270184745,
27.1558170915238,
-80.6670609857901,
27.1558170906695
),20,0.001) from dual

Hi folks,
Not sure if this is a bug or just how things are. I have a polygon that is valid, looking like an upside Q - i.e. a ring-like polygon with a big hole in the middle. On 10.2.0.4, when I run SDO_UTIL.SIMPLIFY with a 20 meter threshold, it returns NULL. A threshold of 80 returns a line whilst a threshold of 10 returns a reasonable result. But NULL? I don't see anything in the documentation about this.
Next I tried the exact same thing on 11.1.0.7 and rather than NULL, I get ORA-13199 instead. This seems like an improvement. So I assume what produces NULL on 10g throws an error on 11g. I guess we call that progress and move on - any plans to backport this behavior to 10g?
But back to the results. Looking through
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_util.htm#sthref2702
I don't see any mention that a legal function result can be ORA-13199. So is this a bug? Or are some threshold values "just not gonna" work and always return an error by design?
Thanks!
Paul
SELECT
SDO_UTIL.SIMPLIFY(
SDO_GEOMETRY(
2003,
8265,
NULL,
SDO_ELEM_INFO_ARRAY(
1,
1003,
1,
63,
2003,
1
SDO_ORDINATE_ARRAY(
-80.6678363850029,
27.1544468240932,
-80.6676581190441,
27.1544578908543,
-80.6673811848868,
27.1545404243406,
-80.6669873181666,
27.1546888239902,
-80.6669011856599,
27.154727424447,
-80.6667227848805,
27.1548484903997,
-80.6666243193133,
27.1549804918455,
-80.6665567184542,
27.1551016239273,
-80.6665443185942,
27.1552556914498,
-80.6666181177095,
27.1555144243224,
-80.6667779183997,
27.1559106917256,
-80.6668025185416,
27.1560536914105,
-80.6668271189153,
27.1560868245381,
-80.6668579182135,
27.1560866907775,
-80.6669009855045,
27.1560592917636,
-80.6669071190522,
27.1559382250141,
-80.6669871190558,
27.1559106906018,
-80.6673439852962,
27.1559052909276,
-80.6673931847717,
27.1558888246279,
-80.6674363186955,
27.1558722246153,
-80.6675469848459,
27.1557622244607,
-80.6678731857396,
27.155575091261,
-80.6679839844916,
27.1554870246634,
-80.6680947191472,
27.1553660239724,
-80.668279384442,
27.1550798248074,
-80.66834698489,
27.1549642916886,
-80.6683593847143,
27.1548432242984,
-80.6683101849162,
27.1547276237897,
-80.6681687190595,
27.1545734909874,
-80.6679841179111,
27.1544468907341,
-80.6678363850029,
27.1544468240932,
-80.6670609857901,
27.1558170906695,
-80.6669317858199,
27.1558172245472,
-80.6668271853341,
27.1557840250493,
-80.6666919857747,
27.1552446911476,
-80.6667105183963,
27.155134623902,
-80.6668213180802,
27.1549420246816,
-80.6670549849476,
27.154793491146,
-80.6674795852521,
27.1546338906477,
-80.6678303186443,
27.154556890968,
-80.6679287847641,
27.1545568916289,
-80.6681071851569,
27.1546450245379,
-80.6681933180075,
27.1547606247241,
-80.6682117191289,
27.1548872243023,
-80.6681931847942,
27.1549532242227,
-80.6681809185176,
27.1549918246254,
-80.6678917187281,
27.1553990242445,
-80.6677069852055,
27.155542091489,
-80.667479384833,
27.1556740913815,
-80.667270184745,
27.1558170915238,
-80.6670609857901,
27.1558170906695
),20,0.001) from dual

Similar Messages

  • ORA13226 when using view with geometry created using sdo_util.simplify

    I have a polygon table (and spatial index) using Ora11.1 that i can query such as:
    Select ID From MyTable A where (MDSYS.SDO_RELATE(A.GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    This query returns 2 rows. I have created a view:
    create or replace view v_MyTable as
    select id, sdo_util.simplify(geometry,20,2) as s_geometry
    from MyTable;
    The subsequent query returns ORA13226
    Select ID From v_MyTable A where (MDSYS.SDO_RELATE(A.S_GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    If I create a view which does not use the simplify function the query works.

    tcbalent,
    This is correct behaviour if you are trying the query the view:
    Select ID
      From V_MyTable A
    where (MDSYS.SDO_RELATE(A.GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');This is because the A.GEOMETRY is not the geometry in the original table (MyTable) but a programmatically
    constructed geometry on the fly which is not indexed.
    You can fix this with a function based index as follows (NOTE: This uses my own test data that is projected and not geodetic):
    DROP  table myTable;
    create table myTable
    as
    select rownum as Id, geom as geometry
    from  projpoly2d
    where polytype NOT IN ('COMPOUNDOUTERSHELL','VERTEXWITHARCNOHOLE');
    delete from user_sdo_geom_metadata where table_name = 'MYTABLE' and column_name = 'GEOMETRY'; commit;
    insert into user_sdo_geom_metadata(table_name, column_name,diminfo,srid)
    select 'MYTABLE','GEOMETRY',diminfo,srid
      from user_sdo_geom_metadata
    where table_name = 'PROJPOLY2D'
       and column_name = 'GEOM';
    commit;
    create or replace view v_MyTable
    as
    select id, sdo_util.simplify(geometry,20,2) as S_geometry
    from MyTable;
    -- Create index metadata
    delete from user_sdo_geom_metadata where table_name = 'MYTABLE' and column_name = 'MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2)'; commit;
    insert into user_sdo_geom_metadata(table_name, column_name,diminfo,srid)
    select 'MYTABLE','MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2)',diminfo,srid
      from user_sdo_geom_metadata
    where table_name = 'MYTABLE' and column_name = 'GEOMETRY';
    commit;
    select * from user_sdo_geom_metadata;
    -- Now create index
    drop   index MyTable_sgeometry_spdx;
    create index MyTable_sgeometry_spdx on MyTable(MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2))
         indextype is mdsys.spatial_index parameters('sdo_indx_dims=2, layer_gtype=polygon');
    Select ID
      From v_MyTable A
    where (MDSYS.SDO_RELATE(A.S_GEOMETRY,
                             MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(190000.0, 5120000.0, 640000.0, 5630000.0)),
                            'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    -- Result
    ID                    
    5                     
    1                     
    4                     
    2                     
    6If this fixes your problem please mark this thread as answered.
    regards
    Simon

  • Unhappy With Veterans United Lighthouse Program- Anyone know about breaking the agreement?

    We started on the Veterans United Lighthouse program at the end of May, at that time, we had two of our three credit scores over the 600 mark and were told we only needed to gain 19 points on our credit score to be preapproved for a loan.  When contacting them, we had planned on paying off some delinquent medical debt to help our score but they said not to touch it that all we needed to do is open one credit card account and that would probably do it for us... the lady suggested Wells Fargo for the card... and we were rejected and lost points on our credit score.  We did find a card that approved us but then also saw another drop on our score. Anytime we call to try and get direction or answers to questions, she gives us conflicting advice... and now that our credit score fell she says "maybe you should pay down that medical debt"... this is what they told us not to touch when we began.  It's very frustrating.We were supposed to at least be under contract and moving forward by now because we need to move to a different city for my husband's job in August but now she says it will take several more months... we are VERY unhappy with the service (or lack of service) we've gotten there and think it would just be better to handle our credit on our own because all she's done is give advice that caused it to fall. SO, here's my question... when we started the Lighthouse program, we signed an agreement that said something like "if you use the lighthouse program you agree to use us for your VA loan"- so now that we are very unhappy with the program, are we still bound to use them for a VA loan?  I have read so many negative comments about Veterans United since I started myFICO message boards yesterday and this is very concerning for me.  This form I signed was a digital, online form so I don't have a copy (I know, that was dumb of me to sign it- we were recommended to the program by a friend of ours who had a good experience so our guard was down a bit). ANY ADVICE?Current credit scores are now: 586, 602 & 583... rental houses are very expensive where we're moving to and we really NEED to buy but now it seems unatainable. 

    Revelate wrote:
    Welcome to the forums! If you want to make gains in your score, my first and always recommendation is to do the following: 1) Post all your negatives and ask for help resolving them in the Rebuilding Your Credit forum, there may be some simple quick wins for getting them deleted.2) Post the whole darned enchilada in Understanding FICO Scoring: card limits and balances, loans, negatives, etc; this is for putting lipstick on the pig to optimize an instant in time pull. We're not FICO employees but this forum and one or two other places online are the next best thing when it comes to FICO optimization.  LO's unfortunately often don't know what they're talking about when it comes to FICO scoring, though your LO was right the first time, don't touch those medical collections by simply paying them, if you can't get them deleted they will not help your credit score and might even bring it down further.  The card advice, ugh, there's very few circumstances where that would have helped immediately and there's always a tradeoff involved with opening a new account when we're weighing potential advice on that front. I don't know anything about that particular program but hopefully someone will be able to give you better information on that. Thank you for the advice- I'll give it a try!

  • There seems to be an issue with opendns free servers

    ''(Locked. Not a support question. See bold text for reasons of locking -m)''
    This is more of a "I found it" than a question as this seems to be an issue with the opendns free DNS servers related to certain torrent sites and the duckduckgo search engine. However any thoughts are appreciated.
    While looking for a solution I followed troubleshooting steps found here to no avail regarding cookies (I'm accepting them from everyone including third party cookies and their dogs), clearing cookies (do that all the time as a matter of routine, did it again several times), clearing the cache (did that, got the T-shirt, now I'll never be naked) and checked the about:config setting (I forget which one but it was already set to 20, the default)
    Note that I can eliminate these issues completely by setting my DNS to "automatic" however I've been using opendns free DNS servers for years and have changed nothing except when troubleshooting this issue.
    The following is a detailed description. It can be confusing if you don't read it carefully:
    I had this happen on several torrent sites however I can get through on others but when I choose the .torrent link I get the same problem on most like at: http://kickass.to/movies/genre/news/ and the KAT mirrors... on KAT I can get to the page but the .torrent links are at http://torcache.net and I am unable to get those .torrents at all. (getting the "the page isn't redirecting properly" Firefox error message and the very long http://guidetest.a.id.opendns.com/?url=guidetest%2E (goes on forever) URL
    I'll post a few links that I've tried (just to see if they work) below.
    http://www.torrentz.eu/ - can't see the page at all, I get the "the page isn't redirecting properly" Firefox error message and it redirects to the URL: http://guidetest.a.id.opendns.com/?url=g...Ecom%(goes on for something like a couple of hundred characters)
    Same issue with several other torrent sites...
    lazypirate.net I can't get through at all - same issue
    http://extratorrent.cc/ - no problem with pages or .torrents
    http://isohunt.to/ - again no problem with pages or .torrents
    Particular torrents I get the:"the page isn't redirecting properly" Firefox error message and it redirects to the URL: guidetest.a.id.opendns.com/?url=guidetest%2Ea%2Eid (blah blah forever) are:
    http://thetorrent.org/A5F7D7D92D8CDE2576...9B.torrent : (getting the "the page isn't redirecting properly" Firefox error message and the very long http://guidetest.a.id.opendns.com/?url=guidetest%2E (goes on forver) URL
    I can go on to list individual .torrents but I think you get the idea...
    I've had this issue with more than a few torrents over the last couple of days and can't remember them all but further checking does seem like it's either particular torrent sites I can't access at all or on sites I can access but store their .torrent files on either torcache.net or thetorrent.org so there seems to be mixed issues, being able to see some pages but not get .torrent files from those sites if they're stored somewhere else.
    On duckduckgo I get the "this site is untrusted" error.
    Again, when I abandon the opendns DNS servers I've been using for years and go to "automatic" both of these issues disappear with no other changes. and I've done that several times just to verify the problem and even confirmed that the opendns server addresses are correct, which they are the same ones I've used for years.
    I've emailed opendns and described the issue and they are completely confused and tell me "it must be your settings"
    '''Although this doesn't seem to be a Firefox or a Windows issue, I'm using FF 28.0 on win XP Pro SP3, legal OEM copy, Pentium D, 3.66 GHz, and 4 GB or Ram (3.65 GB of RAM recognized by XP, this is normal)'''
    '''Again, this issue only happens with the opendns free DNS servers I've been using for years and vanishes completely when I choose the automatic DNS setting and has only been happening a few days.'''
    I have screenshots of the errors and thought there was a way to post them here but I don't see that.
    The error on torrent sites is "The page isn't redirecting properly. FF has detected that the server is redirecting the request for this address in a way that will never complete. (and goes on to say blah blah cookies blah blah that I've checked and rechecked)
    The error on duckduckgo is "This Connection is Untrusted. You have asked Firefox to connect securely to duckduckgo.com, but we can't confirm that your connection is secure." blah blah (you probably know the rest). I expect that I could add an exception but again the problem doesn't happen when using automatic DNS server detection.
    I have no problems on other sites that I see.

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • Sdo_util.simplify - Error? Bug? Totally stumped !

    Hi folks,
    I have a confusing problem/error with using sdo_util.simplify. I am using Oracle 11G R2 with Spatial Option.
    I have loaded just over 2000 UK postown polygons - based on an OS source. These loaded fine and have been working perfectly well with spatial sql.
    The source data specifies the projection as British National Grid GCS_OSGB_1936 and the SRID within the Oracle metadata was correctly (i believe) determined (by calculate mbr) and set to 7405 - OSGB36 / British National Grid
    I can view the polygons perfectly fine in SqlDeveloper/GeoRaptor and if export them to KML and view them in Google Earth they position and display exactly as I would expect.
    All other spatial functions I have tried on the polygons work fine.
    The problem comes when I try and use sdo_util.simplify to reduce the number of co-ordinates used on the polygons :
    select sdo_util.simplify(poly_hi,100,0.005)
    from posttown_boundaries;
    ORA-13199: the given geometry cannot be rectified
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_UTIL", line 716
    ORA-06512: at "MDSYS.SDO_UTIL", line 770
    ORA-06512: at line 1
    13199. 00000 - "%s"
    *Cause:    This is an internal error.
    *Action:   Contact Oracle Support Services.
    I've tried various threshold and tolerance values ( the only threshold value that works is 0 which returns the same geometry.
    I have successfully used the sdo_util.simpify functions on the other spatial objects in the database so I don't believe it to be a database setup issue.
    When I run a validate geometry on the table for the geometry column I get the ORA-13029: Invalid SRID in the SDO_GEOMETRY object.
    However, as explained above the SRID was selected and checked using calculate MBR and it matches exactly what I would have expected given the source data and i have not found any other issues with the SRID.
    The error can be reproduced without any of the source tables by just taking one small polygon definition as follows:
    select sdo_util.simplify(
    MDSYS.SDO_GEOMETRY(
    2003,7405,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
    MDSYS.SDO_ORDINATE_ARRAY(407207.997315803,287087.001455892,
    406802.999914517,286916.000404434,
    406677.996543163,286831.004734191,
    406518.001132497,286741.000497636,
    406863.996876543,286566.000590838,
    407284.000289033,286672.000248752,
    407207.997315803,287087.001455892))
    ,5,0.005)
    FROM dual;
    ORA-13199: the given geometry cannot be rectified
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_UTIL", line 716
    ORA-06512: at "MDSYS.SDO_UTIL", line 770
    ORA-06512: at line 1
    13199. 00000 - "%s"
    *Cause:    This is an internal error.
    *Action:   Contact Oracle Support Services.
    Am totally stumped with this!
    Can anyone offer any thoughts or guidance?
    Many thanks in advance.
    Mike.

    Hi Mike,
    Usually someone jumps in early with the "geometry ain't valid" answer so I am late to the party. When I attempt to validate your 7405 geometry using 11gR2, I receive back error 13029.
    SELECT
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(
       MDSYS.SDO_GEOMETRY(
          2003,
          7405,
          NULL,
          MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
          MDSYS.SDO_ORDINATE_ARRAY(
             407207.997315803,287087.001455892,
             406802.999914517,286916.000404434,
             406677.996543163,286831.004734191,
             406518.001132497,286741.000497636,
             406863.996876543,286566.000590838,
             407284.000289033,286672.000248752,
             407207.997315803,287087.001455892
       0.005
    FROM
    dualThe error indicates that SRID 7405 "is invalid" which is not really all that informative. As you note above 7405 exists in MDSYS but its marked as a COMPOUND CRS which to keep it simple is a 3D CRS.
    (see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_cs_concepts.htm#autoId18)
    Thus "invalid" in this context means the SRID is invalid for the geometry you are putting it upon.
    So if we just add a Z to your geometry everything works hunky-dory
    SELECT
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(
       MDSYS.SDO_GEOMETRY(
          3003,
          7405,
          NULL,
          MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
          MDSYS.SDO_ORDINATE_ARRAY(
             407207.997315803,287087.001455892,0,
             406802.999914517,286916.000404434,0,
             406677.996543163,286831.004734191,0,
             406518.001132497,286741.000497636,0,
             406863.996876543,286566.000590838,0,
             407284.000289033,286672.000248752,0,
             407207.997315803,287087.001455892,0
       0.005
    FROM
    dualAnd your SIMPLIFY task also then works fine
    SELECT
    SDO_UTIL.SIMPLIFY(
       MDSYS.SDO_GEOMETRY(
          3003,
          7405,
          NULL,
          MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
          MDSYS.SDO_ORDINATE_ARRAY(
             407207.997315803,287087.001455892,0,
             406802.999914517,286916.000404434,0,
             406677.996543163,286831.004734191,0,
             406518.001132497,286741.000497636,0,
             406863.996876543,286566.000590838,0,
             407284.000289033,286672.000248752,0,
             407207.997315803,287087.001455892,0
       5,
       0.005
    FROM
    dualSo long-winded way to reiterate what Ivan said - you are using the wrong SRID. 10g was more forgiving than 11g when mixing and matching 3D and 2D SRIDs with data. 11g is more picky but not always that great at explaining the pickiness. I would bet if you had got back an error such as "2D coordinates not valid with 3D SRID" you would never have needed to post the question. I would suggest putting in an enhancement request to Support for some better error messages.
    Cheers,
    Paul
    Edited by: Paul Dziemiela on Nov 6, 2011 10:58 AM

  • SDO_UTIL.SIMPLIFY - 101 Uses (almost)

    SDO_UTIL.SIMPLIFY
    “Simplifies the input geometry, based on a threshold value, using the Douglas-Peucker algorithm.”
    This is an understated description if there is one. This function can do much more for you than just simplify the geometry, it will also convert arcs to line stings, eliminate duplicate verticies, and correct many overlapping edge polygon problems.
    I “discovered” this additional functionality while trying to get a process down to import reference ESRI shapefile data (GeoBase CIP's) stored in state-plane format into OS (Oracle Spatial) using Lat/Long. Most of the problems I encountered were due to overlapping polygon edges, duplicate verticies, and arcs in line strings. At first, I discreetly defused these issues by finding the errors (with code) and then fixing them based on the returned error codes. This was painfully slow and a real pain to code.
    Then I took a look at the incoming data, and determined that many times, the drafters (possibly from a CAD to GIS conversion) really went overboard and included many times more points than necessary for the accuracy I was interested in for the reference data. I looked at several of the simplify options and since I wanted to simplify the data in-place using an update statement, I choose this one. Then once, I ran the simplify command out of order by accident (before the arc/duplicate/overlap routine). Not only did it simply the data, it also “fixed” all the other problems as well!
    So – note to Oracle staff – great job! You might want to update the documentation to mention all the things it does while simplifying the data, as this is VERY useful for migrating troublesome data. However, I noticed that it can overtake all the memory (and take forever to run) on your database box if you make the mistake of specifying the same values for threshold and tolerance. The docs do state that the tolerance “Must not be greater than threshold.”, but I'd add that they also should not be the same.
    As always, YMMV...
    Bryan

    tdsacilowski wrote:
    All together there are about 20 machines that display a page that has one of the above 5 second refreshes. The application is also public; there is no authentication. From my understanding about how APEX handles sessions there is a max session length (8 hours in my case) even for public sessions. As a page is rendered, a hidden form variable is created called p_instance and the AJAX calls send this to the server to process the request within the active session. In theory, the application shouldn't be generating a lot of new sessions since once a page is loaded it is used simple to display an updating value. In other words, there's no user interaction. No page reloads, no new items being set in session state.
    no interaction, 24/7 uptime, refreshing every 5s, and it is all public.....
    I'd almost look at a slightly different architecture.
    option one:
    have a basic, static web page that calls an APEX REST service.
    This html file and any neccessary css, js files will reside on the same webserver as the APEX listener, but in a different WAR file.
    option two:
    make a simple java swing app using JDBC to connect directly to the database.
    use Oracle Wallet technology so you don't have to hardcode the name/password in plain text.
    have the DBA create an account with very limited access and a profile to guarantee it will never suck-up DB resources.
    *** IIRC -- the OCI version includes the capability of triggering an event (in Java) when a table gets update. ****
    APEX is a very good tool.
    But, for your case, it sounds like it is overkill for your requirements.
    MK

  • Unhappy With Change To the Calendar With iOS7!

    I am very unhappy with the change to the calendar since I updated to iOS7! It took away the ability to change a previously entered all day event to a start &amp; finish time! I am a single parent with three kids &amp; live by my calendar! I put all day events in my calendar as placeholders until I know the times! I can no longer do this with the update, which means that I have to enter a new event each time that I finally get the start time for my kids' events! I am on very limited time and now have an extra step to add to my busy life! Please let me know if I am missing something and there is still a way to do this or suggest an app that will function in a way that makes sense to people with busy lives that just want to update events rather than have to completely re-enter them! Thank you!

    Clj810 wrote:
    I just checked my IPad, first generation. It is only updated to iOS5.1.1, but I can see all my calendar events! I will never give it up!!!
    Well, that's good that you're happy as the original iPad can't be upgraded beyond iOS 5.1.1.
    Best of luck.

  • 163;  There seems to be an issue with the template that the site is using as there is a code to replace the pricing.

    163;
    There seems to be an issue with the template that the site is using as there is a code to replace the pricing.
    <script>
    // Script to extract the currency and decimals from the price
    var price = "{tag_saleprice}";
    var priceWithoutCurrency = price.replace( /^\D+/g, '')
    var decimals = priceWithoutCurrency.substring(priceWithoutCurrency.length - 2, priceWithoutCurrency.length);
    var roundedPrice = priceWithoutCurrency.substring(0, priceWithoutCurrency.length - 3);
    $('.image-with-price.big span').html(roundedPrice+'<sup>'+decimals+'</sup>');

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • Unhappy with OS X Server handling of email spam

    I'm unhappy with the way that OS X Server (on Mountain Lion) handles email spam.
    What I *want* is to be able to set some SpamAssassin rules, and then to have the mail server refuse spam emails (not accept and put into Junk, but refuse to accept them in the first place). I used to do this with Exim and the sa-exim tool. In 10.7 I decided to switch to the built-in mail server, but that doesn't offer this functionality.
    I would settle with being able to set some SpamAssassin rules and then have the server filter junk email into my Junk folder. 10.7 Server used to do this; I had to enable webmail and turn on the setting in there, and it would configure Pigeonhole (a Dovecot plugin) to put spam into the Junk folder. 10.8 server no longer offers webmail and no longer comes with Pigeonhole. I can add it myself with MacPorts, but I don't understand how to configure it on OS X Server.
    So I have to settle for my OS X Server delivering all junk emails to my inbox, where then I have to delete them one-by-one on my iPhone. I could leave a Mac on at home all day to do the spam filtering, but that just seems silly.
    If anyone could tell me how to set up Pigeonhole on OS X Server (10.8) to put my spam into a folder - or even how to set up Postfix to refuse spam in the first place - I would be very, very happy.

    The issue you've run into is that postfix uses amavisd as its post queue (I.e. received and accepted by smtp) filter.
    If you don't want to set server-side rules ( easiest way is still webmail / Managesieve plugin) to auto move junk mail into a junk folder because of security concerns, then there are other options.
    Most of the logic for spam checking is done by amavis.  It calls as subprocessess spamassassin and clam av.
    Changes you make in spamassassin conf are used by spamassassin but amavisd may overrule spamassassin.
    So your options are:
    1. Make webmail a local intranet access only - I.e. use a custom port 8xxx and don't open that to the Internet via your router or firewall rules.
    2. Quarantine spam to a new mailbox so it doesn't get delivered to the user.
    I haven't done this but, if you have a look at http://wiki.apache.org/spamassassin/IntegratedInPostfixWithAmavis ,
    It has some instructions on how to adjust the amavisd conf ( path to server/mail/config/amavisd/amavisd.conf ) , set up a new mailbox and quarantine the spam to there. This saves you having to set up webmail /Managesieve plugin, and means that you don't lose any mail incorrectly classified, although you will need to clean it out from time to time.
    If you have a lot of users, number 1. Is a better fit for an administrator because the user can manage their own spam.
    At the moment I'm grappling with how to get the child-process spamassassin to look up user-managed auto white lists and prefs set through webmail sauserprefs plugin.  Still a work in progress.......
    Hope that helps.

  • Unhappy with Yosemite Performance

    I upgraded my late 2008 17 inch MacBookPro to Yosemite last year after realizing I couldn't install Adobe's Creative Cloud offering on my OS X 10.6. For the most part I like Yosemite but the reason I'm unhappy with it is that it's slow and lags way too much for my liking. I attribute it to the lack of RAM (I have the max 4 GB) in order to use it functionally.
    Also since upgrading I've found some programs that I can no longer use but I've worked around that without too much of a headache. So my question is, can I install a new version of Mountain Lion (OS X 10.8.5) in place of what I have or am I stuck with this operating system? Since upgrading my MacBook to Yosemite, I found that Creative Cloud will run on OS X 10.8 and I have a DVD of that.

    I wasn't aware of EtreCheck so I took a look and it did catch some adware that was on there. I went ahead and fixed those with AdwareMedic and now have a clean system. Also had McAfee installed as a freebie from my cable provider. Decided to uninstall that as I saw that was running in the background as well.
    Will continue to run my clean system and see how it goes. Right away it seems that the delays are less frequent and bothersome. I realize that opening some apps (Microsoft or Adobe) take awhile and have found that running Safari in Yosemite is immensely better than Chrome.
    Here's the EtreCheck report BTW:
    EtreCheck version: 2.1.8 (121)
    Report generated March 21, 2015 at 1:36:14 PM EDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (17-inch, Late 2008) (Verified)
        MacBook Pro - model: MacBookPro4,1
        1 2.5 GHz Intel Core 2 Duo CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR2 SDRAM 667 MHz ok
            BANK 1/DIMM1
                2 GB DDR2 SDRAM 667 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 528
    Video Information: ℹ️
        GeForce 8600M GT     - VRAM: 512 MB
            Color LCD 1600 x 1000
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 2:29:46
    Disk Information: ℹ️
        Hitachi HTS543232L9SA02 disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.21 GB (123.77 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Configuration files: ℹ️
        /etc/sysctl.conf - Exists
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/DiskWarrior.app
        [not loaded]    com.alsoft.Preview (4.3) [Click for support]
            /Applications/VMware Fusion.app
        [not loaded]    com.vmware.kext.vmci (90.6.3) [Click for support]
        [not loaded]    com.vmware.kext.vmioplug.14.1.3 (14.1.3) [Click for support]
        [not loaded]    com.vmware.kext.vmnet (0249.89.30) [Click for support]
        [not loaded]    com.vmware.kext.vmx86 (0249.89.30) [Click for support]
        [not loaded]    com.vmware.kext.vsockets (90.6.0) [Click for support]
            /System/Library/Extensions
        [loaded]    com.logmein.driver.LogMeInSoundDriver (4.1.48f85) [Click for support]
        [not loaded]    jp.co.epson.driver.EpsonNet_PSUSBNotSeize (1.0.0) [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [running]    com.adobe.AdobeCreativeCloud.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.logmein.logmeingui.plist [Click for support]
        [running]    com.logmein.logmeinguiagent.plist [Click for support]
        [not loaded]    com.logmein.logmeinguiagentatlogin.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_desktop.plist [Click for support]
    Launch Daemons: ℹ️
        [running]    com.adobe.adobeupdatedaemon.plist [Click for support]
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.bombich.ccc.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [running]    com.logmein.logmeinserver.plist [Click for support]
        [loaded]    com.logmein.raupdate.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [loaded]    com.teamviewer.Helper.plist [Click for support]
        [not loaded]    com.teamviewer.teamviewer_service.plist [Click for support]
        [loaded]    net.sourceforge.MonolingualHelper.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support]
        [loaded]    net.optimum.iptv.optimumapp.agent.v3.plist [Click for support]
    User Login Items: ℹ️
        FontExplorerXAutoload    Application Hidden (/Users/[redacted]/Library/Application Support/Linotype/FontExplorer X/FontExplorerXAutoload.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 2.4.4.2 [Click for support]
        AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        LogMeIn: Version: 1.0.1001 - SDK 10.7 [Click for support]
        Flash Player: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        LogMeInSafari32: Version: 1.0.1001 - SDK 10.7 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.2.0 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 40 Check version
    User internet Plug-ins: ℹ️
        WebEx64: Version: 1.0 - SDK 10.6 [Click for support]
        WebEx: Version: 1.0 [Click for support]
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        ScreenleapPlugin_1.0.0: Version: 1.0.0 - SDK 10.9 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Growl  [Click for support]
        Java  [Click for support]
        MacFUSE  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Volumes being backed up:
            Macintosh HD: Disk size: 319.21 GB Disk used: 195.45 GB
        Destinations:
            DISKGO [Local]
            Total size: 320.07 GB
            Total number of backups: 7
            Oldest backup: 2014-07-14 17:05:05 +0000
            Last backup: 2014-10-27 15:10:05 +0000
            Size of backup disk: Too small
                Backup size 320.07 GB < (Disk used 195.45 GB X 3)
    Top Processes by CPU: ℹ️
             8%    WindowServer
             7%    mds
             1%    Creative Cloud
             0%    LogMeIn
             0%    configd
    Top Processes by Memory: ℹ️
        185 MB    com.apple.WebKit.WebContent
        112 MB    Microsoft Excel
        99 MB    Finder
        90 MB    Creative Cloud
        86 MB    mds_stores
    Virtual Memory Information: ℹ️
        558 MB    Free RAM
        1.94 GB    Active RAM
        1.23 GB    Inactive RAM
        565 MB    Wired RAM
        1.48 GB    Page-ins
        49 KB    Page-outs
    Diagnostics Information: ℹ️
        Mar 21, 2015, 11:03:13 AM    Self test - passed
        Mar 21, 2015, 10:17:18 AM    /Library/Logs/DiagnosticReports/spindump_2015-03-21-101718_[redacted].crash
        Mar 21, 2015, 08:18:50 AM    /Library/Logs/DiagnosticReports/AntiMalwareUpdate_2015-03-21-081850_[redacted]. crash
        Mar 19, 2015, 08:07:21 PM    /Library/Logs/DiagnosticReports/AntiMalwareUpdate_2015-03-19-200721_[redacted]. crash
        Mar 19, 2015, 06:25:12 PM    /Library/Logs/DiagnosticReports/Finder_2015-03-19-182512_[redacted].hang
        Mar 19, 2015, 06:25:12 PM    /Library/Logs/DiagnosticReports/Safari_2015-03-19-182512_[redacted].hang
        Mar 19, 2015, 08:23:41 AM    /Library/Logs/DiagnosticReports/AntiMalwareUpdate_2015-03-19-082341_[redacted]. crash
        Mar 18, 2015, 08:32:11 PM    /Library/Logs/DiagnosticReports/Memory Clean_2015-03-18-203211_[redacted].cpu_resource.diag [Click for details]

  • I just sent the following in a drop down box that allowed reporting system problems:I am most unhappy with your Lion 10.7.3 operating system that I installed on this MacBook:  Hardware Overview:    Model Name:     MacBook Pro   Model Identifier:     MacBo

    I am most unhappy with your Lion 10.7.3 operating system that I installed on this MacBook:
    Hardware Overview:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro5,4
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.53 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache:          3 MB
      Memory:          4 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MBP53.00AC.B03
      SMC Version (system):          1.49f2
      Serial Number (system):          W8******7XJ
      Hardware UUID: ******
      Sudden Motion Sensor:
      State:          Enabled
    1. The scrolling, as far as I've been able to determine, is by using the slide bar to the right of most diplays. There are no up or down arrows that allow slow movement
    2. The top and botton toolbars are not visible. The top one appears when you point the arrow to the top of the screen but the same doesn't work well if at all pointing the cursor to the bottom.
    3. When downloading, something jumps to the upper right of the screen. I could point and click it and get a diplay if my downloads. I was attempting to fix some of the above. Now the little thing jumps off the screen and I can't get to it.
    4I was trying to installMacBook Pro EFI Firmware Update 2.3. I got message it couldn't be installed on my system.
    5. The red yellow and blue bullets that allow shutting down, minimizing and maximizing are missing on most open windows.
    Can you do something about these problems
    It's problematical that one can't communicate directly with Apple to resolve these problems
    <Edited By Host>

    1: I'm scrolling this page right now using the arrow keys.
    2: Press the escape (esc) key to exit full-screen mode. Select Apple menu > Dock > Turn Hiding Off.
    3: ???
    4: That's because you downloaded an update for another model.
    5: See 2.

  • How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased from the ibook store.

    How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased books from the ibook store. The problem is, once I create a document in Pages and turn it into an ePub to be opened in iBooks, I delete the document in Pages, because I don't need two copies taking up space on my iPad. Before Maverick, iTunes would backup everything in my iBook app on my iPad. If something ever happened to my iPad, all of my created ePubs would be lost and I would be screwed. I suppose I could keep everything on Pages and go to iCloud and download my documents to my Mac, but that is a lot of steps. I may have to do that if there is no other way, but I am hoping someone will have the answer for me. Pretty disappointed in iBooks app for Mac at this point.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • I have a ipad 1. I seem to be having a lot of connectivity issues. It takes a long time to load and sometimes will not load a page at all. I seem to be having issues with streaming in that it will play a song and just stop.

    I seem to be having a lot of connectivity issues my iPad. It takes a long time to load and sometimes will not load a page at all. I seem to be having issues with streaming in that it will play a song and just stop. It seems I have to turn it completely off and restart.
    Anyone had these issues?

    Settings > General > Reset > Reset network settings

  • While installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    while installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    Creative Cloud Help / Error downloading Creative Cloud applications
    http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html

  • HT1476 my iPhone 4 will no longer charge. It is also not recognised in iTunes. There seems to be a problem with the connector slot. I've tried other cables and other computers/plugs but the connection is not being made. Any suggestions?

    my iPhone 4 will no longer charge. It is also not recognised in iTunes. There seems to be a problem with the connector slot. I've tried other cables and other computers/plugs but the connection is not being made. Any suggestions?
    It seems to me that the connection port is faulty.
    George

    Looks like a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

Maybe you are looking for

  • 120 GB HD or 160 GB HD? (Looking to buy a White MacBook)

    I am hopefully getting a White MacBook (2.0 GHz, C2D processor), and I was wondering whether the 120 GB model would be better for me, or the more expansive 160 GB model would suit me better. I have read the advice that they have for you when you are

  • Copy text in pdf gives me gibberish. Is there a way to OCR to correct?

    I have a few documents that are complete gibberish when I select text and copy. If I open them in Acrobat Pro, select text, Copy, and "Show Clipboard" in Finder, I see a bunch of "skull characters", and if I open them in Preview and do the same, I se

  • Error creating AIR file

    When I try to Publish to AIR file, Error Creating AIR file. The swf file specified as root content is missing. error is shown. When I run the Publish Project from the Project Panel in Flash CS4, The same error as earlier is obtained: Error Creating A

  • Align graphs using property nodes

    Hi, I am displaying data from 8 channels each on a seperate chart. I am using plot area and position property nodes to fix the size of each of these charts. I need auto-scaling but because of this, the charts are not aligned properly. Is there a way

  • How can I convert my SMSs on my N8 to a word/excel...

    Hi everyone, I have a N8. And I have a laptop Windows8-64 bit. My problem is ; How can I transfer my SMSs on my N8 phone to any office file (i.e excel) on my laptop ?? Any help is highly appreciated.