SDO_UTIL WKT functions appear to choke on multipoints

Hi folks,
Ugh. Not having fun with this. It appears that on both 10.2.0.4 and 11.1.0.6 that the WKT parser doesn't do multipoints correctly.
Could someone familar with WKT check these results and tell me if I am missing something critical?
This works just fine:
<strong>SELECT SDO_UTIL.APPEND(</strong>
<strong>SDO_GEOMETRY('POINT(-87.9033279296583 42.580894084168456)',8265),</strong>
<strong>SDO_GEOMETRY('POINT(-87.89577482907342 42.60414701132971)',8265)</strong>
<strong>) FROM dual;</strong>
producing
SDO_GEOMETRY
2005,
8265,
NULL,
SDO_ELEM_INFO_ARRAY
1,
1,
1,
3,
1,
1
SDO_ORDINATE_ARRAY
-87.9033279296583,
42.5808940841685,
-87.8957748290734,
42.6041470113297
But this
<strong>SELECT</strong>
<strong>SDO_GEOMETRY('MULTIPOINT((-87.9033279296583 42.580894084168456),(-87.89577482907342 42.60414701132971))',8265)</strong>
<strong>FROM dual;
</strong>produces a screwy SDO_ELEM_INFO_ARRAY indicating only a single element and I don't think that 2 is ever legit for a point.
SDO_GEOMETRY
2005,
8265,
NULL,
SDO_ELEM_INFO_ARRAY
1,
1,
2
SDO_ORDINATE_ARRAY
-87.90332792965830321918474510312080383301,
42.58089408416845600413580541498959064484,
-87.89577482907341732243367005139589309692,
42.60414701132970805019795079715549945831
Reversing around the situation, its just as bad
<strong>SELECT SDO_UTIL.TO_WKTGEOMETRY(
(SELECT SDO_GEOMETRY
2005,
8265,
NULL,
SDO_ELEM_INFO_ARRAY
1,
1,
1,
3,
1,
1
SDO_ORDINATE_ARRAY
-87.9033279296583,
42.5808940841685,
-87.8957748290734,
42.6041470113297
) FROM dual)
) FROM dual</strong>
produces a completely whacked
MULTIPOINT ((-87.9033279296583 42.5808940841685))
Am I missing something here? The WKT isn't rocket science so I think I have all the formats correct.
Thanks,
Paul

Paul
1. the second example is correct and seen as a point cluster.
2. seems that the wkt parser only recognizes these point clusters rather then multipoints (possible defect).
There is a slight distinction between a Multi-Point and a Pont cluster:
General:
In Oracle Spatial a Multi...geometry has for every element a triplet in the SDO_ELEM_info_array. Also for a Mulitpoint geometry.
INSERT INTO t1 (i, d, g)
VALUES (
17,
'Multipoint',
sdo_geometry (2005, null, null, sdo_elem_info_array (1,1,1, 3,1,1, 5,1,1),
sdo_ordinate_array (65,5, 70,7, 75,5))
However, there is also 'Point cluster' definition, which just has 1 sdo_elem_info_array triplet (1, 1, n) with n the number of elements.
INSERT INTO t1 (i, d, g)
VALUES (
16,
'Point cluster',
sdo_geometry (2005, null, null, sdo_elem_info_array (1,1,3),
sdo_ordinate_array (50,5, 55,7, 60,5))
In the Pro Oracle Spatial book, the last notation is recomended for a multipoint (performance + storage). It is seen as a single elements with N points, as opposed to an array of points.
If you use in your case:
SELECT SDO_UTIL.TO_WKTGEOMETRY(
SDO_GEOMETRY
2005,
8265,
NULL,
SDO_ELEM_INFO_ARRAY
1,
1,
2
SDO_ORDINATE_ARRAY
-87.9033279296583,
42.5808940841685,
-87.8957748290734,
42.6041470113297
) FROM dual
you will get MULTIPOINT ((-87.9033279296583 42.5808940841685), (-87.8957748290734 42.6041470113297))
In the other case, the WKT parser will read the first triplet and will evaluate the 3rd element of that triplet as a "Point cluster" with 1 point, and will use in second step only parse the first two ordinates.
I would raise this as a possible defect (not reading the full Multipoint) or consider working with the Point Clusters if feasible.
Note: read this post also on issues with the Point Clusters and the number of points: Re: Run-time error using SDO_GEOMETRY constructor with WKT
Hoping this could help.
Luc
Edited by: lucvanlinden on Dec 29, 2008 8:00 PM

Similar Messages

  • I never had this problem before but all of a sudden when I go to "edit" a photo the photo turns black.  All the editing functions appear but I cannot see any picture.  When I hit "done" the photo reappears. Why can I no longer see my photo for editing pu

    For years I have had no problems editing photos.  However, for some reason when I go to "edit" my photo the photo turns BLACK/BLANK.  The editing functions appear but I cannot see the photo.  When I select "done" the photo reappears.  Why is the photo disappearing for editing?  Have I hit a command accidentally that is causing this?  Really appreciate someone's assistance.

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run  Option #1, Repair Permissions, followed by Option #4, Rebuild Database, if needed.
    OT

  • InDesign | Mystery/unwanted form function appearing in exported Interactive PDF

    I am working on a project for a client that is a large interactive PDF with navigation, built in InDesign.
    On a recent version, exported PDFs on opening say "This document has form data that must be filled out" even though we have built no form function into the IDD document. When I click to "highlight fields" in the PDF, and scan all the pages, nothing is highlighted.
    Does anyone know what is happening and how I might be able to track down and correct the issue?
    Many thanks
    Scott

    For anyone arriving here with a similar problem, the solution is to export the Interactive PDF from InDesign with password security to restrict all changes on the exported PDF. This will eliminate the 'forms' message from appearing when opening the PDF.

  • SDO_UTIL.FROM_WKBGEOMETRY function

    Hi there.
    I have been struggling to convert WKB(Blobs) to SDO_GEOMETRY.
    If I understand correctly there is some SDO functions that doesn't`t work in Oracle XE or should I rather say it has a differant syntax in XE than enterprise.
    My problem is that I want to transform WKR(Blobs) to SDO_Geometry.
    I tried the following procedure but to no avail.
    CREATE OR REPLACE PROCEDURE IMIS_MAP_GEO.BLOB_TO_SDO
    IS
    CURSOR TCURS IS
    SELECT SEQ,
    SDO_GEOM.VALIDATE_GEOMETRY(SDO_UTIL.SIMPLIFY((SDO_UTIL.FROM_WKBGEOMETRY(A.GEOMETRY)),0.00000005),0.000001) AS "VALIDATION",
    SDO_UTIL.SIMPLIFY((SDO_UTIL.FROM_WKBGEOMETRY(A.GEOMETRY)),0.00000005) AS GEOM
    FROM LAND_PARCELS_REGD_ERVEN A
    WHERE GEOMETRY IS NOT NULL;
    BEGIN
    FOR TROW IN TCURS LOOP
    IF TROW."VALIDATION" = 'TRUE'
    THEN
    UPDATE LAND_PARCELS_REGD_ERVEN A
    SET A.GEOMETRY_TEST = TROW.GEOM
    WHERE A.SEQ = TROW.SEQ;
    ELSE
    DBMS_OUTPUT.PUT_LINE('GEOMETRY NOT VALID WITH ORA-' ||TROW."VALIDATION"|| ' ON SEQ'||TROW.SEQ);
    END IF;
    END LOOP;
    END;
    The values it returns is an blank GEOMETRY.
    Any help would be appreciated.
    Thanks in advance

    Hi Siva.
    Thanks for the reply.
    Do you know of any workarounds?or is the only way to use Enterprise?
    Thanks in advance,

  • SDO_UTIL Missing Functions?

    Folks,
    I am accessing a 10.2.0.1 SE database at a client site and when I describe the SDO_UTIL package I don't get all the functions in 10.2.0.1 that I use when developing my PL/SQL packages (for download at my website).
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 9 09:06:27 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    SQL> desc sdo_util
    FUNCTION APPEND RETURNS SDO_GEOMETRY
    Argument Name Type In/Out Default?
    GEOMETRY1 SDO_GEOMETRY IN
    GEOMETRY2 SDO_GEOMETRY IN
    FUNCTION EXTRACT RETURNS SDO_GEOMETRY
    Argument Name Type In/Out Default?
    GEOMETRY SDO_GEOMETRY IN
    ELEMENT NUMBER IN
    RING NUMBER IN DEFAULT
    FUNCTION GETVERTICES RETURNS VERTEX_SET_TYPE
    Argument Name Type In/Out Default?
    GEOMETRY SDO_GEOMETRY IN
    FUNCTION REMOVE_DUPLICATES RETURNS SDO_GEOMETRY
    Argument Name Type In/Out Default?
    GEOMETRY SDO_GEOMETRY IN
    DIM SDO_DIM_ARRAY IN
    FUNCTION REMOVE_DUPLICATE_VERTICES RETURNS SDO_GEOMETRY
    Argument Name Type In/Out Default?
    GEOMETRY SDO_GEOMETRY IN
    TOLERANCE NUMBER IN
    FUNCTION TRUNCATE_NUMBER RETURNS NUMBER
    Argument Name Type In/Out Default?
    VALUE NUMBER IN
    NO_OF_DIGITS NUMBER IN
    In particular, I am looking for CONCAT_LINES() and RECTIFY_GEOMETRY.
    Any pointers?
    regards
    Simon Greener

    Dan,
    This explains it. I am running 10.2.0.1 on my laptop and have all the functions etc.
    I have seen this error:
    ORA-04063: type body "MDSYS.SDO_INDEX_METHOD_9I" has errors
    at many sites but never quite got to the bottom as to why it occurred was occuring on 10g databases! I always assumed the _9I thing was a short term carry over.
    Now I know!
    Mate, I am really well. Thankfully, reasonably busy, though things were a bit quiet when I got back from Europe (last October). It was great to meet you though it would have been nice to have had a chance to catch up over a drink/dinner but you had to fly back to the USA. I have started down the OCP track which, on top of everything else, is keeping me out of mischief!
    I hope all is going well with you. We should drop each other an email off line...
    regards
    S

  • Music Store Browse Music Function appears to re-direct to my library index

    I typed "Sting" under music search, figuring that if any of "Stings" music was available in the i-Tunes music store, it would be displayed.. Wrong
    I was directed to what appeared to be my own library index of windows at the top asking for "GENRE" information.
    I do not remember this ever happening. I may have recentlty updated to the newest itunes version.
    Any help would be appreciated, greatly.

    Thanks Martin,
    I did check that first. It's not the fact that I'm not accessing the music store library, the problem is that it appears that the only way that I can search for music is by starting with "Selecting Genre" first. I click on "Anime" & see that there are 5 selections in the store library (not in my library). When I type in an Artist Name or Song Name, I would expect to see the album with track listings or the song name with the different Artists that have performed that song. Seems logical doesn't it??
    This was also happening with a friends computer. Did iTunes Music Store just recently change everything?!? Or is it my system? Inquiring minds need to know.

  • I have recently used iTunes to subscribe to some Podcasts flawlessly. Then suddenly, I could see the latest Podcasts in iTunes, but they were no longer available on my 160GB Classic. All other functions appear ok. Can anyone out there save me from myself

    Help ! I have recently used iTunes to subscribe to some Podcasts flawlessly. Then suddenly, I could only view the latest downloaded Podcasts in my iTunes account. I no longer had any Podcasts on my 160GB Classic. Can anyone save me from me ? I would truely appreciate any suggestions or direction. Thank you.    [email protected]

    Connect your iPod to iTunes and check on the Device/Podcasts pane; there are several options for which Podcasts are "kept on/left on" the iPod at each Sync. Are they set the way you want? For instance, if the setting is "to keep on the iPod only new Podcasts", that would cause older Podcasts to be removed.
    If you need to chnage the setting, you will need to Sync the iPod afterwards for the change to take effect.

  • Your Flash Forum's "Search" function appears to be broken

    Searching for "8kHz" yielded two results but doesn't show the search result titles or the links to get to the post, though it does show links to the forum itself and the user who posted the result.
    Same results no matter what I searched for, though if I initiate the search initially from the top level Forum, the search results work as expected.

    This is as much your forum as anyone else who visits - being user-to-user forums, Adobe does not monitor these forums.  If you have a comment or issue with the way the forum works (or fails to), you should post in the Forum Comments forum, which is dedicated to dealing with issues about the forums.
    That forum does get some Adobe attention, but Adobe doesn't maintain these forums... they rent them, and apparently went for the lower cost options as far as repairs/maintenance goes (little if any).
    http://forums.adobe.com/community/general/forum_comments
    Don't expect much to come from there for the issue you are bringing up... you won't be the first.

  • Fax function on all-in one does not appear under Mavericks

    I just purchased a new all-in-one printer. I installed it on my network successfully. When adding it to my devices the Printer and Scanner functions appear to function perfectly, but the FAX function (which appears on a Macbook Pro running Snow Leopard) does NOT appear as an option on a Mac Mini running Mavericks.
    The Printer is an HP Laserjet Pro MFP M127fn. It is listed as being Mavericks compatible. I have tried deleting it and reinstalling it to no avail. The Printer and Scanner functions apper to work fine (I have not had time to fully test them) but when attempting to add the Fax driver as a Printer the FAX tab is greyed out and will not appear. Again I had no problem installing this on a Snow Leopard machine.
    TIA
    Sam

    Sam ~ Welcome to the Support Communities.
    Silversam718 wrote:
    I'd like to know if Mavericks does nopt support Faxing...
    This Apple doc may help:
    OS X Mavericks: Send a fax
    ...Found by searching for "Fax" here:
    http://support.apple.com/kb/index?page=search

  • SDO_UTIL.TO_WKTGEOMETRY crashes when processing collection

    Hi folks,
    Another weird WKT thing. I have what I think is a very reasonable collection comprising one polygon with a bunch of holes and one linestring. SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT says the geometry is valid. However when I attempt to convert the geometry to WKT, I get a generic java runtime error on 11.1.0.6 and a specific error on 10.2.0.4 of
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.RuntimeException: oracle.spatial.util.GeometryExceptionWithContext: Unsupported collection element: elemInfo type 2003
    ORA-06512: at "MDSYS.SDO_UTIL", line 2495
    ORA-06512: at "MDSYS.SDO_UTIL", line 2517
    ORA-06512: at line 561
    Why would a 2003 polygon not be supported in a collection?
    Thanks!
    Paul
    Here is the procedure with the troublesome geometry:
    DECLARE
    sdo_example SDO_GEOMETRY;
    str_validate VARCHAR2(16);
    clb_wkt CLOB;
    BEGIN
    sdo_example := SDO_GEOMETRY
    2004,
    8265,
    NULL,
    SDO_ELEM_INFO_ARRAY
    1,
    1003,
    1,
    415,
    2003,
    1,
    433,
    2003,
    1,
    451,
    2003,
    1,
    471,
    2003,
    1,
    485,
    2003,
    1,
    499,
    2,
    1
    SDO_ORDINATE_ARRAY
    -118.651784895553,
    40.0356302970485,
    -118.651814679249,
    40.0354702026973,
    -118.652439578073,
    40.0350811147507,
    -118.652528705644,
    40.0347836130663,
    -118.652707072544,
    40.034600496421,
    -118.652736912119,
    40.034394580999,
    -118.652439075159,
    40.0340514258819,
    -118.652885327685,
    40.0333420933535,
    -118.653688593409,
    40.0326556154812,
    -118.654491691494,
    40.0317171775986,
    -118.654967504199,
    40.0308019855276,
    -118.655086583104,
    40.0308019855276,
    -118.656514915289,
    40.0300235861168,
    -118.656574426802,
    40.0297491067266,
    -118.65636588505,
    40.0294288062655,
    -118.656514524134,
    40.0290855952691,
    -118.657198710953,
    40.0283074752551,
    -118.65853679798,
    40.0261563994965,
    -118.659012722444,
    40.0254927762802,
    -118.661333112647,
    40.0238219276958,
    -118.663593488424,
    40.0215789862781,
    -118.664129092038,
    40.0215101987925,
    -118.664575288685,
    40.0213041157324,
    -118.66549707452,
    40.0202055834987,
    -118.666181317218,
    40.0197019987542,
    -118.667371379835,
    40.0192669220987,
    -118.668144917742,
    40.0188317895637,
    -118.668620674568,
    40.0183512271134,
    -118.668620618688,
    40.0181454234501,
    -118.668055175498,
    40.0180769153613,
    -118.668054896102,
    40.017596520549,
    -118.667727275445,
    40.0172533095526,
    -118.66769737999,
    40.0170245953538,
    -118.668143520758,
    40.0165439770242,
    -118.668291992203,
    40.0162236206838,
    -118.66930368792,
    40.0160858780745,
    -118.669392703732,
    40.0158800185318,
    -118.668112675354,
    40.0149196200629,
    -118.668052884445,
    40.0146449171552,
    -118.668469520913,
    40.0145990960844,
    -118.669064915437,
    40.0150336139464,
    -118.669421984514,
    40.015124920812,
    -118.669511223843,
    40.0150104798936,
    -118.670104774349,
    40.0126766227658,
    -118.670162777119,
    40.0103200227407,
    -118.670281408989,
    40.0099539012088,
    -118.670727382119,
    40.0093359873047,
    -118.670786614235,
    40.009061284397,
    -118.670547897631,
    40.0079631991981,
    -118.670784714337,
    40.006201490783,
    -118.670516381675,
    40.0054465048218,
    -118.669949876778,
    40.0035249255729,
    -118.669830797873,
    40.0032275915266,
    -118.669681599996,
    40.0025640800691,
    -118.669473225882,
    40.0024956278596,
    -118.668938013423,
    40.0028619170295,
    -118.659718981608,
    40.0101405941328,
    -118.659719875677,
    40.0119251013246,
    -118.659185501409,
    40.0141674839488,
    -118.658234378912,
    40.0164327771084,
    -118.657877924509,
    40.0177370012467,
    -118.6580276253,
    40.0193843246228,
    -118.657968504943,
    40.0204825215805,
    -118.657849817193,
    40.0209172070806,
    -118.657492915755,
    40.0213978254102,
    -118.65677900112,
    40.0220157951937,
    -118.654458387399,
    40.0235950016364,
    -118.65377420058,
    40.0243274123383,
    -118.651543496741,
    40.0273708813912,
    -118.650472401271,
    40.0282404759088,
    -118.650145283528,
    40.0289040991251,
    -118.650324097463,
    40.0294988789763,
    -118.651723316505,
    40.0304595009627,
    -118.651574677421,
    40.0312144869239,
    -118.651098976475,
    40.0321756118245,
    -118.649462214297,
    40.0327479840545,
    -118.648896826986,
    40.033091195051,
    -118.648688508752,
    40.0333200768878,
    -118.648480190517,
    40.0333200768878,
    -118.648212193132,
    40.0330227987208,
    -118.647914579689,
    40.0330686197917,
    -118.647617022125,
    40.033274591093,
    -118.646278488063,
    40.0358144754015,
    -118.6440169947,
    40.0384001807809,
    -118.643243289155,
    40.0389950723909,
    -118.642469527731,
    40.0393157081281,
    -118.642231314042,
    40.0392926858339,
    -118.642231314042,
    40.0393842720962,
    -118.640564600529,
    40.0399564766882,
    -118.640118124485,
    40.0401854144044,
    -118.639016910043,
    40.0412151032731,
    -118.638570601637,
    40.0417641738123,
    -118.63827332347,
    40.0432286040605,
    -118.637916198514,
    40.0437548758229,
    -118.637410099199,
    40.0441896172024,
    -118.636160022155,
    40.0447846764504,
    -118.634046497323,
    40.0456771256241,
    -118.632826092216,
    40.0465467201417,
    -118.632826203975,
    40.0466611051808,
    -118.632022379458,
    40.0472559967907,
    -118.630265979582,
    40.0479881839752,
    -118.630027821772,
    40.0481026807729,
    -118.629611073545,
    40.0481026807729,
    -118.628866704661,
    40.0479653851985,
    -118.62776532258,
    40.0481943229146,
    -118.627021009576,
    40.0484688023048,
    -118.625979027249,
    40.0484460035281,
    -118.624460673423,
    40.0485603885672,
    -118.621632619283,
    40.0494069049113,
    -118.620233176724,
    40.0496356749894,
    -118.619578326566,
    40.0496128203333,
    -118.618833901803,
    40.049429703688,
    -118.61627362153,
    40.0496584178867,
    -118.615350773988,
    40.0496584178867,
    -118.614755323584,
    40.0494066813939,
    -118.614338519478,
    40.0494753012414,
    -118.613891875796,
    40.049772691167,
    -118.613326320847,
    40.0498641097913,
    -118.611926990047,
    40.0495206752774,
    -118.610766096453,
    40.0490173140504,
    -118.60969438631,
    40.0483994001463,
    -118.608860778097,
    40.0484679082351,
    -118.60752090293,
    40.0495201723632,
    -118.607133714881,
    40.050275102445,
    -118.606835822041,
    40.0512360038282,
    -118.60647830593,
    40.0517850743673,
    -118.606299715513,
    40.0519224258211,
    -118.605852792434,
    40.0529976004846,
    -118.605554899594,
    40.053295102169,
    -118.605376085659,
    40.0536839107189,
    -118.605346301963,
    40.0542788023289,
    -118.604482295381,
    40.0560176002086,
    -118.604303593205,
    40.0567040222015,
    -118.604303313808,
    40.0574818069394,
    -118.604660494643,
    40.0579166041982,
    -118.604660327005,
    40.058854595046,
    -118.605047179777,
    40.0594495984146,
    -118.604451282339,
    40.0607078897234,
    -118.603825880601,
    40.0613026136953,
    -118.603855496659,
    40.0614856744613,
    -118.604867974687,
    40.0615545178263,
    -118.605284890552,
    40.0615088085141,
    -118.606416503364,
    40.0611199999642,
    -118.607220495519,
    40.0610744024108,
    -118.60990041349,
    40.0612347761588,
    -118.610674510191,
    40.0614178928041,
    -118.611716604276,
    40.0618528018216,
    -118.612222815351,
    40.0618986228924,
    -118.613056591202,
    40.0616927074704,
    -118.614783710296,
    40.0615098143425,
    -118.615438672213,
    40.0617845172502,
    -118.615706613718,
    40.0618073160269,
    -118.617969727583,
    40.0614871832039,
    -118.618743880163,
    40.0611897932782,
    -118.618982093852,
    40.0610295871684,
    -118.619011877548,
    40.0609152021293,
    -118.619518088622,
    40.0606406109804,
    -118.620351976232,
    40.0605719911328,
    -118.621126072932,
    40.060709398466,
    -118.621870385937,
    40.0605721028915,
    -118.62300188699,
    40.0598628821219,
    -118.623537993519,
    40.0596112015084,
    -118.624758678022,
    40.0590849856253,
    -118.625979418404,
    40.0586961211961,
    -118.62770642574,
    40.0584671834799,
    -118.629195219387,
    40.0580552967565,
    -118.629731102399,
    40.057803616143,
    -118.630862379934,
    40.0570256078878,
    -118.631606692939,
    40.0569340216254,
    -118.631844906628,
    40.0568424912424,
    -118.632083120317,
    40.0563848952069,
    -118.633392876511,
    40.0551263803807,
    -118.634524377564,
    40.0547374041927,
    -118.635238906872,
    40.0542339870864,
    -118.636399688707,
    40.0532500075297,
    -118.637024811048,
    40.0524262899623,
    -118.637649709872,
    40.0510764123912,
    -118.638215208941,
    40.0504584984871,
    -118.639554804711,
    40.049337223356,
    -118.640953688476,
    40.0487650746434,
    -118.641727673418,
    40.0483530761613,
    -118.642293116608,
    40.0476437995123,
    -118.643275475663,
    40.0472547115656,
    -118.644108916238,
    40.0471173042324,
    -118.644257778839,
    40.0471630135445,
    -118.644645022767,
    40.0475518779738,
    -118.644883124698,
    40.0475975872859,
    -118.645151010324,
    40.0475060010236,
    -118.645508191159,
    40.0470254944527,
    -118.646400975609,
    40.0460872242081,
    -118.646847004618,
    40.0447602012931,
    -118.647352992175,
    40.0444626996087,
    -118.647412391929,
    40.0438448974633,
    -118.647322984961,
    40.043661780818,
    -118.647322482047,
    40.0423120150056,
    -118.647590200035,
    40.0416026824772,
    -118.647619816093,
    40.0412823820162,
    -118.647351874588,
    40.0412595273601,
    -118.64669702443,
    40.0413968788139,
    -118.646518489892,
    40.0412826055336,
    -118.646518378133,
    40.0410309249201,
    -118.647321811495,
    40.0401613862819,
    -118.647381323007,
    40.0399783255159,
    -118.64827388394,
    40.0389028155763,
    -118.650029501505,
    40.0371636265411,
    -118.650922006558,
    40.0361338817929,
    -118.651784895553,
    40.0356302970485,
    -118.627229495448,
    40.0502077119433,
    -118.627289006961,
    40.0499102102589,
    -118.628033319965,
    40.0496585855248,
    -118.628241694079,
    40.0494755247588,
    -118.628539419281,
    40.049338173305,
    -118.628747681635,
    40.0494526142234,
    -118.62877757709,
    40.0498414786527,
    -118.628271477775,
    40.050138980337,
    -118.627229495448,
    40.0502077119433,
    -118.643958209619,
    40.040642395767,
    -118.643719884171,
    40.0403907151535,
    -118.643719772412,
    40.0399331749973,
    -118.643957818463,
    40.0396584720897,
    -118.644315111057,
    40.0395669975861,
    -118.644464085417,
    40.0397270919372,
    -118.644285606758,
    40.0405508095047,
    -118.644166583732,
    40.0406422840083,
    -118.643958209619,
    40.040642395767,
    -118.648868216756,
    40.0361571276045,
    -118.648897888694,
    40.0359512121825,
    -118.649433604067,
    40.035630688204,
    -118.649522787517,
    40.0354476833174,
    -118.649701210297,
    40.0353331865196,
    -118.649909696169,
    40.0354476833174,
    -118.649820512719,
    40.0358138048493,
    -118.649612306243,
    40.0360425749274,
    -118.649255125408,
    40.0362027810372,
    -118.648868216756,
    40.0361571276045,
    -118.645177888293,
    40.0381025114585,
    -118.64520761611,
    40.0378051215328,
    -118.645505117795,
    40.037370324274,
    -118.645892026446,
    40.0372329728202,
    -118.645743387363,
    40.0380109251961,
    -118.645505285433,
    40.0381254219939,
    -118.645177888293,
    40.0381025114585,
    -118.61558870828,
    40.0512142108799,
    -118.615380390046,
    40.050848089348,
    -118.615648275672,
    40.0504592249187,
    -118.615886489361,
    40.0504363143833,
    -118.616005624145,
    40.0505965204932,
    -118.615975672811,
    40.0511913003444,
    -118.61558870828,
    40.0512142108799,
    -83.088467803182,
    32.7318730307068,
    -83.0882509912858,
    32.7317356233736,
    -83.08719420093,
    32.7316896346647,
    -83.0851351584685,
    32.7310939048644,
    -83.0836449678378,
    32.7305898172058,
    -83.0826968069475,
    32.7299482663346,
    -83.0813963267259,
    32.7294212681406,
    -83.0801230038707,
    32.729008878503,
    -83.0795269387943,
    32.7289858562089,
    -83.0794185328462,
    32.7291002971273
    str_validate := SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(sdo_example,0.5);
    dbms_output.put_line(str_validate);
    clb_wkt := SDO_UTIL.TO_WKTGEOMETRY(sdo_example);
    END;

    Hi Siva,
    That makes sense that Oracle is using an older version of the WKT specification. But when I look at the documentation on these WKT functions, there is no mention of the specification used. For example, the GML converter specifies GML 2.0 right in the documentation. Do you know the version of WKT is currently supported by Oracle? Where is this documented? I should also note that it doesn't seem to mention anywhere that Oracle WKT functions are restricted to two-dimensional geometries only. Is this mainly a case of really poor documentation?
    Anyhow, on page 21 of the current WKT specification 1.2, it states that GEOMETRYCOLLECTIONs:
    A GeometryCollection is a geometric object that is a collection of some number of geometric objects.
    All the elements in a GeometryCollection shall be in the same Spatial Reference System. This is also the Spatial
    Reference System for the GeometryCollection.
    GeometryCollection places no other constraints on its elements. Subclasses of GeometryCollection may restrict
    membership based on dimension and may also place other constraints on the degree of spatial overlap between
    elements.
    Cheers and thanks for your help!
    Paul

  • Extended WKT notation in Oracle Spatial

    Hi,
    I have a AutoCAD spatial filter condition as follows,
    GEOM ENVELOPEINTERSECTS GeomFromText('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 33 0))').
    When I try to get the geometry in Oracle Spatial as below,
    Select SDO_UTIL.from_WKTGEOMETRY('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 33 0))') from dual;
    I am getting an error as "[Error] Execution (2: 8): ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: oracle.spatial.util.GeometryExceptionWithContext: java.lang.RuntimeException: Opening parentheses missing -3
         at oracle.spatial.util.WKT$WKTInputStream.readStartList(WKT.java:223)
         at oracle.spatial.util.WKBasis.readStartList(WKBasis.java:1542)
         at oracle.spatial.util.WKBasis.toJGeometry_WKB_POLYGON(WKBasis.java)
         at oracle.spatial.util.WKBasis.toJGeometry(WKBasis.java:1077)
         at oracle.spatial.util.WKBasis.toJGeometry(WKBasis.java:1033)
         at oracle.spatial.util.WKBasis.toSTRUCT(WKBasis.java:148)
         at oracle.spatial.util.Adapters.wktToSTRUCT2(Adapters.java:208)
         at oracle.spatial.util.Adapters.wktToSTRUCT(Adapters.java:198)
         at oracle.spatial.util.Adapters.wktToSTRUCT(Adapters.java:188)
    ORA-06512: at "MDSYS.SDO_UTIL", line 187"
    Validating the geometry gives null,
    SQL> Select SDO_UTIL.validate_WKTGEOMETRY('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 3
    3 0))') from dual;
    SDO_UTIL.VALIDATE_WKTGEOMETRY('POLYGONXYZ((-60450,40150,30150,-60480,-60330))')
    null null
    What am I doing wrong here? Also what is the equivalent sdo_util funtion for ENVELOPEINTERSECTS?
    Thanks.
    Ananda

    Hi folks,
    We talked in the past that a lot of this confusion could be mitigated if the Oracle documentation just stated clearly what version of the OGC specification the WKT functions support. Been a bit of talk on the forum recently on various OGC support issues and it strikes me as being kind of unproductive since nothing has changed in terms of OGC support since... I guess since the GML 3.1.1 functions were released with 11gR1. Is that correct? And before that? So the situation could be termed as being "very stable". :)
    Oracle Spatial WKT functionality (as of 11.2.0.3) pretty simply only supports the Simple Features 1.1 specification. End of story. Be nice if it said so here:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_util.htm#SPATL1234
    I'll try this weekend to submit an enhancement request for that as I don't think anyone else has.
    Meanwhile most of us either use Simon's JTS solution or long ago coded our own readers/writers in PLSQL.
    I've been trying to think of ways we could somehow inspire more forum users to submit SRs on the issues they bring up here. I am as lazy as the next person on the matter. Maybe some kind of point rewards for putting in SRs? I am not looking for folks to just knee-jerk submit SRs to every posting, but clearly there are some communities of interest (GML users for example) that could document their collective concerns through metalink.
    Cheers,
    Paul

  • WKT and Three Dimensional Coordinates?

    It seems that the WKT support in Oracle Spatial doesn't support 3 dimensional points. Is that true? If so, why not?
    Looking at the OGC spec, it appears that it only has allowances for 2 dimensions. But other DBs, like SQLPlus, have extended the spec to support 3 dimensions.
    Anyone know why the spec only supports 2D? Anyone know why Oracle only supports 2D?
    Thanks,
    -Ray

    Hi folks,
    Is it true that nothing has changed in terms of WKT functions supporting 3D and measures? I am testing on a 10.2.0.3 machine and the 3D linestring below causes a java error for FROM_WKT and oddly enough if I put in into binary, then it returns a 2D version of the geometry.
    Cheers,
    Paul
    LINESTRING Z ( -68.20175638 46.21856595 0.00000000, -68.20159165 46.21854315 0.00000000, -68.20132806 46.21836037 0.00000000, -68.20073507 46.21817781 0.00000000, -68.19977959 46.21797273 0.00000000, -68.19790238 46.21781392 0.00000000, -68.19704603 46.21763159 0.00000000, -68.19632122 46.21733493 0.00000000, -68.19562887 46.21678675 0.00000000, -68.19513406 46.21600980 0.00000000, -68.19503387 46.21488970 0.00000000, -68.19496782 46.21468412 0.00000000, -68.19457219 46.21434141 0.00000000, -68.19364968 46.21393059 0.00000000, -68.19295806 46.21383951 0.00000000, -68.19150922 46.21384034 0.00000000, -68.19081760 46.21374932 0.00000000, -68.18930249 46.21349875 0.00000000, -68.18703021 46.21320259 0.00000000, -68.18554801 46.21274634 0.00000000, -68.18469166 46.21263251 0.00000000, -68.18370388 46.21261010 0.00000000, -68.18074049 46.21277154 0.00000000, -68.17922605 46.21297790 0.00000000, -68.17807365 46.21304697 0.00000000, -68.17767841 46.21297857 0.00000000, -68.17718427 46.21272751 0.00000000, -68.17682189 46.21243051 0.00000000, -68.17668968 46.21190474 0.00000000, -68.17649181 46.21156192 0.00000000, -68.17583283 46.21105934 0.00000000, -68.17579980 46.21092221 0.00000000, -68.17560199 46.21069372 0.00000000, -68.17540407 46.21035090 0.00000000, -68.17533707 46.20895654 0.00000000, -68.17520502 46.20863652 0.00000000, -68.17500687 46.20799659 0.00000000, -68.17484209 46.20774519 0.00000000, -68.17477598 46.20747094 0.00000000, -68.17474301 46.20744814 0.00000000, -68.17461086 46.20687671 0.00000000, -68.17441304 46.20669393 0.00000000, -68.17421529 46.20623678 0.00000000, -68.17358899 46.20539133 0.00000000, -68.17316062 46.20488853 0.00000000, -68.17253466 46.20447742 0.00000000, -68.17171100 46.20383760 0.00000000, -68.17154627 46.20372339 0.00000000, -68.17148027 46.20358631 0.00000000, -68.17138148 46.20349495 0.00000000, -68.17115070 46.20299215 0.00000000, -68.17111700 46.20203197 0.00000000, -68.17101798 46.20168932 0.00000000, -68.17065549 46.20118652 0.00000000, -68.17035889 46.20093512 0.00000000, -68.16917329 46.20031838 0.00000000, -68.16788885 46.19956451 0.00000000, -68.16742740 46.19887893 0.00000000, -68.16739443 46.19878751 0.00000000, -68.16732860 46.19874174 0.00000000, -68.16732849 46.19862741 0.00000000, -68.16713068 46.19828459 0.00000000, -68.16699869 46.19791897 0.00000000, -68.16666928 46.19753061 0.00000000, -68.16666923 46.19741634 0.00000000, -68.16653746 46.19732492 0.00000000, -68.16643845 46.19705061 0.00000000, -68.16640559 46.19698210 0.00000000, -68.16640559 46.19691354 0.00000000, -68.16627383 46.19682212 0.00000000, -68.16627360 46.19663917 0.00000000, -68.16601002 46.19606780 0.00000000, -68.16584523 46.19593073 0.00000000, -68.16541641 46.19460499 0.00000000, -68.16541530 46.19321075 0.00000000, -68.16554667 46.19279914 0.00000000, -68.16571101 46.19243335 0.00000000, -68.16577639 46.19170178 0.00000000, -68.16564440 46.19133611 0.00000000, -68.16551280 46.19129051 0.00000000, -68.16554561 46.19115333 0.00000000, -68.16541379 46.19097038 0.00000000, -68.16531488 46.19078760 0.00000000, -68.16518306 46.19053631 0.00000000, -68.16505119 46.19021634 0.00000000, -68.16491920 46.18971354 0.00000000, -68.16495161 46.18909618 0.00000000, -68.16511601 46.18870760 0.00000000, -68.16603667 46.18770155 0.00000000, -68.16626690 46.18731279 0.00000000, -68.16636441 46.18571274 0.00000000, -68.16613385 46.18534690 0.00000000, -68.16570559 46.18477559 0.00000000, -68.16547503 46.18440997 0.00000000, -68.16537579 46.18379295 0.00000000, -68.16550727 46.18356418 0.00000000, -68.16567145 46.18326702 0.00000000, -68.16570363 46.18214691 0.00000000, -68.16497899 46.18114142 0.00000000, -68.16432045 46.18066159 0.00000000, -68.16362928 46.18050177 0.00000000, -68.16320147 46.18045617 0.00000000)

  • Accessing function's return value

    Hi there. I have created several pl/sql procedures and functions that I can run as standalone programs and I have no problem integrating them into my java code also. However I cannot access the return value of any created function from my java code. The functions appear to execute correctly because when I deliberately enter an invalid select statement I get the errors I expect to get for that instance nad if I enter a valid select statement in the function the program executes correctly but I still cannot access the function's return value. My java code where I execute the pl/sql function is as follows:
    CallableStatement p = cont.conn.prepareCall("{call ? := Hellen.FUNC}");
    p.setString(1, "z006"); //hellen.FUNC = function name
    p.execute();
    How do I access the return value of my function?
    Do I need to get a ResultSet?
    My function is as follows:
    function func
    return varchar
    is tester varchar(4);
    BEGIN
    select cfcc_code into tester from hellen.test1 where test1.cfcc_code = 'A21';
    return tester;
    END;
    Any help will be gratefully received, Joe

    You need to do something like
    p.registerOutParameter(1, java.lang.String);
    p.execute();
    String result = p.getString(1);Cheers, APC

  • New Partner Function in CRM (Solution Manager Service Desk)

    Hi CRM Gurus!,
      Even if this problem is present in my Solution Manager Service Desk I'm creating this thread here in CRM Forum because I thin'k I need the experience of one CRM Expert. Í´ve created this question in Solution Manager Forum also but I hadn´t solved my problem yet.
    We add the partner function called "Additional Partner", but I don't know why in the tab "Partners" in the CRM transaction we want to add a new partner but in the partners combo the new one does not appear in the list.
    The procedure that I did was: I created a new business partner function and I added this new function to my partner determination procedure, then in SPRO: "Define Partner Determination Procedures" -> I set the option "Only Functions Assigned in Procedure". 
    These are the values. fro my new function:
    Function: ZSLFN004
    Text: Additional Processor
    Abbrev.: ZAMS
    Function Cat.: 0008 Person Responsible
    Usage: CRM Customer Relationship Managem.
    Relatshp Cat: CRMH06 Is Responsible BP For
    The partner functions in my procedure are:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    ZSLFN004 Additional Processor (CRM)
    But in the transactions when I try to add a new partner in the partners tab only the follow functions appears in the combo:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    I don't know why my ZSLFN004 is not listed in the combo.
    By the way, my function was created as a copy of SLFN0004.
    Any help would be appreciated.
    Regards
    Gustavo Balboa

    Hi Vishant,
      Thanks for your answer, but some one in the Solution Manager forum gave me the answer few minutes ago :). The problem was that in some transaction types (I don't know wich ones or if it aplies to all) the category 0008 - Person Responsible can only appear once, my partner function was a copy of the function SLFN0004 - Message Processor and that function is defined with the category 0008, so I had 2 partner functions defined in the category 0008.
    To solve the problem I just adjust my Z function and put the category 0016 - Service Team and let the relationship empty. Then the partner function is now showing in the combo at partners tab.
    Again, thanks anyway for the time that you take to answer my question.
    Regards
    Gustavo Balboa

  • How to restrict the functions in People Enter and Maintain - Others LOV

    I want to restrict the functions appearing when i click on People Enter and Maintain -> Others screen.
    Can this be done through form personalization ?
    If not how can this be achived.
    I want to restrict the list in Assignmnet -> Others list also.
    Thanks in advance
    -Debojyoty

    Change the underlying taskflow.
    In the form function parameters, you can find the taskflow name for the WORKFLOW parameter.
    Make a copy of the seeded taskflow and add/remove nodes as you wich.
    4 nodes in a taskflow can be checked to appear as a button, if you have more nodes linked to the form, they will appear under the other button.
    This is configuration, no customization or personalization!

Maybe you are looking for

  • Hiding Row in Webi Report

    hi, How to Hide the rows in a webi report? Sample output -- Login 01/02/2010/10:45:50 Modified Record 01/02/2010 10:45:50 Modified Record 01/02/2010 10:46:50 Delete Record 01/02/2010 10:55:50 Delete Record 01/02/2010 10:56:50 Modified Record 01/02/20

  • Where is the AirPort Express/Extreme Config file import and export after the latest update (version 6.0 / 7.6.1)?

    Before the recent update I was able to export the configs of my AirPort Express and Extreme for later import if needed. It is not so important for the Extreme as it stays at home, but my Express has several configs saved as it is used in various loca

  • Why is iTunes not recognizing my phone?

    iTunes will not recognize my phone!!  I have uninstalled and reinstalled itunes and it will not recognize my phone is connected.

  • High CPU with AFP & SMB

    I have setup a 2.3DP XServer running Tiger/1047 and it seems to be working fine. This is a stand alone box with accounts imported from our main 2.0 SP XServer running Panther/1039 (both are stand alone). Most of these accounts were taken from a 10.1.

  • Images are still uploading distorted

    Hi guys, I was here a while ago with the same problem. I'd thought I fixed it, but all  did was substitute one problem with another. Now I'm back to the distorted uploaded image issue. I believe I've located the offended code but cannot figure out ho