INSERTING SRID of 8307 into SDO, which was converted from wkt

Basically i have some SDO data that was converted to WKT text format and now i am trying to load it back using sqlldr. The problem seems to be that when you convert SDO_GEOMETRY to wkt it NULLS the SRID. We have a SRID of 8307. So the question is how do i insert this back into the SDO_GEOMETRY.
This is what i have tried and doesn't seem to work:
create or replace function convert_wkt_to_sdo ( p_data in clob )
return mdsys.sdo_geometry
as
p_data_final sdo_geometry;
begin
p_data_final := sdo_util.from_wktgeometry ( p_data );
return REGEXP_REPLACE (p_data_final, 'NULL SDO', '8307 SDO');
end;
Anyway of doing this?
In the sqlldr ctl file geo fields look like this
POINT_SPATIAL_DATA BOUNDFILLER,
POINT_SPATIAL EXPRESSION "conver_wkt_to_sdo( : POINT_SPATIAL_DATA)"

You might try something like:
create or replace function convert_wkt_to_sdo
    p_data in clob
return mdsys.sdo_geometry
as
    p_data_final sdo_geometry;
begin
    p_data_final := sdo_util.from_wktgeometry(p_data);
    p_data_final.sdo_srid := 8307;
    return p_data_final;
end;Instead of hard coding the SRID in the function as 8307, you might consider passing it as an argument instead (in which case you'd need to change the expression in your SQL*Loader control file).
Hope this helps

Similar Messages

  • Disabling that"..is an application which was downloaded from the Internet."

    Downloaded Camino and use it. Now I do not want that warning anymore on every start. I do not give **** how Apple rates security of the file. I know the application is safe so I want to click some checkbox to disable warning on Camino start:
    '“Camino” is an application which was downloaded from the Internet. Are you sure you want to open it?'
    The only unsafe Camino is to Safari as recent version of Safari is really troubled with hick-ups and freezes while Camino seems to be very similar except that it does not have those issues Safari has.
    I can only say what guy named Yeroen (read it if want):
    http://forums.macrumors.com/showthread.php?p=4414559
    It is really Microsoft way. Can Apple get rid of that troll recenly hired in the company that makes Mac OS X now look like piece of... art that behaves so obnoxiously to a user? I cannot guess where Apple got those new ideas, but they definitelly look like some transplant from Vista and XP obnoxiousness. The only what comes to my mind is some folks that were contracted or hired from Microsoft. Shortsighted with narrow vision and lack of basic education on ergonomics of any user interface.
    Hey Apple I dropped Windows because of that! Why do you do this to me now?
    Sincerely,
    Maciek Samsel

    Okay. It looks like when copying from mounted .dmg file to Applications folder one needs to start Camino on that account and say once to allow start. This has to be done on account that was used to copy the file from downloaded .dmg.
    In my scenario, I have administrative account which is separate from users (and of course my own as I am not administrator daily). So Camino was bothering me until I went to administator account and started Camino once. Apparently it had to make some writings into hidden system files to rememeber the choice and the choice was made across accounts.
    I remember that similar issues were in Final Cut Express: you had to start the application from administrative account (the one that you used to install the application) once and after that you could easily go and use the application on other accounts at any time.
    Looks like this is some sort of pattern which I considered ill as user really should not need to do that pointless start on account that is not supposed to be used for the application. Installation account and use account should be interpretted as two separate with no overlap of preferences. Now this issue was in FCE,but as far as Camino... it sounds like Apple extends this lame pattern to security control and internal system preferences.
    Sincerely,
    Maciek Samsel

  • Problems printing a converted PDF which was converted to Word after completing the form

    Problems printing a converted PDF which was converted to Word after completing the form.  I have spent the last 3 hours trying to figure out what I am doing incorrectly.  I can't get it to print in either the PDF or Word file.  Please help, I need to complete this form and sent it NJ Department of Motor Vehicles Commission.

    Hi, make sure you are using the latest release of PDF program.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • "Firefox.app" is an application which was downloaded from the Internet...

    This is a topic that has been posted before but I'm creating a new one because the previous discussion is closed and none of the answers solved my problem.
    Each and every time I launch Firefox, I receive the following warning, - “Firefox.app” is an application which was downloaded from the Internet. Are you sure you want to open it?"
    For the record, I have tried the following fixes with no success:
    - Removed the Firefox folder from user/library/application support both as a user and as an admin.
    - I logged in to the Mac as an admin. and launched Firefox. The message continues to pop up after doing this, while still logged in as admin.
    - I logged in to the Mac as an admin, went to Terminal and listed the attributes. The "com.apple.quarantine" attribute does exist, however, when I tried removing it with (xattr -d com.apple.quarantine <FILE NAME>), I am told that the attribute DOESN'T exist. Huh?
    I am trying to avoid completely removing Firefox and doing a fresh install but it may come down to this. Any help would be greatly appreciated.
    Thanks!

    I had a similar problem with another application. I downloaded an update to an application from the developer, and then got this message every time I ran the program. There's a script to disable this behavior entirely on MacWorld's macosxhints site.
    I didn't want to disable this behavior for good, just for this one program. I realized that I had downloaded it as one user, but the first use (of the update) was as a different user. I logged in under the user ID that I used when I downloaded the application and ran the program. After that, the warning went away.
    My guess is that you did something similar. Log in as the user ID you used when you first downloaded the updated FireFox and run the program. The warning should go away.
    If you can't remember which user ID you used, try the brute force approach - log in as each of your user IDs and run FireFox.
    Good luck!

  • "Firefox" is an application which was downloaded from the Internet - Open?

    Everytime I go to open up programs (for example, firefox) I get a dialog box like this:
    “Firefox” is an application which was downloaded from the Internet. Are you sure you want to open it?
    Underneath it says "AppFresh downloaded this file on May 3, 2009". These programs are installed via an administrator, but I don't want to have to click yes every time on my standard account. What can I do?

    Peter:
    I don't want to have to click yes every time on my standard account.
    As noted in earlier posts, you should get that message the first time you launch firefox or any other downloaded application. If you get the message each time, for some reason the computer thinks it is the first time you are launching the application. Are you sure that the application is installed in the application folder? Or are you launching from the .dmg each time? If you are,
    double click on the .dmg file.
    When it opens drag the icon to the Applications folder and it will be permanently installed. You will need to authenticate to install, but you should not have to authenticate each time you launch the application.
    Drag any icon that you have in the Dock to the Desktop
    Then launch the application.
    If you want to keep it on the dock click and hold on the icon
    Select Keep in Dock in the pop-up menu.
    cornelius

  • "........" is an application which was downloaded from the Internet. Are you sure you want to open it?

    I get the following warning every time I try to open a recently download application. I'm running Mavericks 10.9.3
    "xxxxx' is an application which was downloaded from the Internet. Are you sure you want to open it?
    How do I disable this warning for a particular application?
    Update: problem solved. The Mac in question has multiple users, but only one user has administrator privileges. The problem was simply that the application in question had never been opened by the administrator. Once the administrator opened the application the warning went away.

    If using a mouse, you can right click on the application installer this will give you an "Open with" popup and you can chooes to open the application installer using the standard installer.
    Another method to do the same exact thing is to hold the Control key while left clicking on the Application installer will give you the exact same popup menu.

  • My phone's earphone doesn't work which was bought from USA last month,the china apple store didn't accept the free repaired,so what can i do now?

    my new iphone5s's earphone doesn't work which was bought from USA last month,probably it was cause by falling down on floor insidentally one day before I came back china , the problem is ,the china apple store didn't accept the free repaire even the phone was bought only one month age, I was so disappointed and realized the iphone 5s is so  fragile,although I previous iphone4 which was also bought from USA 4 years age, it also fell down many times, it still works well now.  what can i do now? send it back to USA for repairing? if like that,it will take almost two month to finish the all processes,that not only waste the time spent on the way, also waste expense on the expense,the important prlblem is,  I can't use the phone during the repairing~ please give me a solution as soon as you can ,thank you very much!

    You can send it to someone you know in the US to have them take it in for service or you can get on a plane and take it there yourself. You can not ship it to Apple in the US for service.

  • CCMS Alerts keep coming for the system which was removed from System Monito

    Hello SOLMAN Experts,
    Iu2019ve  noticed quite strange behavior of my SOLMAN CCMS Alerts: CCMS Alerts keep coming for the system which was removed from the System Monitoring.
    Have you ever experienced this?
    Please advice
    Thank you
    123

    Hi 123,
    Please ensure that autoreaction methods are deleted for those systems.
    You can verify system to autoreaction method assigments via RZ21 --> Technical Infrastructure --> Configure Central system -->Assign Central Autoreaction
    also check if that system is appearing as online as follows
    RZ21-> Topology --> system overview --> Monitored and Remote SAP systems
    if yes , make it offline to stop triggering alerts.
    I hope this information will help you.
    Thanks,
    Rupali

  • Can i use my iphone 5 in india which was brought from uk on EE carrier?, can i use my iphone 5 in india which was brought from uk on EE carrier?

    can i use my iphone 5 in india which was brought from uk on EE carrier?

    If EE authorizes the phone's official unlocking. Note: they will only do so for existing/former customers that used the phone on their network in the UK.

  • How to unlock iphone 5 in india which was bought from UK on contract?

    how to unlock iphone 5 in india which was bought from UK on contract?

    Unless you are a current/former customer, using/used that phone on a network in the UK, you can forget about getting it officially unlocked, as none of the UK carriers will authorize unlocking unless you are a current/former customer.

  • HT4623 How do I resynch my phone to my computer and reinstall itunes which was lost from computer when I got in debugged.  I have my music on phone

    How do I resynch my phone to my computer and reinstall itunes which was lost from computer when I got in debugged.  I have my music on phone

    Try these 2 User Tips...
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Once you have it working again...
    MAKE A BACKUP OF iTunes...
    Full Details Here  >  http://support.apple.com/kb/HT1751

  • How do I edit a word document that was converted from a PDF

    How do I convert a word document that was converted from a PDF

    To convert a Word file to PDF:
    (1) Use Acrobat XI (File - Save As Other - Microsoft Word - .... )
    (2) Use Adobe's online subscription service "PDF Pack"
    To cleanup a Word file created from the export of PDF page content -
    Open the DOCX, DOC, or RTF with MS Word.
    Perform edits, corrections, etc (cleanup).
    Be well...

  • Hello, I deleted from ICloud an IPhone which was stolen from me, and most of my contacts that where in my new IPhone are now gone. Is it possible to recover things that where deleted from iCloud?

    Hello,
    is it possible to retrieve data that was deleted from ICloud?. I was adjusting my data to fit the Cloud´s storage capacity, and while deleting from ICloud an old IPhone which had been stolen from me, most of my contacts disappeared. Can I somehow get the back?
    Txs and regards,
    José

    Also, what are the source of your contacts? are they created on the phone, or you synced from yahoo/hotmail etc.
    If thats the case, the circular arrow wont be visible but instead show "groups"
    Contacts from different accounts are not synced to iCloud.

  • SUP failed over manually, voice service failed after FAILOVER, started accessing old voice vlan which was removed from config

    Hey guys, 
    I am pretty sure, my subject is kinda confusing. Sorry about that. Here is what happened. 
    1. 4510r with Supervisor V 1000BaseX, switched over to standby Sup, then reseated Active SUP, once reseat complete, switched again to get the reseated SUP up and running as Active SUP. 
    2. a simple maintenance which was supposed to cause no outage and it did not cause any outage as well. 
    3. however, what i did not notice was, even though the voice vlan was configured to access 2353, they were accessing vlan 453. 
    4. the change was made 2 weeks prior to this maintenance where voice vlans were previously accessing 453 and they were all changed to access 2353. configs were saved. 
    5. however, after the maintenance, the running config showed that they were acessing 2353 but when checking the mac address on the interface, it was seen accessing 453. 
    6. the fix was to remove the config and re add it , that fixed it. 
    Has anyone else experienced the issue ? What really happened there ?  
    software version: Version 15.0(2)SG5
    #sh module 
    Chassis Type : WS-C4510R
    Power consumed by backplane : 40 Watts
    Mod Ports          Card Type                                            Model             
    ---+-----+--------------------------------------+------------------+-----------
     1     2  Supervisor V 1000BaseX (GBIC)                 WS-X4516            
     2     2  Supervisor V 1000BaseX (GBIC)                  WS-X4516           
     3    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V  
     5    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V   
     6    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V   
     7    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V  
     8    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V   
     9    48  10/100/1000BaseT (RJ45)V, Cisco/IEEE   WS-X4548-GB-RJ45V   

    configs were saved many times prior to the maintenance. i did a " write mem ". 

  • How can I restore a contact which was deleted from Contacts?

    I opened Contacts on OS X 10.9.1.  I noticed there was a duplicate contact.  I deleted the duplicate, then added some information to the remaining copy of the contact.  I closed contacts.  When I returned a few minutes later, the remaining copy was also gone, now I would like to restore it, but there is no information on how to do that.
    Thanks

    What if it was synced - either to iCloud or iTunes (I'm not sure which one I backed up to) after the video was taken? How do I recover it? I have synced/backed-up my iPhone 4 since the video was deleted from my device. Is it still recoverable? Thanks.

Maybe you are looking for

  • How do I burn a group of photos to a CD-R?

    How do I burn a group of photos to a CD-R from IPhoto on my MacBook Pro?

  • Flash Lag

    I have been having a serious lag issue with my site http://www.byfchat.com .  I run a flash chat application.  The server doesn't lag but after users have been logged in for about a hour thier pc's lag bad. Any browser will lag.  What is happening is

  • [C4003] Connection timed out: connect

    I have i problem when trying to connect to JMS resource through JMSConnection factory on a remote machine. I have standalone client with wich I can connect if a run it on the same machine that AppServer is running. When I try to connect from a remote

  • Create two or more GL account in same material grp

    Is it possible to create a two or more GL account for material group based on plant level. Thanks

  • My mac is slow after installing Yosemite

    Problem description: mac slow after upgrade to yosemite EtreCheck version: 2.1 (101) Report generated December 4, 2014 at 11:16:26 PM EST Hardware Information: ℹ️   MacBook Pro (15-inch, Mid 2010) (Verified)   MacBook Pro - model: MacBookPro6,2   1 2