Is SDO_DISTANCE bug between the line and multipoints?

SDO_GEOM.SDO_DISTANCE(MDSYS.SDO_GEOMETRY(2002,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(113.363258142822,23.133208779985,113.3633,23.13331)),
MDSYS.SDO_GEOMETRY(2005,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,2),MDSYS.SDO_ORDINATE_ARRAY(
113.363258142822,23.1868700130491,113.365811605804,23.1322024265981))
,0.000005)
the result is 5955.609972214.
SDO_GEOM.SDO_DISTANCE(MDSYS.SDO_GEOMETRY(2002,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(113.363258142822,23.133208779985,113.3633,23.13331)),
MDSYS.SDO_GEOMETRY(2005,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,2),MDSYS.SDO_ORDINATE_ARRAY(
113.365811605804,23.1322024265981,113.363258142822,23.1868700130491
,0.005)
the result is 284.072193675135.
In my points the results should be the same. Why are they different?
If change the Element_Info
SDO_GEOM.SDO_DISTANCE(MDSYS.SDO_GEOMETRY(2002,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(113.363258142822,23.133208779985,113.3633,23.13331)),
MDSYS.SDO_GEOMETRY(2005,8307,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,1),MDSYS.SDO_ORDINATE_ARRAY(
113.363258142822,23.1868700130491,113.365811605804,23.1322024265981))
,0.000005)
the result will be 284.072193675135.
Why?Is it a bug of SDO_DISTANCE?

Have a look here:
Re: How to use java to store Multipolygon
this is the javadoc:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14373/oracle/spatial/geometry/JGeometry.html#JGeometry_int__int__int____double___
public JGeometry(int gtype,
int srid,
int[] elemInfo,
double[] ordinates)
Constructs a JGeometry instance with given information
Parameters:
gtype - the geometry type
srid - the SRS id; if 0 is used then the MDSYS.SDO_GEOMETRY.SDO_SRID will be set to null when converted into DB format.
elemInfo - geometry element info array
ordinates - geometry ordinates array
Maybe something like:
JGeometry ps = New JGeometry (2005, 8307, new int[]{1,1, YOUR NUMBER OF POINTS IN YOUR CLUSTER}, new double[]{YOUR ORDINATES})
Luc

Similar Messages

  • Utl_file truncates the line and fillowing records

    Here is my code ,I am seeing an unusual problem It was all ok untill two weeks ago . AfterI made somechanges (added || Chr(13)|| Chr(10) to the ce_line at the end) , A csv file that should have more that 500 records is being truncated , after nearly 113 lines , i dont see any data . It looks some thing like Below. It terminates in between the line and no data after that .
    I looked at the DBM_Output , Its shows me all 500+ records , Looks like the problem while writing to the file some things is going wrong.
    Or is it because of some data issue that its does'nt consider.
    "602992121     602992121     DATASCRUB     602992121     W     3/31/2011     6/1/2011     5/1/2031     4.875     400000
    602992315 602992315 DATASCRUB     602992315     W     DATASCRUB     602992315     K     3/14/2011     5/1/2011     4/1/2031     4.75     153000
    602992336 602992336 DATASCRUB     602992336     DATASCRUB     602992336     3/28/2011     5/1/2011     4/1/2031     4.75     278400
    602992717 602992717     DATASCRU     
    CE_LINE VARCHAR2 (500);
    CE_FILE UTL_FILE.FILE_TYPE;
    L_C1 to L_C55 are defined SYS.ODCIVARCHAR2LIST;
    L_LIMIT NUMBER := 1000;
    <<Code>>
    OPEN CUSTODIAN_EXTRACT_DETAILS FOR V_CHR_SQL;
    IF UTL_FILE.IS_OPEN (CE_FILE) THEN
    LOOP
    FETCH CUSTODIAN_EXTRACT_DETAILS
    BULK COLLECT INTO L_C1,
    L_C2,L_C3,L_C4,L_C5,L_C6,L_C7,L_C8,L_C9,L_C10,L_C11,L_C12,L_C13,L_C14,L_C15,L_C16,L_C17,L_C18,L_C19,L_C20,L_C21,L_C22,L_C23,L_C24,L_C25,L_C26,L_C27,L_C28,L_C29,L_C30,L_C31,L_C32,L_C33,L_C34,L_C35,L_C36,L_C37,L_C38,L_C39,L_C40,L_C41,L_C42,L_C43,L_C44,L_C45,L_C46,L_C47,L_C48,L_C49,L_C50,L_C51,L_C52,L_C53,L_C54,L_C55 LIMIT L_LIMIT;
    FOR I IN 1 .. L_C1.COUNT LOOP
    IF INSTR (L_C21 (I), ',') > 0 THEN
    L_C21 (I) := '"' || L_C21 (I) || '"';
    END IF;
    CE_LINE :=L_C1 (I) || ',' || L_C2 (I) || ',' || L_C3 (I)|| ','|| L_C4 (I)|| ','|| L_C5 (I)|| ','|| L_C6 (I)|| ','|| L_C7 (I)|| ','|| L_C8 (I)|| ','|| L_C9 (I)|| ','|| L_C10 (I)|| ','|| L_C11 (I)|| ','|| L_C12 (I)|| ','|| L_C13 (I)|| ','|| L_C14 (I)|| ','|| L_C15 (I)|| ','|| L_C16 (I)|| ','|| L_C17 (I)|| ','|| L_C18 (I)|| ','|| L_C19 (I)|| ','|| L_C20 (I)|| ','|| L_C21 (I)|| ','|| L_C22 (I)|| ','|| L_C23 (I) || ','|| L_C24 (I)|| ','|| L_C25 (I)|| ','|| L_C26 (I)|| ','|| L_C27 (I)|| ','|| L_C28 (I)|| ','|| L_C29 (I)|| ','|| L_C30 (I)|| ','|| L_C31 (I)|| ','|| L_C32 (I)|| ','|| L_C33 (I)|| ','|| L_C34 (I)|| ','|| L_C35 (I)|| ','|| L_C36 (I)|| ','|| L_C37 (I)|| ','|| L_C38 (I)|| ','|| L_C39 (I)|| ','|| L_C40 (I)|| ','|| L_C41 (I)|| ','|| L_C42 (I)|| ','|| L_C43 (I)|| ','|| L_C44 (I)|| ','|| L_C45 (I)|| ','|| L_C46 (I)|| ','|| L_C47 (I)|| ','|| L_C48 (I)|| ','|| L_C49 (I)|| ','|| L_C50 (I)|| ','|| L_C51 (I)|| ','|| L_C52 (I)|| ','|| L_C53 (I)|| ','|| L_C54 (I)|| ','|| L_C55 (I) || Chr(13)|| Chr(10);
    UTL_FILE.PUT (CE_FILE, CE_LINE);
    dbms_output.put_line (CE_LINE);
    DBMS_OUTPUT.NEW_LINE;
    END LOOP;
    EXIT WHEN CUSTODIAN_EXTRACT_DETAILS%NOTFOUND;
    end loop;
    END IF;
    CLOSE CUSTODIAN_EXTRACT_DETAILS;
    END IF;
    UTL_FILE.FCLOSE (CE_FILE);
    <<Code>>

    This appears to be a duplicate of UTL_FILE create a csv with 1002, 2003 and 3004 rows empty. Having two threads open simultaneously in the same forum for the same issue is counterproductive. In which thread would you like us to answer? Please close whichever thread you don't want us to answer in.
    It would be helpful if you used the \ tag (6 characters, all lower case) before and after your code to preserve formatting.  That makes it much easier to read.
    Exactly what changes did you make?  Why did you add the CHR(13) || CHR(10)?  Did you, at the same time, change utl_file.put_line to utl_file.put? 
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • After mail was moved to iCloud on jan 1, my mail app emails received have 23 lines of "routing info" between the address and the message. How can I get rid of this info?

    After my mail was moved to iCloud, my mail app emails received have 23 lines of "routing data between the address and the message how can Imget rid of this "data"?

    Found the answer a Mail>preferances>Viewing>Show header detail. Changed it to Default.

  • Can we hide the lines between the columns and rows of an alv in wd abap

    HI all ,
      I know that we can colour cell/column/row in an alv in wd abap.
       but, can we hide the lines between the columns and rows of an alv in wd abap.
         i have checked this link [hiding lines b/n rows and columns of an  alv|http://help.sap.com/saphelp_nw04/helpdata/en/91/e7eb40c4f8712ae10000000a155106/content.htm]
         but didn't  understand, can please anybody provide some example or any material..? it will be very helpful.
                                                                         THANK  YOU.
    Edited by: arfat111 on Feb 15, 2010 7:05 AM

    Code some like this in the WDDOINIT method of your view which defines the ALV component as used component.
    instansiate the ALV component
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage = wd_this->wd_cpuse_usage_alv().
    if lo_cmp_usage->has_active_component() is initial.
       lo_cmp_usage->create_component().
    endif.
    data lo_interfacecontroller type ref to iwci_salv_wd_table.
    lo_interfacecontroller = wd_this->wd_cpifc_usage_alv().
    data lo_value type ref to cl_salv_wd_config_table.
    lo_value = lo_interfacecontroller->get_model().
    hide the grid lines
    lo_value->if_salv_wd_table_settings~SET_GRID_MODE( value = '01' ).
    Thanks,
    Abhishek

  • Setting the ALV Hierarchy tree with grid line between the columns and rows

    Hi Experts,
    I would like to ask if there is any suggestion on setting the ALV hierarchy tree to be separated by grid line between the columns and rows just like how it is display the same way in normal ALV grid.
    Thanks in advance.

    Hi Lin,
    The requirement which you have stated is not possible.
    Lin,
    Also i have a query regarding BADI ZME_PROCESS_REQ_CUST, which you had raised on SDN. You have marked the question as solved/answered.
    Changing the data of a customize field in purchase requisition
    Could you please let me know, the steps you did to update the screen fields through the BADI.
    I would really appreciate your reply, because i am facing exactly the same problem which you have mentioned.
    Thanks,
    Best regards,
    Prashant

  • Reading between the lines

    "Verizon stinks! I hve a $30 plan and they charge me 3 times what theyre supposed to charge for my plan"
    (translation: "I went over my minutes. 4 months in a row")
    "Dont' trust Verizon! they made changes to my plan without asking first"
    (translation: "I made the changes but didnt understand what i was doing.I saw on the web site that I could block a number from calling for free so I did it then got a letter telling me that a change was made.")
    "Their customer service sucks! They refuse to work with me"
    (translation: "I want a credit and they won't give it to me")
    "I wanted to talk to a manager and they would not let me"
    (translation: "I wanted to talk to a manager RIGHT NOW but one wasnt available RIGHT NOW")
    "Verizon is the worst becasue they wont let me have another phone!!"
    (Translation: "They won't let me have a phone at the price I want everytime I want a new phone")
    "Why cant Verizon be like the other guys? I want rollover minutes! I want unlimited data! I want free incoming calls! I want to get a phone cheap without a contract!"
    (translation:"I want every thing under the sun and still have the best network and service!"
    "It's fraud to say that my 9 year old son agreeed to get those texts for $10 a month! How can a kid agree to that??"
    (Translation: "I keep forgetting that when I signed the contract I agreed that no matter who had the phone I was responsible for what was done with it")
    "I specificly told Verizon to block all the internet on my sisters phone but they didnt and now I got a big bill!!"
    (translation: "My sister new good and well she wasnt supposed to be using the internet and used it anyway and now I cant get her to pay her share so I want Verizon to credit me"
    "I didn't know I couldnt use my phone in Jamaica without getting extra charges!"
    (translation: "Yes, I did. I got text message sand ignored them")
    "But nobody TOLD me that!"
    (translation: "I don't like to read. it makes my brain itch. I don't want to ask before I do it because I dont want the answer to ruin what I'm about to do.")

    My personal favorite in reading between the lines is with the CLN program
    we have a 110 point inspection
    (translation: "we don't actually look which is why you have had Droid X's show up with non-responsive touchscreens")
    or
    we are the Android carrier
    (translation: "we don't have the signature Android phone, nor are we picking up the leading phones from that manufacturer....we would rather let our customers beta test Motorola's phones"
    Before someone jumps up to defend Moto....let's take a look at this. What do you call something that is released with already planned updates to resolve bugs? Easy.....BETA.....what do you call the X2 and the D3 being released with already planned updates? BETA

  • Difference between Scheduling lines and Delivery schedule

    Hi SD Experts
    can u say me the clear difference between Scheduling lines and Delivery schedule.
    where we will maintain deliver schedule. whether delivery schedule is automatically created along scheduling agreements..
    with regards
    James

    Hi James,
    Schedule Lines: Has basically information realted to delivery scheduling in Sales Order level.
    Delivery Scheduling: Is a process using which system will determine what are the different activities which need to be performed and time taken for each activitiy only after which the material can be delivered to the customer.
    Delievry scheduling will be started only from the material availability date i.e., system will first determine the material avail date and then do scheduling. By default Standard SAP system does Backward Scheduling in case material availability falls beyond the required delivery date system will do forward schedluing
    Delivery Scheduling consists of the following Basic activities:
    We give deatils while creating order:
    Order Creation Date
    Required Delivery Date
    Order date - Material availability date - Transportation Planning Date - Loading date - Goods Issue Date - Required Delivery Date
    Time Between GI Date and required Delivery Date is called Transit Time
    Time Between LoadingDate and GI Date is called Loading time
    Time Between Material Availability Date and Loading Date consists of 2 components - Pick / PackTime and Transportation Planning Time
    System has to calculate all this before it determines the confirmed delivery date.
    Give your mail Id I have some Presentation I will send you across.
    REWARD POINTS IF IT HELPS
    Regards
    Srini

  • How to remove space between the lines

    Hi,
    In my repoprt output I am getting space between the lines. I have changed
    the repeating frame and field -> vertical elasticity and horizontal elasticity to fallowing combinations.
    fixed, fixed.
    variable, fixed,
    expand, variable,
    variable, expand
    Then also I am getting space between the lines of my output.
    Could you help me in this?
    Thanks

    Change the Vertical Elasticity of fields and frames to Variable. If for some fields or frames you don't want to change the vertical elasticity, then remove extra space by adjusting the height of fields/frames.
    Also check repeating frames property 'Vert. Space Between Frames'. Default is 0.
    Hope this helps.

  • Mismatch between the MD04 and VL10 tcodes.

    Hello Gurus,
                               There is a Mismatch between the MD04 and VL10 tcodes. We can see an entry in the VL10 transaction which we couldn't find in the MD04. Please note that there is no dschedule line for that date in the LU aggrement. Kindly advice.

    can be an error in in the delivery index.
    run SDRQCR21 report?
    And see if the record appears in MD04 or vanishes from VL10

  • My host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    my host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    There are several possible causes for this problem.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • Line spacing is wrong. Space between the lines.

    Packed 17/04/11 Posted 18/04/11
    Sent posted email 17/04/11
    In firefox 4 in my Ebay when I add notes I get a space between the lines. Above is how it is now. Below is how it should be
    Packed 17/04/11 Posted 18/04/11
    Sent posted email 17/04/11
    I have looked in tools and options but cannot find a way to change this. It was fine in firefox 3.5. Only had this since dowenloading firefox 4. I am running XP

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Diff between header line and work area.

    Diff between header line and work area.

    Hi,
    These are table with header line.
    DATA: T_TABLE type table of <table_name> with header line.
    data: begin of t_table occurs 0,
                  field1 type ...
                  field2 type ...
                  field3 type ...
          end of t_table.
    <b>The result is:</b>
    <u><b>TABLE</b></u>    
    FIELD NAME  |FIELD1|FIELD2|FIELD3|  
    HEADER LINE |EE1   |EE2   |EE3   | <---- Line 5 content
               1|AA1   |AA2   |AA3   |  
               2|BB1   |BB2   |BB3   |  
               3|CC1   |CC2   |CC3   |
               4|DD1   |DD2   |DD3   |
               5|EE1   |EE2   |EE3   |
    These are table without header line.
    DATA: T_TABLE type table of <table_name>.
    DATA: T_TABLEX LIKE TABLE OF t_table.
    <b>The result is:</b>
    <u><b>TABLE</b></u>    
    FIELD NAME  |FIELD1|FIELD2|FIELD3|  
                     0|---   |---   |---   | <---- No header Line
                     1|AA1   |AA2   |AA3   |  
                     2|BB1   |BB2   |BB3   |  
                     3|CC1   |CC2   |CC3   |
                     4|DD1   |DD2   |DD3   |
                     5|EE1   |EE2   |EE3   |
    These are work areas:
    Tables <table>.
    DATA: wa type <table>.
    DATA: wa like t_table.
    DATA: wa type line of <table>.
    <b>The result is:</b>
    <u><b>WORK AREA</b></u>  
    |EE1   |EE2   |EE3   | <---- Content
    Regards.
    Marcelo Ramos

  • How can i delay the line and charactor rate of my serial port transmisio​n?

    In hyperterminal I can pick the line and charactor rate , but I can't seem to slow down the rate when using the serial port by itself.
    Attachments:
    remod_chan_4.txt ‏1 KB
    serial_INT_chan3.vi ‏31 KB
    read_text_file.vi ‏20 KB

    There's nothing built into the VISA or old serial functions but it's pretty simple to program yourself. Here's a VI for specifying a delay between characters. It uses VISA but you can easily swap that out with the old serial write if you want. It just breaks out the text string character by character and adds a delay before each character is written. To add a line delay, just add another delay after the entire string is written.
    Attachments:
    Serial_Write_With_InterCharacter_Delay.vi ‏45 KB

  • How do you remove the space between the lines in your email signature?

    I have a problem with my signature in business catalyst mail.
    I have added a logo and my signature and when I send the email it looks good.
    There is the space between the lines that I want.
    But when the mail is received it looks like this:
    with too much space between each line. How do I fix this?
    Thank you in advance for you help and your time.
    Regards Winnie

    Hello,
    Well the good news is it looks like it's going to be some css and html issues the bad news (for most people) is it looks like it's going to be some css and html issues.
    Couple things.
    Are you looking at vertical or horizontal spacing?
    Region 1 in the shipped themes are used for breadcrumbs and usually have set vertical spacing and margins.
    Have you looked at the other layout examples in that application, there's 2 that show different ways of getting exact layout.
    Look at your page template there is an attribute called
    Region Table attributes
    if it looks like
    summary="" cellpadding="0" border="0" cellspacing="0" width="100%"
    change it to
    summary="" cellpadding="0" border="0" cellspacing="0"
    and see if that helps?
    If you can put an example on htmldb.oracle.com thats the easiest way to help you out, as a rule it's very hard to debug UI issues without seeing them.
    Carl

  • Communication between the computer and the disc drive failed

    The disc can’t be burned because because communication between the computer and the disc drive failed (error code 0x80020022). This computer has been out of the box for less than a month and this has been a growing problem.

    My problem was FIXED at the apple store..... there was something wrong in the system preferences and the genius deleted something that recreated it's self. Surely enough we we're able to burn a 600 mb dmg of nothing onto a few test disks. For anyone having this issue...it's NOT The media, it's some configuration issue within the computer's preferences. I'm telling you all to take your machine to the nearest apple store and have them fix it, if your machine is still under warranty the fix is free. There was no hardware issue, so the optical drive was not replaced.

Maybe you are looking for

  • Call transaction 'VL33N' on click of Inbound delivery number  in ALV List.

    Hi, My ALV output is having Inbound delivery number. If user clicks on one of the Inbound delivery it has to call transaction VL33N and display the user selected document. Code: WHEN '&IC1'. IF rs_selfield-fieldname = 'VBELN'.         READ TABLE gt_f

  • Mail consuming too much space

    iPhone mail is using 1.9 GB of space and I have deleted almost all emails. How do I free up space on mail?   Same thing on iPad is only using about 748MB

  • Empty (ignore)

    1

  • Employee Directory

    Dear Friends, Employee Directory is not Displaying the photo of the employee. I am working on 12.1 Please let me know wat would be the reason and watz the solution for it. Regards, Jithin

  • Photoshop Elements 9 Printer Driver Problems with Canon MP600 printer

    I'm having problems using my Canon MP600 printer with Photoshop Elements 9 with regard to the paper allocation. The MP600 has 2 paper trays and for some reason when using Elements it prefers you to use the top loading (auto sheet feeder)  method all