SDO_toGMLGeometry adding gid attribute

I am trying to export at table to XML, and the schema must include a gid for each gml geometry. I think this is depreciated in gml 3 but the application I am exporting to demands it. How can I add the attribute to the exported gml?
SQL> desc my_sdo_geoms;
Name Null? Type
FID VARCHAR2(4000)
GID VARCHAR2(4000)
GEOMETRY MDSYS.SDO_GEOMETRY
SQL> select sdo_util.to_gmlgeometry(a.geometry) from my_sdo_geoms a where gid='g6';
SDO_UTIL.TO_GMLGEOMETRY(A.GEOMETRY)
<gml:Point srsName="SDO:" xmlns:gml="http://www.opengis.net/gml"><gml:coordinate
s decimal="." cs="," ts=" ">546050.79399999999441206455230712890625,183864.29399
999999441206455230712890625 </gml:coordinates></gml:Point>
I want it to read
<gml:Point srsName="SDO:" xmlns:gml="http://www.opengis.net/gml" gid="g6"><gml:coordinate
s decimal="." cs="," ts=" ">546050.79399999999441206455230712890625,183864.29399
999999441206455230712890625 </gml:coordinates></gml:Point>

Which database release are you using
in 10gr2 you should be able to use insertChildXML() to do this..
Something like
select insertChildXML
               geometry,
               '/gml:Point',
               '@gid',
               gid,
               ' xmlns:gml="http://www.opengis.net/gml"'
  from my_sdo_geoms ...In earlier releases you'll have to write a PL/SQL function that uses DBMS_XMLDOM to do this.

Similar Messages

  • Adding navigational attributes to a cube

    We have upgraded to BW 7.3. Previously when we added navigational attributes to a cube we need to activate the update rules from the ods but now it appears that we don't need to do that anymore. Is this the expected behavaior?  We are using the 3.5 update rules.
    thanks

    HI,
    If you are using 3.5, after selecting nav attr in the cube, the cube structure gets deactivated. The dependent update rules also gets deactivated. You will be forced to activate all again.
    In BW 7.3, SAP would have given privilege to add without activation. It is good for us. So nothing to worry.
    Regards,
    Suman

  • Encounter error after adding an attribute to a new dimension in AWM.

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I would post this on the OLAP forum as they should be able to help you diagnose this problem. The OLAP forum can be found at the following link:
    OLAP
    There is not much detail in your log, but I suspect that your OLAP mappings are incomplete or the maintenance of your dimension to load the new attribute data somehow failed. I would check the OLAP AWM build logs for more information.
    Thanks
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Error when adding an attribute to a redifined entity

    Dear Gateway experts,
    I have the following problem:
    In the service builder I have successfully created and activated an OData Service with several entities. Now I have created a second service and have redefined one of the entities of the first service. Finally I have added one attribute to this entity in the second service. Also this service could be generated succesfully. But when calling the service I get the error message "Property [NEW ATTRIBUT] of data object [ENTITY] has no Internal type assigned."
    In the MPC class of the second service I see, that the structure belonging to the entity has been updated with this new attribute.
    But the exporting parameter ET_ENTITYSET of the DPC class refer to the structure definition of the MPC class of the first service (because the inherite from them) without the new attribute.
    So my problem is now, hoc can I add an attribute to a redfined entity without getting this error and be able to fill the export table?
    Thanks a lot in advance!
    Regards,
    Juergen

    Hi Ron,
    thanks for your quick reply!
    The entity of the original service is structure based. But the new attribute in the redefined service is not part of this structure. However I have added it manually and also filled the corresponding ABAP type in the column "ABAP Field Names".
    The method DEFINE_<ENTITY> is only available in the MPC class of the original service. And this method is private so I can't call it from the subclasses.
    In the MPC class of the redefined service there is a private method CREATE_NEW_ARTIFACTS, which is called in the method DEFINE. In this method the new attribute is already added to the entity, in the same way the other attributes were added in the DEFINE_<ENTITY> method:
    lo_entity_type = model->get_entity_type(
         iv_entity_name = '<entity>' ).
    lo_property = lo_entity_type->create_property(
         iv_property_name  ='<attribute>'
         iv_abap_fieldname = '<ATTRIBUTE in ABAP>' ).
    lo_property->set_type_edm_string( ).
    So I am not sure, what else to add in these methods.
    Regards,
    Juergen

  • "Error determining attribute" after adding navigational attribute to query

    Hello all,
    We are getting a "Error Error determining attribute, Abort System error in program SAPLRRK0 and form RSRDR;SRRK0f30-01-" error message when running a query after adding a navigational attribute. We tried adding the attribute of the characteristic directly in the query and this works ok. But when we try using the navigational attribute we get the error. We would like to use the navigational attribute so we can filter based on this attribute.
    We've searched for notes regarding this problem and haven't found any. Any suggestions?
    Thanks, Ron

    hi,
    Please check if  number of the fields after adding the Navigationl attribute the should not cross 50.
    Check the RSRV test for the master data whose navigational attribute u r trying to add.
    Thanks
    Mukesh

  • Error occured  whenever adding an attribute to a dimension

    After I added an attribute to a new dimension, I encountered the error as below.
    I also cannot read the metadata from Jdeveloper after I create a cube using AWM.
    Please kindly help!!
    BI Beans Diagnostics(v1.0.2.0) 2005/9/15
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = C:\jdev1012_base
    JAVA_HOME ................................. = c:\j2sdk1.4.2_02
    JDeveloper version ........................ = 10.1.2.0.0.1811
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.52.0
    BI Beans internal version ................. = 3.2.1.0.13
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.3.0
    JDBC JAR file location .................... = C:\jdev1012_base\jdbc\lib
    Database version .......................... = 10.2.0.1.0
    OLAP Catalog version ...................... = 10.2.0.1.0
    OLAP AW Engine version .................... = 10.2.0.1.0
    OLAP API Server version ................... = 10.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in BI_TEST
    OLAP API JAR file version ................. = "10.1.0.2.0"
    OLAP API JAR file location ................ = C:\jdev1012_base\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    java.lang.NullPointerException
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.setDimAttributes(MDMMetadataDriverImpl_92.java:1733)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.getChildren(MDMMetadataDriverImpl_92.java:197)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.addChildren(MDMMetadataDriverImpl_92.java:2687)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92.fillOlapObjectModel(MDMMetadataDriverImpl_92.java:2571)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverIm
    pl_92$LoadOlapObjectModel.run(MDMMetadataDriverImpl_92.java:3013)

    I've got it resolved.
    I have to add levels and hierarchies before adding any attribute.
    That's strong!

  • Adding an Attribute to a VO changes the custom properties of the existing

    Adding an Attribute to a VO changes the custom properties of the existing attributes of the VO.
    We had a requirement to add an extra column in the VO.
    We modified the underlying EO to include the new column from the table, and modified the VO as well.
    Jdeveloper was changing the custom properties of the existing attributes in the VO. Our fix was not working as expected.
    Could anyone please inform us:
    1. On what logic does Jdeveloper determine to modify the existing custom properties of other VO attributes.
    2. Can this behavior of Jdeveloper be controlled through any mechanism.
    Thanks in advance,
    Rahul.

    Hi,
    which version of JDeveloper and how to reproduce ?
    Frank

  • Adding styleclass attribute by jQuery at jspx

    Hi all;
    I m trying to adding styleClass attribute to my af:form tag through jQuery but it seems something is off ;
    Here is my jQuery code
    $(document).ready((function(){
        $('#f1').data("styleClass","form"); //$('form').addClass('form'); didnt worked
    })());Here is my css
    .form{
        background-color:gray;
    }And Here is my partial jspx structure
    <f:view>
            <link type="text/css" rel="stylesheet" href="resources/css/Xxx.css"/>
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
            <script type="text/javascript" src="resources/js/Xxx.js"></script>
            <af:document title="Xxx.jspx" id="d1" binding="#{backingBeanScope.backing_Xxx.d1}">
                <af:form id="f1" binding="#{backingBeanScope.backing_Xxx.f1}"></af:form>
            </af:document>
        </f:view>Can you please help me on this matter
    jDev 11.1.2.1.0

    Hi,
    FYI, I figured out the solution here my self!
    You need to add the attribute as "nsRoleDN", and not "nsRole" as I had.
    LDAPAttribute role = new LDAPAttribute("nsRoleDN","cn=administration,dc=ie,dc=permanenttsb");
    When querying/searching the Directory you can use "nsRole" or "nsRoleDN"
    Thanks!
    CK

  • Adding custom attributes in iPlanet User resource

    I have a custom attribute in LDAP called "CustomAttr1" created. I would like to add this attributes into iPlanet User RO so that I can update that attribute via OIM. What is the process of adding that attribute to the iPlanet User process and forms?

    Have you checked the Connector Document and specifically the section where it says "Extending the Connector"?
    This: http://docs.oracle.com/cd/E11223_01/doc.904/e10446/custom.htm#CDEGCCEB
    -Bikash

  • Error when adding an attribute

    While adding an attribute(new) to 0WORKCENTER I am getting a message that " All values for this navigation attribute must now be available in the master data tables and the attributes SID tables of the characteristic."
    This is a new attribute and the data will be populated after wards or I am changing the extractor to do that.
    Do I ignore the yellow flag ?

    you can ignore, but wait for other expert opinions..
    Regards,
    BWer
    Assign points if helpful.

  • Dynamically adding more attributes to cube dimension in SSAS 2008 R2

    I need to dynamically add more attributes to cube dimension in SSAS 2008 R2 because the dimension table the cube is based on is updated using dynamic pivoting and there is need to update the cube dimension attributes as more columns are added to the dimension
    table without making the changes through BIDS. Is there a way to dynamically adding more attributes to cube dimension in SSAS 2008 R2?
    Thanks
    BI Developer

    Definitely. You can use AMO to add dimension attributes on the server. I have definitely done this a few times for different clients of mine. Here is a generic AMO sample:
    http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_AMOAdventureWorks&referringTitle=Home
    Notice the parts which add attributes to a dimension.
    http://artisconsulting.com/Blogs/GregGalloway

  • Other TAB adding & Popultaing "Attributes"

    I have two (2) attributes *mobile & *Pin that I would like to add to the user object in the other
    Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but have not used the tools.
    And after adding the attributes I have to of course populate the two attributes.
    Wayne

    Using 3rd party tools or LDIF or other magic is fine, but have you
    considered using iManager?
    It would take 5 Minutes with the Plugin Studio to create a custom user
    modify book page.
    You could use that page for maintaining or bulk-setting your attributes
    including aux class extensions in one go.
    Wolfgang
    On 01.11.2011 22:06, wwarbine wrote:
    >
    > I have two (2) attributes *mobile& *Pin that I would like to add to the
    > user object in the other
    > Tab. But I need to do this over 10,000 users, I have JRB tools 1.7 but
    > have not used the tools.
    > And after adding the attributes I have to of course populate the two
    > attributes.
    >
    > Wayne
    >
    >

  • Adding Extended Attributes for Data Exporter

    Hi, I'm having trouble in getting an exported attribute to export within the new Data Exporter feature. In fact, once i alter the export schema to include the additional column (ext att), it won't write to that table at all.
    I am doing the following per the documentation from Sun, hopefully someone can point out the error of my way.
    First I alter the IDM Schema Configuration.xml file to include the additional User extended attribute.
    Next, I alter the model-export.xml file under model name='User' within WS_HOME to include the additional attribute here, my entry is as follows:
    <field name='employeeId'
    type='java.lang.String'
    introduced='8.0'
    max-length='50'
    forensic='User'
    queryable='true'
    exported='true'
    friendlyName='Employee Id'>
    <description>The Peoplesoft ID coming over</description>
    </field>
    Next, I go to the unzipped directory of IDM hence, \exporter and execute: "ant rebuild" and "ant deploy".
    The following takes place, The rebuild process regenerates my create and drop schema configuration scripts for MySQL. I run both scripts and
    my new column with the newly added extended attribute appears in the EXT_USER table. I also issue the proper permission commands on the tables
    I then undeploy my web application from Tomcat and re-deploy the web app.
    I start the server, log into IDM and go to the Data Exporter configuration page. Under the User data type, my extended attribute does not show up. Further, what once worked, the scheduler now does not write to the EXT_USER table and gives the following error when I believe IDM is starting up. I have no doubt that this is a clue as to why it is not working:
    "StartupServlet: Defining properties from web.xml
    Starting: Identity Server...
    ...Finished starting Startup Servlet
    {Model=User, employeeId=[], assignedRoles=[], idmManager=, businessPhone=[], location=[], MemberObjectGroups=[(id=#ID#Top)], lhdis=true, lhlocked=false, controlledObjectGroupsRule=, ACCT_CD=[], lastModDate=Tue Oct 21 16:44:21 PDT 2008, failedPasswordLoginAttemptsCount=0, description=, lastModifier=Configurator, role=[], divisionCode=[], companyMobilePhoneNumber=[], fullname=Anuradha Rao, employeeType=[], CompanyMailingAddress=[], objectClass=[Top, Object, Principal, User], hasCapabilities=false, questionLocked=false, [email protected], subtype=, managerId=[], sponsorId=[], contractorLocation=[], jobCode=[], locked=false, failedQuestionLoginAttemptsCount=0, xmlSize=936, res=[], repoMod=Tue Oct 21 16:44:21 PDT 2008, accountId=, textPagerEmailAddress=[], lastname=Rao, lastAuditorScan=, user_resources=[], creator=Configurator, id=#ID#54D7-:3AE94AA9C11:110E5685:2FC0FC1B3DEDDBF6, title=[], idmManagerNameNotFound=, faxNumber=[], facility=[], dis=0, lastPasswordUpdate=Wed Oct 01 15:31:47 PDT 2008, name=definabl, authType=, effectiveDate=[], createDate=Thu Sep 25 10:56:13 PDT 2008, jobTitle=[], prov=2, accounts=[], ControlledObjectGroups=[], costCenter=[], firstname=Anuradha, correlationKey=, primaryObjectClass=User, departmentName=[], roleInfo=[], accountType=, middleInitial=[], departmentId=[], displayName=, cubeNumber=[], disabled=true, }
    ex: java.lang.reflect.InvocationTargetException"
    java.lang.reflect.InvocationTargetException is thrown which leads me to believe that something is wrong with the javabean that is regenerated under the ant rebuild and the underlying User.hbm.xml file that regenerated as well. I can see from the User.hbm file that the new extended attribute has been added but this is as far as I have gotten. I really don't know where to go from here.
    Any and all help is extremely appreciated.
    Thank you. Dan

    Hi Nik,
    From section 1.4.2 of the install guide.
    https://docs.oracle.com/middleware/1213/edq/DQINS/planning.htm#DQINS5205
    EDQ Configuration Directories
    EDQ requires two configuration directories, which are separate from the EDQ Home (installation) directory that contains the program files. The configuration directories are:
    The base configuration directory: This directory contains default configuration data. Once EDQ is installed, the files in the base configuration directory must not be altered, renamed, or moved.
    The local configuration directory: This directory contains overrides to the default configuration. EDQ looks for overrides in this directory first, before looking in the base configuration directory. Files in the local configuration directory can be modified to customize or extend EDQ.
    The names and locations of the configuration directories are as follows:
    If you are using Oracle WebLogic Server, the Oracle installation wizard automatically creates and populates the configuration directories in the EDQ domain with the names of oedq.home (base configuration directory) and oedq.local.home (local configuration directory). An example installation path is: WLS_HOME/user_projects/domains/edq_domain/edq/oedq.home
    WLS_HOME/user_projects/domains/edq_domain/edq/oedq.local.home
    If you are using Apache Tomcat, you create the configuration directories manually in any location, with any names, and the configuration utility will populate them. You are prompted to create the directories during the installation instructions.
    Just copy flags.xml from your oedq.home casemanagement folder to your oedq.local.home casemanagement folder and edit the file accordingly.
    thanks,
    Nick

  • Error while adding a attribute to the the Custom view through a wizard

    Hi ,
    I have created a new custom view with value node through wizard  succesfully.
    Now I want to add a new attribute to that node.I am trying to do that by a wizard.
    But i am getting the follwing error " Error during analysis of Source Code" although i have
    commented or removed my all custom code from that view.
    I tried adding the new aattributes in the metthods "IF_BSP_MODEL~INIT " and
    "GET_TABLE_LINE_SAMPLE " manually but that also does not worked.
    Plz help me with this asap.
    Regards,
    Sharad

    Hi Sharad,
                          I hope all your classes are active. In case you want to add a new attribute there are two steps.
    1.Right click on context node and create attribute, it opens a wizard and continue. This will add the field in the context node and generate the getter-setter methods.
    2. In the above two method whcih you mentioned add the new field in the structure of value node. And then create your own getter-setter methods. and activate it. After this you will be able to see the attribute added in the context node.
    By using any of the two approaches you will be able to see teh new field in the configuration.
    Hope this helps.
    Regards,
    Ruby.

  • Added new attribute to WBS

    Here is my current issue.
    I added a "deleted indicator" to the WBS_ELEMT_ATTR on r/3, then created a new infoobject in BW (did not flag it w/master data) and added this new infoobject as a navigational attribute to the WBS_ELEMT infoobject in BW.
    Went to the infosource for WBS_ELEMT and added it to the transfer structure and the comm. structure. Activated it. Then reloaded the master data for WBS from r/3. Went to "Maintain Master Data" for WBS_ELEMT and I can see the new field is populated correctly in the new field I added to WBS_ELEMT.
    Then I went to the cube 0PS_C04 and marked the new attribute I added to WBS_EMEMT as a navigation attribute and re-activated it and the update rules.
    The problem is in the query and when viewing data with list cube or cube contents the field is blank. But its not blank with maintain master data for WBS_ELEMT.
    Does anyone have any clues as to my mistake or what I need to do. I'm needing to restrict a query based on 0PS_C04 by this new attribute I added to WBS.
    Will reward points as always.
    Richard

    Hey Richard,
    WBS_ELEMT is a navigational attribute in 0PS_C04 and "deleted indicator" is a navigational attribute of WBS_ELEMT. So, "deleted indicator" is a second level navigation attribute for 0PS_C04. This will not show you any data in the query even if you can see the data for this field in WBS_ELEMENT. One more thing is that in the update rules for 0PS_C04, you have mapped only WBS_ELEMENT but not "deleted indicator". Hence, the data is not displayed in the report.
    You can handle this in 2 different ways.
    1. Add "deleted indicator" to the cube directly and map it all the way down to the data source.
    2. Add the "deleted indicator" to the cube and in the update rules, map it as an attribute of WBS_ELEMENT.
    Unless it is mapped to the cube from the comm structure in the update rules, you can not see the data in the report.  Try one of these and let us know if it works.
    Thanks and Regards
    Subray Hegde

Maybe you are looking for

  • ITunes could not connect to the iTunes Store "Error Message"

    I recently added iTunes 7.6 to my Windows XP operating system at the same time when I added an *Ion USB Turntable (TTUSB).* I currently have the 80G iPod with the larger video screen. I added in the supplied software of the EZ Vinyl Converter. The so

  • Craete Sales Order with reference to Schedule Agreement

    Dear All, I want to create a sales order with reference to a schedule agreement. Purpose: In case of quantity shortages in delivery of the schedule agreement  line item (Doc type - ZDS), customer want to send a replacement for the balance. This repla

  • Poor Quality After Render

    Hello. I have been having some problems with Premiere Pro CC after the 7.2 update. A new one has arisen when i render a video. Normally the quality would improve and i can see it in the preview window. But now after i render a video the quality is so

  • Create many thousands PDFs from Word files with VBA

    Hi, I create many thousands of word files from an excel file through VBA. I need to transalte these word files in pdf files. How can I do it ? Possible in VBA ? Possible to translate all the files in a directory from word to PDF ?

  • Toolbars-no icons for import from scanner or undo

    I'm using WIN XP Home Edition. I'm beginning to use PSE 5.0, after upgrading from PSE 2.0. In 2.0 there were useful icons in one of the toolbars at the top of the program: one was undo, and also return (to return from an undo); also, there was an ico