Order of coordinates is affecting the SDO_AREA and SDO_LENGTH calculations

I have done up a simple test using a 4 point polygon
The first starts at (-122.526191446744, 37.8106779688415) index 0
The second starts at (122.518547789324, 37.8149407777871) index 1
Note even on this tiny example the results a slightly different
Results
SQL> SELECT SDO_GEOM.SDO_AREA( sdo_geometry (2003, 8307, null, sdo_elem_info_array (1, 1003, 1), sdo_ordinate_array (
-122.526191446744, 37.8106779688415,
-122.544712616645, 37.8003884300073,
-122.520017723443, 37.8030343114218,
-122.518547789324, 37.8149407777871,
-122.526191446744, 37.8106779688415 ) ) , 0.0000005 ) FROM DUAL;
SDO_GEOM.SDO_AREA(SDO_GEOMETRY(2003,8307,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_
1416470.8
SQL> SELECT SDO_GEOM.SDO_AREA( sdo_geometry (2003, 8307, null, sdo_elem_info_array (1, 1003, 1), sdo_ordinate_array (
-122.518547789324, 37.8149407777871,
-122.526191446744, 37.8106779688415,
-122.544712616645, 37.8003884300073,
-122.520017723443, 37.8030343114218,
-122.518547789324, 37.8149407777871 ) ) , 0.0000005 ) FROM DUAL;
SDO_GEOM.SDO_AREA(SDO_GEOMETRY(2003,8307,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_
1416470.77
Is there a way to force calculations to start at the left most point or something to normalise the results inconsistency?
Thanks in advanced
Damien

You can do an sdo_union of the input geometry to "normalize" it which always orders the coordinates the same
way for the geometry.
SELECT SDO_GEOM.SDO_AREA( sdo_geom.sdo_union( sdo_geometry (2003, 8307, null,
sdo_elem_info_array (1, 1003, 1), sdo_ordinate_array (
-122.518547789324, 37.8149407777871,
-122.526191446744, 37.8106779688415,
-122.544712616645, 37.8003884300073,
-122.520017723443, 37.8030343114218,
-122.518547789324, 37.8149407777871 ) ),
sdo_geometry (2003, 8307, null,
sdo_elem_info_array (1, 1003, 1), sdo_ordinate_array (
-122.518547789324, 37.8149407777871,
-122.526191446744, 37.8106779688415,
-122.544712616645, 37.8003884300073,
-122.520017723443, 37.8030343114218,
-122.518547789324, 37.8149407777871 ) ),
0.05 ), 0.05) FROM DUAL;
siva

Similar Messages

  • Will the iPhone case affects the camera and quality of photos?

    I really want to know if the case in the iPhones might affect the quality of the photo. Thus, what is the best case that suits best for the iPhone 5s?

    no they will not its about how you take photo and sometimes low lighting can also be the problem andd theres really no best case but my oppion is the best cases are the thick rubber cases so it will stick to your pants if your lets say sitting down and the thickness will add protection to falls

  • What determines the price and tax calculation for consignment stock?

    Hi All,
    anyone knows how the price and tax are calculated for consignment stock? in other word, among the info record , contract or material master, what determines the price and the tax calculation for consignment stock?
    please advise, your input will be rewarded.
    thanks,

    First preceeding is taken by contract and then info records of consginment

  • How can I download an entire CD with all songs in order.  ITUNES chops up the CD and groups the songs into separate sections.  why??

    The new site is horrible.  I want to download a complete CD with all songs listed in their album order.  Instead, ITUNES creates multiple albums, each containing a few songs.  I want the entire album with all songs grouped together.  When I tried to creat a new album with all of these songs in order the site only lets me list 17 out of the 26 songs.  I am blocked from adding the rest of the songs.  The old site was so easy to use.  I want a list of all albums with the respective songs listed.  I can't get rid of the large album icons which are not helpful.

    Hi,
    Is the CD  a compilation? If so, make sure that all tracks are shown as part of a compilation. Also add "Various Artist" to album artist field.
    If the CD by a individual artist but has tracks that feature other artists, add main artists name to album artist field.
    Jim

  • Type of browser affecting the look and feel

    Hi all,
    My webdynpro application, when viewed in portal iview from different browsers, causes great misalignment issues.  For ex the application when viewd from IE looks perfectly fine, but when I use browsers like mozilla, chrome, safari etc there are many look and feel issues.  Is there a way which the appliction would look same in all browsers or some sap note for this issue.
    Thank you
    Regards,
    Preet Kaur

    Hi Preet,
    SAP Portal doesn't really support all the latest versions of browsers. I would suggest you to check the Platform Availability Matrix for browser compattibility based on your portal version.
    If the issue is happening in SAP Delivered theme, and if the browser is supported by SAP - you can reach out to SAP for help.
    In case of WD4A, your portal theme version should be higher than the backend version.
    There are multiple notes with reference to browser compattibility which you might want to check based on your version, exact problem and type of application.
    Thanks,
    Shanti

  • When I create a new mailbox, it does not appear in alphabetial order.  It appears at the bottom and I have to manipulate it to get it in its proper place.  This apparently started when I upgraded to Mountain Lion.  Any ideas?

    Do you know why new mailboxes I create do not appear in alphabetical order?  They appear below all other mailboxes and I have to manipulate them into their proper place.  This apparently started when I upgraded to Mountain Lion.  Any help would be much appreciated, as it's annoying and time consuming.

    Do you know why new mailboxes I create do not appear in alphabetical order?  They appear below all other mailboxes and I have to manipulate them into their proper place.  This apparently started when I upgraded to Mountain Lion.  Any help would be much appreciated, as it's annoying and time consuming.

  • I just ordered an Air 2.  The box and shipping show just an AIR

    I just ordered the AIR 2 128 MB.  The box shows a Air 128.  Since there is not a Air 128 mb, how do I know if I have the Air 2?

    If you don't want to approach the subject from the standpoint that it is NOT on the list of historical models, then here's a list that is "IS ON" ...
    http://www.everymac.com/ultimate-mac-lookup/?search_keywords=A1567
    http://www.everymac.com/systems/apple/ipad/specs/apple-ipad-air-2-a1567-wi-fi-ce llular-lte-specs.html

  • POD order type does't affect the FD33 credit limit

    After SO -- Delivery -- PGI,--
    after PGI, user use, special order type (called POD type) for returned goods,
    but after do this POD order type, it doesn't reduce the sale value in FD33
    PLEASE NOTE this happened before billing..
    kindly advice, is it required need to use POD function?

    Hi
    I have checked some OSS notes on this subject. POD returns (before GI) does not reflect in the Crediti Management (FD33) in Open Orders.
    After GI also, if POD qty (i.e. Returns) created (say out of 20 units, only 10 are accepted, 10 rejected), it does not reduce the Open Deliveries in FD33.
    Any ideas as to how we can get the POD variances on to the credit exposure for any customer account?
    I believe the SIS Structures S066/S067 are updated with Open Orders & Open Deliveries etc.
    Is there any possibility to have a work around to update these structures when POD is created..

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

  • Does the battery recall affect the power cord jack?

    My computer battery is part of the recall. However in addition to the battery problem, the jack where the power cord plugs in is not working. I brought it to an authorized repair location and was told the "bronze wore off" and that the entire interior piece would have to be replaced. At a cost of approximately $500. since it is 2 years old. My question is this: could the faulty battery have affected the jack and therefore shouldnt this problem be covered under the recall?
    ibook g4   Mac OS X (10.0.x)  

    Absolutely. And if they give you a hassle about it at the apple store explain to them quietly that a policy which does not factor into account the damage caused by defective parts is a marketing strategy that is admonishing the proper use of a computer. Furthermore it relegates the status of a consumer to the level of non-interest in furthering the aim of the company.
    Hows that? It's the best I could come up with but in light of the trouble with the SEC that this and other companies are facing this should be ample enough ammunition to accomplish the mission [but don't hassle with applecare take it to the store unless you have a warranty and in that case it would be covered].

  • Orders for On-hold Customers in Pick and Pack

    If a Customer is placed on hold after an order is loaded, then the order appears to flow through the pick and pack process until you attempt to add the Delivery, when you are prevented.
    Is there any way to prevent orders for Customer who are on-hold from appearing within Pick and Pack Manager?  We are wasting time picking orders and getting to the despatch stage only to find out that the Customer is on hold so we can't despatch the goods.

    Thanks Gordon, I finally found the time to follow your advice.
    In case it is at all useful to anyone else the change I made to Transaction Notification was as follows
    IF     @transaction_Type IN (N'A',N'U')
    AND     @object_type = 156
      BEGIN
         IF EXISTS (
              SELECT          T1.AbsEntry
              FROM          OPKL T1
              INNER JOIN     PKL1 T2
                   ON     T1.AbsEntry = T2.AbsEntry
              INNER JOIN     ORDR T3
                   ON     T2.OrderEntry = T3.DocEntry
              INNER JOIN     OCRD T4
                   ON     T3.CardCode = T4.CardCode
              WHERE          T1.AbsEntry = @list_of_cols_val_tab_del
                   AND     T4.frozenFor = 'Y'
           BEGIN
              DECLARE          @DocEntry int
              SELECT          TOP 1 @DocEntry = T3.DocEntry
              FROM          OPKL T1
              INNER JOIN     PKL1 T2
                   ON     T1.AbsEntry = T2.AbsEntry
              INNER JOIN     ORDR T3
                   ON     T2.OrderEntry = T3.DocEntry
              INNER JOIN     OCRD T4
                   ON     T3.CardCode = T4.CardCode
              WHERE          T1.AbsEntry = @list_of_cols_val_tab_del
                   AND     T4.frozenFor = 'Y'
              SELECT          @error = 156,
                        @error_message = 'Customer is on hold for order ' + CAST(@DocEntry AS varchar(10)) + ' - picklist cannot be progressed (SP_TransactionNotification)'
           END
      END

  • Application Builder removing the menu and tool bar

    In Labview 8 we can use the application builder to disable the tool bar on the VI when during the build. Under Labview 8.2, the source file setting no longer affects the menu and tool bar of the top level VI. In my particuliar case, I want to remove the ability of a user to abort the VI from running after the application build, but I want the abort ability during the debugging phase.
    Under Labview 8.2, you have to alter the custom window for the VI. In the previous version, you can do it on the build module.

    Have you tried to set the properties of the Main VI being built?  It should default to these settings but you can still change them.  See attached picture from 8.20
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
    Attachments:
    AppBuilder8_20.JPG ‏51 KB

  • How to defrag after Shrinking the data and log every night

    OK, my shop has a shrink job that runs every night. It shrinks the data and log files. DBCC SHRINKFILE (filename,1). We have recovery model Simple.
    So reading that SHRINK is horrible for the data file because of fragmentation, so looking to stop the daily job. BUt this job has been running everyday for years right after the ETL. We have a big nightly ETL process that (1) truncates several
    hundred SQL tables and then BULK INSERT from the AS400 (2) for really large tables we just bring in the last X number of days from the AS400 and insert those records into the SQL table. We have very few indexes, but do have some on the really
    large tables. FYI - The SQL Servers are at the clients' sites.
    What kind of fragmentation has the SHRINK on the data file caused? how would it affect the ETL, and retrieval of data during the day? how can the fragmentation be fixed? 

    Hello,
    Databases suffer from fragmentation on indexes as explained
    here, but they suffer from physical fragmentation at the storage level also. 
    When the shrinking process shrinks a data file and recover space from the disk and the data file needs to grow again as part of your ETL process the new portion of the data file will rarely be contiguous to the rest of the data file on disk, and if this
    shrink process happens many times, the data file may be spread among many tracks on the disk. This increases the disk requests required to write data on a fragmented data file and increases disk requests to create new data files. In general, fragmentation
    will originate that what should be a simple I/O request has to be broken on many disk requests, making disk activity and performance less predictable and making disk queues larger.
    My suggestion is to stop sql server services during maintenance window, defragment disk using the Windows Defrag tool or a third party tool, when finish start SQL Server services again, then defrag indexes on your databases.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SOP - Routing data consideration in the Sales and operation planning

    Hi,
    Please share knowledge how to take the consider routing while doing the sales and operation planning.
    I have done the resource planning in the sop and it is picking the data's from the rought cut profile also. As per sap help it is mentioned that in sop we can use routing or rate routing also to do the resource planning in sop.
    Where the setting to be done?
    If answered.. full pointed will be rewarded....
    Regards,

    Hi,
    Thanks for your reply.
    As per my knowledge T-code will be OPU4 for the Sales and operation planning.
    The T code OPU5 is applicable for planned orders not for SOP internal orders.
    I have checked the senario and reverting back to you.
    Did you checked the senarios for the resorce leveling with out creating the rough cut planning profile by t code mc35?
    Please give you yahoo or gmail messanger or telephone number ....
    Regards,
    Mahesh Garg

  • On one of my computers, the tool bar includes an icon for radio stations and a calculator, but those do not appear on my other computer. Are these add-ons? How do I add them to my other computer?

    When I downloaded Firefox 4 on my desktop, it included an icon for radio stations, for the weather and a calculator. I don't remember choosing them. I also downloaded Firefox 4 on my netbook, but these same icons are visible. Can I add them?

    These may well be add-ons, look at what you have installed
    * use '''Firefox button'''(orange tab top left) ''' -> Add-ons | Plugins/Extensions''' <br /> that is the add-ons manager, and also allows you to search for other addons
    * see also [[customizing firefox with add-ons]]
    Some of the icons could also be bookmarks, note the bookmark toolbar does not display in Firefox 4 by default to get it back
    * use '''Firefox Button -> Options -> [x] Bookmarks Toolbar''' <br /> that is assuming you have bookmarks in the bookmarks toolbar folder (should have some defaults like 'most visited')
    Some add-ons may not be compatible with Firefox 4, but revisions may be issued that work, or alternatives with similar functions may be available.

Maybe you are looking for