How to transform a long LINESTRING Transform

Hi @ all,
I'm trying to transform a LineString to another CRS,
but when the LineString is to long I get error ORA-01704: string literal too long
My Select:
select a.*, a.geo.get_wkt()
from (
select SDO_CS.TRANSFORM(MDSYS.SDO_GEOMETRY('LINESTRING (6.88095 ........... 50.72032)', 8307), 82027) as geo from dual) a;
Is there any way to transform very long Linestrings ?

set serverout on
declare
temporaryCLob CLOB;
amount NUMBER;
offset NUMBER := 1;
buffer VARCHAR2(100) := 'LINESTRING ( ';
buffer2 VARCHAR2(100) := ' 1 2, 3 4, 5 6)';
g sdo_geometry;
BEGIN
DBMS_OUTPUT.ENABLE(1000000);
-- CREATE TEMPORARY LOB
DBMS_LOB.CREATETEMPORARY(
lob_loc => temporaryCLob, cache => true, dur => dbms_lob.session);
-- TEST TO SEE IF LOB IS TEMPORARY
IF (DBMS_LOB.ISTEMPORARY(temporaryCLob) = 1) THEN
DBMS_OUTPUT.PUT_LINE('This is a temporary LOB.');
ELSE
DBMS_OUTPUT.PUT_LINE('This is a persistent LOB.');
END IF;
-- OPEN TEMPORARY LOB FOR READ / WRITE
DBMS_LOB.OPEN(
lob_loc => temporaryCLob
, open_mode => DBMS_LOB.LOB_READWRITE
-- WRITE SMALL BUFFER TO TEMPORARY LOB
DBMS_LOB.WRITE(
lob_loc => temporaryCLob
, amount => LENGTH(buffer)
, offset => offset
, buffer => buffer
-- APPEND A SMALL BUFFER TO TEMPORARY LOB
DBMS_LOB.WRITEAPPEND(
lob_loc => temporaryCLob
, amount => LENGTH(buffer2)
, buffer => buffer2
-- GET CURRENT LENGTH OF TEMPORARY LOB
DBMS_OUTPUT.PUT_LINE(
'Current length of temporary LOB: ' || DBMS_LOB.GETLENGTH(temporaryCLob)
-- PRINT CONTENTS OF THE TEMPORARY LOB
DBMS_OUTPUT.PUT_LINE('Current content of temporary LOB:');
DBMS_OUTPUT.PUT_LINE(DBMS_LOB.SUBSTR(temporaryCLob, DBMS_LOB.GETLENGTH(temporaryCLob), 1));
-- CLOSE / FREE TEMPORARY LOB
DBMS_LOB.CLOSE(lob_loc => temporaryCLob);
g := sdo_geometry(temporaryCLob);
DBMS_LOB.FREETEMPORARY(lob_loc => temporaryCLob);
END;
/

Similar Messages

  • How to transform hotkey ctrl+L to F9

    My app is oracle form 10g.
    I wonder how to transform hotkey ctrl+L to F9 because in my company everyone is used to press F9 to query .
    Would someone tell me?
    Thank you.

    I don't understand exactly what you want to do.
    Refer to fmrweb.res found in the \forms directory. This is the file used to configure key mapping. This is a text file, so it can be opened in most text editors. The top portion of the file provides an explaination as to how each value works.

  • [ETL]How to transform a Source model into an arbitrary number of target models ?

    Hi all,
    I need to know how to transform a source model into an arbitrary number of target models which conforms to different target metamodels using ETL ? Is there any examples that can help me ?
    Thank you
    Mana

    Hi Antonio,
    Actully I mean the number of metamodels are known.For example, assume that there are two known metamodels in the target side, the first one is the target metamodel, and the second one is the trace metamodel .
    I would like to see an example of ETL transformation that run on a source model and generate the target model and the trace model as well. This statement is part of the chapter 5 of the ebook which says "it is often essential to be able to access/update additional models during a transformation (such as trace or configuration models). Building on the facilities provided by EMC and EOL, ETL enables specification of transformations that can transform an arbitrary number of source models into an arbitrary number of target models."
    could you please explain this more for me or provide me with an example.
    Thank you
    Mana

  • How are transforms in the transform panel applied?

    I am trying to understand when/how the transforms made in the transform panel are applied to display objects so that I can manipulate them using action script. To be clear, I understand that I can use the display object properties such as rotation to transform a display object, and I understand that I can also use a matrix transformation. Unfortunatley, this doesn't always seem to have the same behavior when nesting as direct transformations using the panel. So I would like to find a way to manipulate whatever properties the transform panel is changing.
    Maybe this isn't clear, so here's an example.
    On a new stage, I place a rectangle and use the transform panel to rotate it 39 degrees. Then I assign this shape to a variable and use the debug panel to inspect the member properties of the shape. As far as I can tell, this rotation value is not contained within any of the transformation parameters. Is it pre-applied?
    If I use the "export as XML" option, the rotation value is listed in the "Source" tag, as below:
    <Motion duration="1" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
        <source>
            <Source frameRate="24" x="265" y="184.5" scaleX="1" scaleY="1" rotation="39" elementType="drawing object">
                <dimensions>
                    <geom:Rectangle left="111.35" top="35.1" width="307.25" height="298.85"/>
                </dimensions>
                <transformationPoint>
                    <geom:Point x="0.5000813669650123" y="0.5099548268362054"/>
                </transformationPoint>
            </Source>
        </source>
        <Keyframe index="0"/>
    </Motion>
    So this is being stored as a value somewhere. Any ideas?
    Thanks - Andrew

    if you're mixing actionscript with something drawn in the ide, you must be converting your drawing into an object (in order to reference it with actionscipt).   whatever you convert to an object will assume mostly default properties (no matter what you see on-stage).  the x and y properties are an exception.

  • How to transform pc files to hfs filesystem?

    Hi,
    I have files created on Windows OS platform.  Attempted to
    chown root:wheel myFileDirectory
    though it did not produce error, it does not change owner and group.  John D. kindly advised me that it's because of different file system, Mac uses HFS (I didn't know since I'm new to Mac).  So, now the question is how I transform files created in Windows environment into HFS?
    Thanks.

    Under Devices,
    I have Macintosh HD and iDisk.  So, I would guess the HD is the boot volume.   I think I've dragged some files from flash dirve (created in Windows OS env) to certain Folder on this HD, and this Folder was a folder created by the previous version of my software and it was / is working fine (local web app).
    Hmm, what could result the above problem?  Still file system issue?  What do I do now?
    Many thanks.

  • Hi, how to transform a video file from Mark 5D iii into MVI_2500-Apple ProRes 422 for Progressive material.mov

    Hi, how to transform a video file from Mark 5D iii into MVI_2500-Apple ProRes 422 for Progressive material.mov ?
    Is it the best way to work with videos in Final Cut Pro?
    Thank you!
    Anastasia

    Is your 5D media progressive from the camera? Simply use the optimize option when you import into FCP.

  • How to avoid the long time consuming process of settlement on periodic basi

    For investment Project(purpose of capitalisation) related expenses We would like to show it  Directly in Balance Sheet rather than P/L  A/C.Whether it is feasible or not?as per one of consultant it will be first hit the p/L and after settlement it will only be shown in B/Sheet.So how to avoid the long time consuming process of settlement on periodic basis.

    Hi, could you write down an example? And what you mean by investment project-is this an WBS?

  • How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE

    Dear experts,
    Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.
    The snapit of my code is below. The Notification is created but without a long text.
    THANK YOU!!
    Data:
        lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,
          lv_st_longText like LINE OF  lv_it_longText,
      lv_st_longText-OBJTYPE = 'QME'.
      lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
       notif_type               = 'M1'
        notifheader              = lv_header
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
       NOTIFHEADER_EXPORT       = lv_header_import
    TABLES
    *NOTITEM                  =   lv_it_item
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
       LONGTEXTS                = lv_it_longText
      KEY_RELATIONSHIPS        =
       RETURN                   = lv_it_return.

    Hi
    Make sure you have filled OBKEY.
    OBJKEY must have the corresponding sort field for the values named below :-
    1. QMEL - Notification header
    2. QMFE - Notification item
    3. QMUR - Notification cause
    4. QMSM - Notification task
    5. QMMA - Notification action
    The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.
    Regards
    Abhii

  • Re:How to determine the long running jobs in a patch

    Hi ,
    How to determine the long running jobs in a patch .
    Regards

    Hi,
    Check the below MY ORACLE SUPPORT note:
    Note.252422.1 .... Check Completed Long Running Jobs In Oracle Apps.
    Best regards,
    Rafi

  • How can find out LONG column database?

    Hi,
    in my database ORA-1461 error occured
    01461, 00000, "can bind a LONG value only for insert into a LONG column
    how can find out LONG column in my database ?

    DESCRIBE
    The description for tables, views, types and synonyms contains the following information:
    each column's name
    whether or not null values are allowed (NULL or NOT NULL) for each column
    datatype of columns, for example, CHAR, DATE, LONG, LONGRAW, NUMBER, RAW, ROWID, VARCHAR2 (VARCHAR), or XMLType
    precision of columns (and scale, if any, for a numeric column)
    Extract of the link;
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12019.htm#SQPUG040
    Secondly with reference to the error;
    Do not try to insert LONG datatypes into other types of columns.
    Hope this helps.
    Adith

  • How to delete no longer use Purchase Requisition

    Dear Experts,
    How to delete no longer use Purchase Requisition, thanks!
    Wilson Hong

    Hi Hong,
    Hope you are looking for archiving PR. Please refer below link.
    http://help.sap.com/saphelp_nw04s/helpdata/EN/8d/3e4c11462a11d189000000e8323d3a/frameset.htm
    As per SAP you cant delete any data....you can only archive it.
    Cheers
    Arun.

  • How to change the long in to string

    Hi
    In my program i get the long value as input.
    Then i send this long value to one method for testing which accepts the argument as String.So i have to change my long in to string then i pass it to the method.
    can anybody tell me how to change my long in to string?
    Thank you so much

    There's probably a method java.lang.Long.toString.
    If not, there's probably something a lot like it in either the Long or String classes.
    I'll leave you the pleasure of looking it up in the API docs.

  • How can find out long run quries?

    Hi,
    I have some question
    how can find out long run queries , i have use v$session but i have not find out,pls how can find out
    these queries.

    v$session_longops has some limitations, for example it records only some operations see more [url http://www.gplivna.eu/papers/v$session_longops.htm]here
    Another possibility might be using statspack and/or [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#PFGRF02601]AWR
    From docs:
    The most current instructions and information on installing and using the Statspack package are contained in the spdoc.txt file installed with your database. Refer to that file for Statspack information. On Unix systems, the file is located in the ORACLE_HOME/rdbms/admin directory. On Windows systems, the file is located in the ORACLE_HOME\rdbms\admin directory.
    Gints Plivna
    http://www.gplivna.eu

  • How to make vibration longer in notification zone

    Hi,
    Please help me of how to make a longer vibration for notification on iphone. It seems too short for me to notice. Thank you.

    you can't.

  • How to trace Very Long SQL and PLSQL?

    Hi,
    i need an advice on how to trace very long PLSQL as iam new to my company and the business is very new to me , i am a very good developer using Developer suite , but my weak point is tracing very long packages and undestand them ,
    i want to trace a Procedure that have a LOT of lines of code and it calls many other packages, i really need to be quick in undestading what this procedre is doing as i should solve my problem in appropriate time
    i am using dbms_output.put_line for tracing, to know what is the path that is taken and the variable values but i think i need a totaly different approach
    also there are some sqls in this system that is very long, some of them is joining more than 10 tables at the same time, any hint to understand what this sql is doing?
    any help is appreciated.

    There is a trace facility for PL/SQL, but if you use it find a GUI interface. Trying to get it to work in SQL*PLUS standalone was painful. I think its supported by the major GUI tools like TOAD and PL/SQL developer but have not used it myself.
    Other tools you can work with to help you debug and tune PL/SQL include Oracle trace (which analyzes SQL for efficiency, with an interpreter called tkprof) and DBMS_PROFILER. DBMS_PROFILER requires some initial set-up but can analyze PL/SQL code line by line and if used carefully function as a sort of limited trace.
    Good luck!

  • How Execute a very long SQL in a Storep Procedure inside a String?

    How Execute a very long SQL in a Storep Procedure inside a String?
    I have a very very long sql in a String , How can I run this SQL?
    Thaks in advance.

    Xavi wrote:
    I have a very very long sql in a String , How can I run this SQL? Version? If you are on 11g, dynamic SQL can be a CLOB. If you are on older versions us DBMS_SQL package.
    SY.

Maybe you are looking for