How to Query Sdo_Geometry Object of ORACLE SPATIAL in PHP?

Hi,
I am trying to Query the Oracle Spatial's Geometry object in the PHP page but its giving me the ADT Error. How can i see the GEOMETRY object information on the web using PHP. Thanking you in advance and waiting for ur prompt reply.
Adnan!

Hi Ana,
In the Query below its returning the result as each value of one row in diffrent rows i wanna ask from u is:
1- May i get all these values in one row ?
2- Second, i want to query more than one row values from the table? as this is a single row subquery.
Thanks for your help and i m looking forward for a positive reply from you.
Regards,
Adnan!
The following select lists all ordinate-values from ONE object in the table:
select *
from table(select a.<column_name>.sdo_ordinates
from <table_name> a
where ID = xxxx
*******************************************************************

Similar Messages

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • How to recompile the objects in oracle apps

    i used adadmin and compiled the apps schema .. but still i am getting INVALID objects .. how to compile these objects ?
    Below is the output after running adadmin .. suggest
    select owner,object_type,status from dba_objects where status='INVALID'
    SQL> /
    OWNER OBJECT_TYPE STATUS
    FLOWS_010500 JAVA SOURCE INVALID
    FLOWS_010500 JAVA CLASS INVALID
    PUBLIC SYNONYM INVALID
    PUBLIC SYNONYM INVALID
    PUBLIC SYNONYM INVALID
    PUBLIC SYNONYM INVALID
    RE PACKAGE BODY INVALID
    HERMAN TABLE INVALID
    APPS PACKAGE BODY INVALID
    APPS PACKAGE BODY INVALID
    APPS PACKAGE BODY INVALID
    OWNER OBJECT_TYPE STATUS
    APPS PACKAGE BODY INVALID
    APPS MATERIALIZED VIEW INVALID
    CA TABLE INVALID
    CA TABLE INVALID
    Thanks in advance

    i have 12.1.1 instance on Linux OS
    there is no adcompsc.pls file in $AD_TOP/sql .. i can see only adcompsc.sql You are on R12, and this script is no longer available -- See (Invalid Objects In Oracle Applications FAQs [ID 104457.1]), 10. How can I recompile all my invalid objects using ADCOMPSC.pls?
    Below is the error when i try to run the adcompsc.pls file .. please help
    [oaebiz@oracle sql]$ sqlplus @adcompsc.pls apps apps %
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Jan 4 08:36:03 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SP2-0310: unable to open file "adcompsc.pls"
    Enter User-name :Use adcompsc.sql instead.
    Thanks,
    Hussein

  • How to store java object in oracle

    Hi all,
    is it possible to store jva object in oracle.
    I have defined myClass. It have only data fields ( no methods).
    I make myClass myObject = new myClass();
    How can I store this object in oracle DB.
    Many thanks in advance.

    1.Convert this object into stream of Bytes.
    2.create a new InputStream from these Byte array.
    2.Use the setBinaryStream to set the values inside the table's column.
    3.Store this object as a Blob in the table (column type must be Blob).
    Hope this helps.
    Sudha
    PS:- Somebody explained in this forum how to convert an Object into Byte array .

  • How to get point ordinates in oracle spatial with oo4o and VC++

    Hi,
    I need some help baddly.Would someone help me?
    Now I need to get the point ordinates in a table called cities.I use oo4o C++ class library and VC++ 6.0 . In the table, the column name of SDO_GEOMETRY object
    type is "goem". For the reason that the table is created for a point layer, all the point ordinates are stored in the SDO_POINT.
    I read the ordinates in my program as below. But every time the final result of x,y,z are all be 0.000000000 . Although I checked it many times, I still couldn't found why.
    So could some experts tell me the reason or show me how to do that?
    Thanks in advanced.
    ODatabase odb("", "scott", "tiger");
    ODynaset odyn(odb, "SELECT * FROM CITIES");
    if (odyn.IsOpen())
    odyn.MoveFirst();
    OObject geometry;
    oresult ores = odyn.GetFieldValue("geom", &geometry);
    if(ores==OCSUCCESS)
    OObject sdopoint;
    const char* attrname3=geometry.GetAttrName(3);
         geometry.GetAttrValue(attrname3, &sdopoint);
         const char* ittypename=sdopoint.GetTypeName();     
         int itnumber=sdopoint.GetCount();
         int attrtype=sdopoint.GetAttrType(1);
         const char* attrnameX=sdopoint.GetAttrName(1);
    const char* attrnameY=sdopoint.GetAttrName(2);
         const char* attrnameZ=sdopoint.GetAttrName(3);
         double *x;
         double *y;
         double *z;
         sdopoint.GetAttrValue(attrnameX,x);
         sdopoint.GetAttrValue(attrnameY,y);
         sdopoint.GetAttrValue(attrnameZ,z);
    }

    Yes. I have tried your code and got the same result.
    And I also tried to use SQL to get the result.But it
    also failed.
    I am intrested in this problem too.
    Could some oo4o experts help me too?
    jeff

  • How to query on object

    Hi, there
    I was doing something following the example on this link:
    http://www.solarmetric.com/Software/Documentation/3.4.0/docs/jdo_overview_query_advfilter.html
    the codes (simplified from original):
    PersistenceManager pm = ...;
    Company comp = ...;
    Query query = pm.newQuery (Magazine.class,
    "publisher == :pub");
    Collection mags = (Collection) query.execute (comp);
    Caused kodo to generate a select:
    SELECT .... FROM MagazineTBL t0, PublisherTBL t1 WHERE (t0.publisherID IS
    NULL) AND t0.publisherID = t1.publisherID(+)
    This of course does not work. Any ideas?

    Thomas,
    We're asking for the actual code as this should work (and does in our
    internal tests). Most likely there is some small error in how you are
    constructing and executing the query which is causing the odd behavior.
    If you are uncomfortable posting your code here, send us a complete
    compilable/runnable test case to [email protected]
    Thomas wrote:
    >
    Other than different "names". I pretty much have the exactly same codes.
    The idea is simple, straightforward. Magazine HAS A publisher so in
    Magazine table there is a column referencing to a row in the publisher
    table. In SQL, you join on the foreign key. I am just wondering if it's
    possible (it should be according to the docs) to join on the object in
    JDOQL. i.e. when querying for magazines: "piblisher =
    :aParticularPublisher".
    What already works for me is: "piblisher.ID = " +
    aParticularPublisher.getID()
    Which is fine. whatever works - just kind of dispointed that after all
    these big talks we just end up doing the same. It's embeding sql anyway.

  • Update query for managing an Oracle spatial database

    Hi,
    i'm trying to manage a spatial network i have created in Oracle 11g. One of the tables i have created named "DE_OSM_RT_LINK$", contains data for links which exist between nodes. The link table contains a column named "Cost". All the values of this column are equal to "0". I need to UPDATE these values with the length of each link. I have made a query which finds the length (using data from the geometry column) but i can't make a query that finds the length and simultaneously updates the "cost" column. The query i have tried to make in order to update the "cost" column with the length is:
    UPDATE DE_OSM_RT_LINK$
    SET COST = (SELECT SDO_GEOM.SDO_LENGTH (d.geometry, m.diminfo)
    FROM DE_OSM_RT_LINK$ d, user_sdo_geom_metadata m
    WHERE m.table_name = 'DE_OSM_RT_LINK$' AND m.column_name = 'GEOMETRY');
    It doesn't run. I can't find what else is needed in this query in order to update the "cost" column. Could you please help me because i don't have much experience?
    Thank you

    Try connecting as SCOTT/TIGER, then do this:
    select * from user_sdo_geom_metadata;
    if the table does not exist, then spatial hasn't been installed
    if it does exist, then spatial (or locator) has been installed.
    If the table didn't exist, rerun the installer, choose a custom
    installation, and check the Spatial box, then install.
    If the table did exist, or after you install spatial, you'll want to
    use the user's guide, or take the spatial course to get started.

  • How to query in java for Oracle 10gr2 XMLDB

    Hi,
    I�ve some problems.
    I�ve some search queries which are working on normal relation table, but I don�t know how it works on XMLDB(Oracle 10gR2)
    Structure of XML file
    My xml table structure will be :
    Create table <tablename>
    Person_Id number primary key,
    Person_BankName varchar2,
    DateOfEntry date,
    Xmlcol xmltype
    Xmlcol xmltype will be mapped to a schema for the below xml file.
    XML File
    <Person>
         <Information>
              <firstname>Suchendra</firstname>
              <lastname>Kumar</lastname>
              <middlename>Krishna</middlename>
         </Information>
         <Account>
              <accountno>12212</accountno>
              <balance>42323.89</balance>
              <opendate>12-03-2005</opendate>
         </Account>
         <Transaction>
              <transamount>1000</transamount>
              <balance>41323.89</balance>
              <trandate>14-03-2005</ trandate >
              <trantime>10:40:22</trantime>
         </ Transaction >
    </Person>
    SQL Queries Required
    1.     Query to fetch the records whose transaction has been done from date 12-03-2001 to date 01-01-2005.
    2.     Query to fetch the records whose lastname= �*Kumar�
    3.     Query to fetch the records whose transaction has been done from time 9:09:55 to time12:26:23.
    4.     Query to fetch the records whose balance > 4000 and balance < 5000.
    5.     Regular expression Search in XMLDB. Ex: searching for records whose firstname has �su*� or �*ab� in it.
    How to extract these result set values in java for XMLDB (JDBC)?
    How to fetch these values from the result set?
    Whether Prepared Statement, Execute Query are compatible in XMLDB
    Can anyone help me in this..
    Thanks
    Athar

    Athar,
    You have been busy! You posted this same question to the SQL forum and the XMLDB forum. I see you got some answers regarding the XML part, so I will try to help you with the JDBC part. Have a look at this example:
    http://tinyurl.com/oemd7
    Good Luck,
    Avi.

  • Forms 6.0 how to query clob column with oracle 9.2 DB

    hi every body,
    i made install for oracle 9.2 oracle DB every thing goes ok but when i made query in my form version 6.0 which have CLOB column the form closed automatically without any message?
    and just for know when i run the same form with oracle 8.1.7 DB the form made query normally without any problem.
    i want your help please.
    Message was edited by:
    mshaqalaih

    I know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.

  • How to insert Sdo_Geometry from VB

    Hi,
    I have some queries for you guys. After trying several times, I still cannot make it work.
         Here is the scenario:
         I am retrieving a Polygon object from Oracle Spatial DB and I wanted to insert it into another Spatial Database.
    I am using the Oracle Object for OLE (OO4O). The Polygons contain attributes as well. I intend to insert
    the Attributes and the Geometries at the same time.
    Please find my code below for your reference.
    Public Function ConnectToOracle(sDBName As String, sUserAndPassword As String) As OraDatabase
    Dim OraSession As OraSession
    Dim OraDatabase As OraDatabase
    Set OraSession = CreateObject("OracleInProcServer.XOraSession")
    Set OraDatabase = OraSession.OpenDatabase(sDBName, sUserAndPassword, ORADB_DEFAULT)
    Set ConnectToOracle = OraDatabase
    End Function
    Public Function RetrieveRecord(sBldgID As String) As String
    Dim oraDB As OraDatabase
    Dim DS As OraDynaset
    Dim Ordinates As OraCollection
    Dim sdo_geometry As OraObject
    Dim sql As String
    Dim sGeom As String
    Dim sBldg_ID As String, sMainBldg_ID As String, sEstate_ID As String, sCat_ID As String, sBldg_Type As String, sCat_Type As String
    Dim sStatCode As String, sName As String, sMRC As String
    Dim DteCreate, DteDelete, dteUpdate
    Dim sAttributes As String
    Set oraDB = ConnectToOracle("service1", "user1/pwd1")
    sql = "select a.bldg_id,a.main_bldg_id,a.estate_id,a.cat_bldg_id,a.bldg_type, " & _
    "a.cat_type,a.bldg_type,a.status_code,a.name,a.centroid_mrc, a.dte_create,a.dte_delete, " & _
    "a.dte_update, b.geometry from bldg a, bldg_geom b where a.bldg_id='" & sBldgID & "' and b.bldg_id=' " & sBldgID & "'"
    Set DS = oraDB.CreateDynaset(sql, ORADB_DEFAULT)
    If Not DS.EOF Then
    Set sdo_geometry = DS.Fields("geometry").Value
    If Not IsNull(sdo_geometry.Item("sdo_ordinates").Value) Then
    Set Ordinates = sdo_geometry.Item("sdo_ordinates").Value
    sBldg_ID = DS.Fields("bldg_id").Value
    sMainBldg_ID = DS.Fields("main_bldg_id").Value
    sEstate_ID = IIf(IsNull(DS.Fields("estate_id").Value), """", DS.Fields("estate_id").Value)
    sCat_ID = DS.Fields("cat_bldg_id").Value
    sBldg_Type = DS.Fields("bldg_type").Value
    sCat_Type = DS.Fields("cat_type").Value
    sStatCode = DS.Fields("status_code").Value
    sName = DS.Fields("name").Value
    sMRC = DS.Fields("centroid_mrc").Value
    DteCreate = CDate(DS.Fields("dte_create").Value)
    If (IsNull(DS.Fields("dte_delete").Value)) Then
    DteDelete = DateTime.Date
    Else
    DteDelete = CDate(DS.Fields("dte_delete").Value)
    End If
    If (IsNull(DS.Fields("dte_update").Value)) Then
    dteUpdate = DateTime.Date
    Else
    dteUpdate = CDate(DS.Fields("dte_update").Value)
    End If
    Else
    MsgBox "No geometry!"
    End If
    ' Concatenate all the Geometries separated by comma
    For i = 1 To Ordinates.Size
    If i = 1 Then
    sGeom = Ordinates(i)
    Else
    sGeom = sGeom & "," & Ordinates(i)
    End If
    Next i
    sAttributes = "'" & sBldg_ID & "','" & sMainBldg_ID & "','" & sEstate_ID & "','" & sCat_ID & "','" & sBldg_Type & "','" & _
    sCat_Type & "','" & sStatCode & "','" & sName & "','" & sMRC & "','" & _
    DteCreate & "','" & DteDelete & "','" & dteUpdate & "'"
    End If
    DS.Close
    Set DS = Nothing
    Call InsertSingleRecord(sAttributes, sGeom)
    End Function
    Public Function InsertSingleRecord(sAttributes As String, sGeometry As String)
    Dim oraDB As OraDatabase
    Dim sql As String
    Set oraDB = ConnectToOracle("service2", "user2/pwd2")
    sql = "Insert into bldg(bldg_id,main_bldg_id,estate_id,cat_bldg_id,bldg_type,cat_type,status_code,name,centroid_mrc,geom) " & _
    "values ( " & sAttributes & ", " & _
    "MDSYS.SDO_GEOMETRY ( " & _
    "2003, NULL, NULL, " & _
    "MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,1), " & _
    "MDSYS.SDO_ORDINATE_ARRAY ( " & sGeometry & " )" & _
    oraDB.ExecuteSQL sql
    oraDB.Close
    Set oraDB = Nothing
    End Function
    After running this code, I successfully retrieved the data and able to manipulate it by concatenating them and stored in a variable to be inserted to database. During the insertion comes the problem, the error message is "ORA-00907: missing right parenthesis".
    I tried to manually execute the SQL Statement in the SQL Plus and it gives me the same error message. My observation is that the SQL Plus truncates the statement at a certain length. By the way, I checked the length of the resulting SQL from VB and it gives me 3096 characters. I am not sure if there is a limitation on the SQL statement length.
    I cannot figure out what's wrong with this code. I hope you can help me.
    I would appreciate any feedback from you guys and thank you in advance.
    Best Regards,
    Arnold Higuit
    Singapore

    Hi Daniel,
    Thank you for your reply. Here is the SQL Statement that was stored in the variable. I extracted this statement from the immediate window of VB IDE while debugging the code.
    Insert into bldg(bldg_id,main_bldg_id,estate_id,cat_bldg_id,bldg_type,cat_type,status_code,name,centroid_mrc,geom) values ( 'P0750109270947202318','P0750109270947202318','"','P0750109270947202318','BT6','GO1','SC2','Istana','19489D8262', MDSYS.SDO_GEOMETRY ( 2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS.SDO_ORDINATE_ARRAY ( 103.843218549901','1.30748186974166','103.843111698469','1.30753323638373','103.843175054448','1.3076666268715','103.843218549901','1.3076457365646','103.843286364106','1.30761206827051','103.843309190232','1.30765384888431','103.84336940088','1.30762445775988','103.84334855182','1.30758014498768','103.843450820054','1.30752724096372','103.843387104607','1.30739810088471','103.843380274743','1.30740307476731','103.843372007012','1.30738697747455','103.843413076066','1.30736617760188','103.843373624612','1.30728487723001','103.843367873147','1.30728704765151','103.843359875016','1.30727303034601','103.843375601678','1.30726724255536','103.84337901661','1.30727167383258','10
    3.84338998034','1.30726751385805','103.843385846475','1.30725919390898','103.843432397393','1.30723839403631','103.843426915528','1.30722446716504','103.843435183259','1.30722030719051','103.843425657395','1.30719525690908','103.843437969125','1.30718838390768','103.843401033936','1.30711097220766','103.843384408608','1.30711802607752','103.843328781159','1.30699919550062','103.843419097131','1.30695343578075','103.843372725945','1.30686028852489','103.843282409974','1.30690604824476','103.84322372706','1.3067892072209','103.843234466425','1.30678423766741','103.843218549901','1.30675736008999','103.84319024191','1.30670124147699','103.843174515249','1.30670929012337','103.84316058592','1.30668188855198','103.843135692861','1.30669454934404','103.843128323797','1.30667998943317','103.843023898763','1.30673343606251','103.843030908361','1.306747453368','103.843003229437','1.30676165154195','103.843015720899','1.3067864305207','103.843003499037','1.3067926704825','103.843040973425','1.30686709785296','103.8430
    19495298','1.3068781308289','103.843067214483','1.30697272503243','103.843021292631','1.30699614749774','103.843012935034','1.30697959803383','103.842944995855','1.30701432477776','103.842937716658','1.30699985530112','103.842849647353','1.30704480111293','103.842855129217','1.30705565322041','103.842784314307','1.30709191734624','103.842804290778','1.30713151608386','103.842819395053','1.3071608264333','103.842755284935','1.30718898377967','103.842727570789','1.30713392035982','103.842402269693','1.30729272579281','103.842486918126','1.30745403780143','103.842796133371','1.30730154741566','103.842762964268','1.30723686242187','103.842840463056','1.30720170959418','103.842874899878','1.30726853539547','103.842937447058','1.30723787819184','103.842943827589','1.30725099115504','103.843037468626','1.30720496013248','103.843030728628','1.30719085239276','103.843098667806','1.30715757259649','103.843094623807','1.30714916221319','103.843139377393','1.30712691539286','103.843187006711','1.30721762092454','103.843
    218549901','1.30720498324404','103.84322585379','1.30720205696391','103.843278414575','1.30731373992449','103.843285873506','1.30730731909423','103.843297196702','1.30733381632332','103.843290906038','1.30733589631059','103.843326313493','1.30741005237836','103.843336378556','1.30740326981119','103.843341860421','1.30741855319589','103.843218549901','1.30748121514446 )) )
    The error message is:
    Run-time error '440':
    SQL Execution error, 0RA-00907: missing right parenthesis
    And here is the equivalent statement and error in SQL Plus after I copied and pasted the code.
    SQL> Insert into bldg(bldg_id,main_bldg_id,estate_id,cat_bldg_id,bldg_type,cat_type,status_code,name
    ,centroid_mrc,geom)
    2 values ('P0750109270947202318','P0750109270947202318','"','P0750109270947202318','BT6','GO1','S
    C2','Istana','19489D8262',
    3 MDSYS.SDO_GEOMETRY ( 2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS.SDO_ORDINATE
    _ARRAY ( 103.843218549901,1.30748186974166,103.843111698469,1.30753323638373,103.843175054448,1.3076
    666268715,103.843218549901,1.3076457365646,103.843286364106,1.30761206827051,103.843309190232,1.3076
    5384888431,103.84336940088,1.30762445775988,103.84334855182,1.30758014498768,103.843450820054,1.3075
    2724096372,103.843387104607,1.30739810088471,103.843380274743,1.30740307476731,103.843372007012,1.30
    738697747455,103.843413076066,1.30736617760188,103.843373624612,1.30728487723001,103.843367873147,1.
    30728704765151,103.843359875016,1.30727303034601,103.843375601678,1.30726724255536,103.84337901661,1
    .30727167383258,10
    4 3.84338998034,1.30726751385805,103.843385846475,1.30725919390898,103.843432397393,1.30723839403
    631,103.843426915528,1.30722446716504,103.843435183259,1.30722030719051,103.843425657395,1.307195256
    90908,103.843437969125,1.30718838390768,103.843401033936,1.30711097220766,103.843384408608,1.3071180
    2607752,103.843328781159,1.30699919550062,103.843419097131,1.30695343578075,103.843372725945,1.30686
    028852489,103.843282409974,1.30690604824476,103.84322372706,1.3067892072209,103.843234466425,1.30678
    423766741,103.843218549901,1.30675736008999,103.84319024191,1.30670124147699,103.843174515249,1.3067
    0929012337,103.84316058592,1.30668188855198,103.843135692861,1.30669454934404,103.843128323797,1.306
    67998943317,103.843023898763,1.30673343606251,103.843030908361,1.306747453368,103.843003229437,1.306
    76165154195,103.843015720899,1.3067864305207,103.843003499037,1.3067926704825,103.843040973425,1.306
    86709785296,103.8430
    5 19495298,1.3068781308289,103.843067214483,1.30697272503243,103.843021292631,1.30699614749774,10
    3.843012935034,1.30697959803383,103.842944995855,1.30701432477776,103.842937716658,1.30699985530112,
    103.842849647353,1.30704480111293,103.842855129217,1.30705565322041,103.842784314307,1.3070919173462
    4,103.842804290778,1.30713151608386,103.842819395053,1.3071608264333,103.842755284935,1.307188983779
    67,103.842727570789,1.30713392035982,103.842402269693,1.30729272579281,103.842486918126,1.3074540378
    0143,103.842796133371,1.30730154741566,103.842762964268,1.30723686242187,103.842840463056,1.30720170
    959418,103.842874899878,1.30726853539547,103.842937447058,1.30723787819184,103.842943827589,1.307250
    99115504,103.843037468626,1.30720496013248,103.843030728628,1.30719085239276,103.843098667806,1.3071
    5757259649,103.843094623807,1.30714916221319,103.843139377393,1.30712691539286,103.843187006711,1.30
    721762092454,103.843
    6 218549901,1.30720498324404,103.84322585379,1.30720205696391,103.843278414575,1.30731373992449,1
    03.843285873506,1.30730731909423,103.843297196702,1.30733381632332,103.843290906038,1.30733589631059
    ,103.843326313493,1.30741005237836,103.843336378556,1.30740326981119,103.843341860421,1.307418553195
    89,103.843218549901,1.30748121514446 )) )
    7
    SQL> /
    3.84338998034,1.30726751385805,103.843385846475,1.30725919390898,103.843432397393,1.30723839403631,1
    ERROR at line 4:
    ORA-00907: missing right parenthesis
    We are actually dealing with large polygons and this one is just an example of a building outline.
    The other objects we have are Boundaries and Islands. I am worried about the 999 ordinates limitation. I can just hope that our largest Boundary would not reach that number.
    I hope you can spot the problem. Once again many thanks.
    Best Regards,
    Arnold

  • Oracle Spatial Database option

    hello all,
    I downloaded Oracle 9i Personal Edition for Windows 98 platform.
    It is a free download @ technet.oracle.com.I have successfully installed the database.
    Now i was looking for an "Oracle Spatial" option in the database.
    Can anybody tell me how can i store geospatial data in the Oracle database ?
    or how can i set the option "Oracle Spatial" in the database ?
    I m looking forward for ur help.
    Bikram.

    Try connecting as SCOTT/TIGER, then do this:
    select * from user_sdo_geom_metadata;
    if the table does not exist, then spatial hasn't been installed
    if it does exist, then spatial (or locator) has been installed.
    If the table didn't exist, rerun the installer, choose a custom
    installation, and check the Spatial box, then install.
    If the table did exist, or after you install spatial, you'll want to
    use the user's guide, or take the spatial course to get started.

  • Web service 2.0 query child object

    Hi,
    This is sathis.
    I need help with some basic webservice 2.0 query child object in CRM On Demand R17
    following is my sample SOAP message but it will return error.
    <?xml version="1.0" encoding="utf-8" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/10/2004">
    <ListOfContact pagesize="100" startrownum="0" recordcountneeded="true">
    <Contact>
    <Id>='AAPA-4I0UCG'</Id>
    <ListOfCustomObject3Query>
    <CustomObject3>
    <Id />
    </CustomObject3>
    </ListOfCustomObject3Query>
    </Contact>
    </ListOfContact>
    </ContactQueryPage_Input>
    </soap:Body>
    </soap:Envelope>
    This is the Error:
    Element with XML tag 'ListOfCustomObject3Query' is not found in the definition of EAI Integration Component 'Contact'(SBL-EAI-04127)
    please help me how to query child object using Web Service 2.0 with R17
    Thanks in Advance...
    regards,
    Sathis Kumar

    Hi Sathis,
    Try replacing:
    <ListOfCustomObject3Query>
    <CustomObject3>
    <Id />
    </CustomObject3>
    </ListOfCustomObject3Query>
    with:
    <ListOfCustomObject3>
    <CustomObject3>
    <Id />
    </CustomObject3>
    </ListOfCustomObject3>
    The tags should match those you see when you download the Contact WSDL file.
    Thanks,
    Sean

  • Accessing Oracle spatial objects (SDO_GEOMETRY) through ODBC/OLEDB

    Hello.
    I tried googling and reading through these forums and Oracle documentation, but I'm still uncertain on this question:
    Are Oracle spatial objects (of type SDO_GEOMETRY) accessible through ODBC and/or OLE DB drivers? Can I retrieve them with SELECT clause? Can I write them to database?
    I'm limited to these options because I'm developing Delphi application based on ADO and it must work with different DB servers. However I certainly don't want to implement different ways of accessing database for each server.
    If geometry objects aren't suported by ODBC/OLEDB, is there any way to convert SDO_GEOMETRY to (and from) BLOB or string or whatever, so I can read and write them like a normal data field?
    Thanks in advance.
    Edited by: user13816863 on 25.01.2011 20:35
    Edited by: user13816863 on 25.01.2011 21:57

    The SDO_UTIL package has lots of options to help output spatial data to other formats, and you may be able to use some of them to help.
    Some that come to mind are:
    SDO_UTIL.TO_WKTGEOMETRY
    SDO_UTIL.TO_GMLGEOMETRY
    SDO_UTIL.TO_KMLGEOMETRY
    This is covered in chapter 32 of the Oracle® Spatial Developer's Guide 11g Release 2 (11.2).

  • "invalid LRS segment" when querying an Oracle Spatial DB

    I have a table of GIS segments in an Oracle Spatial database. I'm using C# and ODP to connect to the database. For a given measure from the start of a segment, I want to find the GPS coordinates for that point. I'm running the following query:
    select g.geom.sdo_ordinates ord_array from
    *(select sdo_lrs.locate_pt(shape,0.02,0) as geom from test_schema.test_table*
    where route='ABC' and segmentnum='101.1') g
    where shape is of type SDO_GEOMETRY. I'm getting the following error:
    ORA-13331: invalid LRS segment
    Is there a problem with how I'm passing shape to locate_pt()? The Oracle Spatial documentation says the argument should be SDO_geometry, so that seems ok.
    Edited by: 964844 on Oct 11, 2012 2:10 PM

    I'm using C# with ODP.NET.
    Here is the current version of the code that is failing:
    var param = new OracleParameter("geom", OracleDbType.Object);
    param.UdtTypeName = "MDSYS.SDO_GEOMETRY";
    param.Direction = ParameterDirection.Input;
    OracleCommand oCmd = new OracleCommand();
    oCmd.Connection = this.oConn;
    oCmd.CommandText = queryStr;
    oCmd.CommandType = CommandType.Text;
    oCmd.Parameters.Add(param);
    OracleDataAdapter da = new OracleDataAdapter(oCmd);
    DataTable dt = new DataTable();
    da.Fill(dt);
    The exception is generated by the da.Fill(dt) line.

  • How to query objects intersecting the coordinates

    Hi all,
    I am an Oracle Spatial Newbie. I made a search on the Google but could not find a simple answer for a simple question. I migrated my database from PostGIS to Oracle. I would like to learn the Oracle version of my PostGIS query:
    SELECT * from ykn WHERE ST_Intersects(poly, ST_MakeEnvelope(30.0, 37.792 , 30.1, 37.8,900914));
    All my records are converted to Oracle geometry type using a conversion tool. And also the R-tree index is added. I also would like to know how to query if the query has to be different to use the index.
    I'll be glad if you could help.
    Kindest Regards
    telmessos

    telmessos,
    By the way, what is the A here? I thought it is the table name and replaced A with YKN but got the same message."A" is an alias for the table YKN. You HAVE to use an alias whenever dereferencing the fields of any Oracle object. SDO_GEOMETRY
    is an Oracle object and sdo_srid is a field of that object so, to access its value you have to use an alias.
    Now, the original query - assuming the table sdo_geometry column is called POLY - didn't have an alias which would be confusing:
    select a.poly.sdo_srid from ykn where rownum < 2;
    -- Result
    ORA-00904 - "A"."POLY"."SRO_SRID": invalid identifier.What is missing here is the alias a after the table name YKN as in the following:
    select a.poly.sdo_srid from ykn a where rownum < 2;So, what we have is a rule
    Whenever accessing the fields / methods of an SDO_GEOMETRY we must:
    +1. Alias the table+
    +2. Use the alias when accessing column methods or fields eg <alias>.<column>.<field/method>+
    An example:
    select a.geom.sdo_gtype, a.geom.sdo_srid, a.geom.sdo_point.x, a.geom.sdo_point.y, a.geom.get_WKT() as wkt
      from projpoint2d a
    where rownum < 3;
    -- Results
    GEOM.SDO_GTYPE GEOM.SDO_SRID GEOM.SDO_POINT.X GEOM.SDO_POINT.Y WKT
    2001           NULL          363088.42        5405618          POINT (363088.42 5405618.0)
    2001           NULL          363202.85        5407375.46       POINT (363202.85 5407375.46)Note: All column above are fields of sdo_geometry except get_WKT() which is a method of sdo_geometry but still needs an alias to execute.
    HTH
    regards
    Simon

Maybe you are looking for

  • Zen Touch...Is it fixab

    Okay...i dropped my zen touch a few times...........okay more than a few.....the brushed aluminum just makes it slip out of my **bleep** hand.....anyway...recently the touch pad started not working. EVERYTHING else works, but the touch pad. any sugge

  • Is there any way to fwd delete with mavericks?

    Is there any way to fwd delete with mavericks?

  • Regarding ABAP Query,

    How can we insert the Z Function module into Standard ABAP Query. Plz help me in this issue in step by stpe process.

  • Oracle 11G database for 64 bit windows installation error

    Hi, I downloaded the 11G 64bit for windows and unzipped the files into one folder and ran the setup.exe as an administrator. It opened up the java screen and I chose, create and configure a database. Next screen I chose, Desktop Class, when I click n

  • How to register and publish  the webservice in the registry

    hai friends, 1) how to register and publish the webservice in the registry? I think To register the webservice first create an organization and publishes it to the registry then only register the webservice .Is it correct or not . If it is not correc