Oracle spatial relationships works differently from one version to another

Hi, recently we migrate versión of Oracle, from 11.1.0.6 to 11.2.0.4, and we have some troubles with relationships in Oracle, in previous version the next script return COVERS but in actual version return TOUCH, we have many functions in Oracle using the function SDO_RELATE so its very dificult to change plsql code, my question is why is diferent the logic of relationships with this new version? or we have to do something to configure this?
I appreciate all the help...
(the script uses information that is not in the database)
DECLARE
PTX1 NUMBER;
PTY1 NUMBER;
PTX2 NUMBER;
PTY2 NUMBER;
RESULTADO VARCHAR2(100);
SDO_GEOM_LINEA  SDO_GEOMETRY;
SDO_GEOM_PREDIO SDO_GEOMETRY;
BEGIN
   PTX1 := 560144.777960335;
    PTY1 := 1857775.09679448;
    PTX2 := 560141.702578807;
    PTY2 := 1857762.185737;
    SDO_GEOM_PREDIO:= SDO_UTIL.FROM_WKTGEOMETRY('POLYGON((560121.962326818 1857765.46802773, 560123.085106786 1857777.05962037, 560144.777960335 1857775.09679448, 560141.702578807 1857762.185737, 560121.962326818 1857765.46802773))');
    SDO_GEOM_PREDIO.SDO_SRID:=90180;
    SDO_GEOM_LINEA := SDO_GEOMETRY(2002,90180,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(PTX1,PTY1,PTX2,PTY2));
    SELECT SDO_GEOM.RELATE(SDO_GEOM_PREDIO,'DETERMINE',SDO_GEOM_LINEA,0.005) INTO RESULTADO
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('ELEMENTOS: '||RESULTADO);   
END;

This is not true, because the script should return COVERS, the example in script is a polygon and the line that is compared with SDO_GEOM.RELATE is one side of the polygon, following the concepts:
COVERS: The interior of one object is completely contained in the interior or the boundary of the other object and their boundaries intersect.
TOUCH: The boundaries intersect but the interiors do not intersect.
The line is completely contained in the boundary of the polygon, that is why the result must be COVERS not TOUCH

Similar Messages

  • Copy Version-Budget data copied from one version to another-How to view Data in Copied Version.

    Dear All,
    Budget Data is copied from one Version to another Version using Tools>copy Version option. How can you view Data copied to new Version, when you receive a message Version is successfully copied.
    I think we can do that by selecting appropriate version in the version dimension while accessing the Forms or in Smart View.
    Can you please let me know how to do this or different options available with this process.
    Thanks in Advance for your valuable time...

    A form to check the data with the correct POV, a Smart View query, excel addin retrieve, financial report, export data, report script, take your pick.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SEM:BCS - Copying Consolidated data from one version to another

    Hi,
    We have a situation where we do Consolidation of Forecast data. However this involves mixing Actuals data. For eg.
    1) Q3 forecast would contain Q1 and Q2 as Actuals and Q3 and Q4 as Forecast
    2) System has already done the consolidation for Q1 and Q2 lets say in version 0
    3) Forecast is a different version eg. F1.
    4) I want to be able to copy the Consolidated data of Q1 and Q2 from version 0 to version F1. Then load the data for Q3 and Q4 for forecast and perform consolidations for Q3 and Q4.
    What I have seen in the system is -
    a) You can copy only the non-consolidated data from one version to another and not for eg. Elimination entries etc.
    b) This means that I have to perform consolidations in version F1 for quarters Q1 and Q2 again even though its already been done in the Actuals version (0).
    c) Is there any way out of this. There is always the possibility that the consolidated data in Q1 and Q2 does not match between Actuals (version 0) and Forecast (F1)

    Hi,
    We had the same issue. In your solution you'll have to delete old (Q1 and Q2) forecast data and replace them by actuals. It's too problematic.
    And you are absolutely right about possible inconsistency between actual and forecast data.
    So, we've chosen another way.
    We make separate consolidation in actual, budget, plan and forecast versions.
    In plan and forecast we everything that is possible do periodically (including currency translation) -- to avoid the possible influence of historical data.
    In a BEx query (and Excel workbook) level we retrive: N months of fact, forecast data for N1 month and a plan data for N2 month. After summing up all figures we have predicted (name it as forecast) data for N+2 months.
    Of course, the actual, forcast and plan components are hidden in a report.
    This is possible because, in plan and forecast we use turnovers (not balances) only. Even a balance sheet is produced without problems, not talking about P&L and Cash Flow.
    Hope it helps.
    Eugene

  • Upgrading sap programs from one version to another version

    Hi All,
      I want to know how to upgrade sap programs from one version to another version,Please help me...
    Regards,
    Raj.

    The seriousness and the complexity of the upgrade is primarily dependent on the version of the older SAP system. The Upgrade from 4.6 -> 4.7 is relatively easier and faster than that of an upgrade from 3.0 -> 4.7.
    Most of the <b>function modules</b> in the older system have been reworked and would be marked as obsolete in the target version. (This could be seen in EPC Error Analysis & warnings).For example Function modules like Upload, Download, WS_Download, WS_Upload,WS_File_Delete, WS_Filename_get, Popup_to_confirm_step etc.  These obsolete Fm's can be easily replaced with Fm's like Gui_Upload,Gui_Download, etc. There are few other complex Fms for which you have to do through R&D to find out the replacements.
    Apart from replacing obsolete Fms one has to correct those <b>syntax errors</b> that may occur in the target version. There is a lot of variations in Syntax standards across versions.
    Further more many <b>transactions</b> would have been reworked. Some Fields would be missing in the old system or a field would have been made a Key-Field in the new version , some screens would be missing or would have been addded. Also some <b>Tables</b> would have been flagged as obsolete and we need to find replacement for those obsolete Database tables.
    It would be wise to do a R&D for all the programs in the system before Upgradation. This would really give us an idea about the complexity of the task and we can plan our Upgrade work effectively. 
    regards,
    cartik
           <b></b><b></b>

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • How to copy from one Version to Another version with single click

    Hi Everone,
    Users wants to copy from one version to another version with single click only. I.e Actuals to Planning etc.,
    They don't want use standard COPY Data manager package to do this activity as this involves many steps.
    Please let me know Is there any way to COPY with single click. Thanks in advance!!
    Regards,
    Viswanath

    Hi Viswanath,
    Use /CPMB/DEFAULT_FORMULAS
    Then edit automatically created advanced script:
    PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,DEFAULT.LGF)
    Remove bold lines and change the script name in line with your script name:
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,YOURLOGICNAME.LGF)
    Vadim

  • Migration of Work Items from one system to another

    Dear Experts,
    We are migrating an application from one system to other and it involves BI, Webdynpro, BSP and workflow. This is mainly a portal application which involves BI as the backend. While migrating the application with the existing data we also require to migrate the open Work items of the Users.
    Can anyone help us in migrating the Work Items or the possibilities of doing the same.
    Useful suggestions will be appreciated.
    Thanks,
    Prabhakar M

    Hi All,
    Am opening this thread again.
    Using Transaction SWW_SARA I have Archived the Completed and Cancelled workitems in one Production system(For Ref, P1) and it got stored as a File in the Application Server.
    But while I tried to view the archived workitems via the same Transaction I can see only the header of the Workitem and not the detailed information of the same.
    Is this the only method to view the archived Workitem or any other way is available to view the detailed Information. Also is it possible to transfer the archived file to another Production system and view the workitems?
    Please help me in finding the solution for above scenario.
    Regards,
    Prabhakar

  • How to carry over my Elements Organizer catalog from one version to another

    How do I copy all my photos along with tags and ratings from Elements 8 to Elements 11
    Message title was edited by: Brett N

    If you are installing Elements 11 on the same machine , install Elements 11 and just convert your catalog from catalog manager.
    else if you want to move the content make the Backup from one system and restore it on new machine file >> backup catalog and restore catalog.

  • Spatial and MV - migrating from one server to another question

    If we want to migrate from one MV server + database to another one - is it possible to automatically export/import map cache definitions (MDSYS.SDO_CACHED_MAPS_TABLE)? and MDSYS.SDO_GEOM_METADATA_TABLE ? - this metadata table imports only references to tables using imp/exp.exe tools but not references to views
    thanks,
    Branislav

    You are correct that the migration tool will copy security where manually won't as for fariables, that should not be a problem either way.
    The unicode file utility is supposed to convert lots of things including outlines and load rules. It can be used to convert locale. Below are the options and an example of changing the locale
    Options:
    -a List all the supported locales
    -b Create a backup file (.bak) for each modified file
    -c Convert each specified text file without a UTF-8 signature to UTF-8, stripping off any
    existing locale indicator and adding a UTF-8 signature
    -d Delete any locale indicator from each specified text, rule, or outline file
    (Does not delete UTF-8 signatures)
    -e Display the encoding of each specifed text, rule or outline file
    -h Display this text
    -i Add a locale indicator to any specified non-Unicode text, rules, or outline file
    -l Use the specified locale for any conversion or labeling (ESSLANG is the default)
    -q Operate quietly
    -s Add a UTF-8 signature to any specifed text file that does not have a UTF-8 signature or a locale indicator
    The -c, -d, -i, and -s options may not be used in combination. The remaining
    options may be used in combination with these options or in combination with
    each other.
    First delete the existing locale
    essutf8 -d myfile1.txt myfile2.rul
              Delete any locale indicator from myfile1.tst      and myfile2.rul. Does not delete UTF-8      signatures.
    then add the new one
    essutf8 -i myrule.rul
              Add the ESSLANG locale indicator to      myrule.rul if myrule.rul      does not have a      locale indicator or a UTF-8 signature.

  • Session state of page item different from one region to another region

    hi,
    on one particular page I have two regions. A page item (LOV pop-up) is set in the first region. I leave this region with a button and jump back with a branch to the same page. The page item has now the selected value (as is shown by session state window). So far so good.
    The second region (SQL query type) uses this page item. However, for some reason the page item is NULL in that second region.
    Can anyone explain this behavior ?
    ron

    thanks Joel,
    I did already what you suggested. The title in region 2 is evaluated to the same value as in region 1.
    The SQL query (that actually runned with identical syntax before) is:
    select bla from blatable where bla = :P920_RU
    this generates:
    report error:
    ORA-12801: error signaled in parallel query server P000
    ORA-01741: illegal zero-length identifier
    So apperently the bind variable is evaluted to (or cached as) NULL.
    I noticed something strange in the session window. There are several page items in the application. All of them are listed in the 'Session State' region. The page item that makes problems is the only one that is also listed in the 'Page Items' region. It is even listed when I start the session window from another page. Weird.
    any other ideas ?
    Actually, how could you possibly clear session state between rendering two regions ?
    Ron

  • Role content different from one AS to another after a role transport

    Dear all,
    I have a trouble after a simple role transport in the production system. The PROD system is built with one CI and 5 AS. (System ECC 5.0 kernel 6.40)
    After a transport role, the changes are not replicated on all aplication servers in PFCG. For ex. once connected on the Application Server 1, the TC CK11 is well added to the role Z_Role; but when I'm connected on the AS 2, the content of the role Z_Role is different (the TC CK11 is absent).
    Is someone have an idea?
    Thanks,
    Fabrice

    Sounds like a bug, or there are some buffers which are corrupted.
    Is this a very large role, or do the users have other very large roles?
    I will move this to the NW Admin forum first, to see what they think of it - as I suspect that it is a server administration difference between the appservers.
    Cheers,
    Julius

  • Why does the photo component act differently from one iPhone4 to another?

    My wife and I have an iPhone 4.  All the settings on the photo part of the software are the same.  Yet on my wife's phone she can add to an existing album, but on my iPhone I cannot do the same.

    Souunds like she updated to iOS 5 and you did not...

  • Which function module is used for transfering form one version to another

    HI
    COULD ANYBODY TEL ME
    WHICH FUNCTION MODULE IS USED FOR TRNASFORING FROM ONE VERSION TO ANOTHER VERSION.................

    Hi Chaithu,
    Go to SE37,enter your function module, click on where used list button on the application bar.
    All the program used your function module used is displayed.
    Regards,
    Venkat.

  • What is the easiest way to transfer a large imovie project from one computer to another in a different location.

    What is the easiest way to transfer an faairly large HD imovie project from one computer to another in a different location. Can you export to drop box? Will the other computer need the exact imovie version?

    OK it depends.
    If you have a finished movie, you can SHARE/EXPORT MOVIE and create your final movie. Then, depending on the size of the finished movie, you can transfer via dropbox or similar service. Ninety minutes is a very long movie for iMovie, but it may work for you. I would suggest 720P to keep the size down.
    If you need to transfer the entire iMovie Project so it can be edited in iMovie at the other end, then you need to transfer the project and event assets to an external hard drive and get the hard drive to the other location.
    Directions are here. Follow the directions for 1) Moving or copying Project to external drive. Then 2) Consolidate Media.
    https://discussions.apple.com/docs/DOC-4141

  • How can I move an original Version from one Project to another Project?

    How can I move an original Version from one Project to another Project?

    From the Aperture User Manual:
    To move an image into a different project
    Drag the image [from the Browser] into another project in the Library inspector.

Maybe you are looking for