Getting individual co-ordinates

I have a polyline object stored as a geometry in each row of a table. I want to create a table of all the nodes of all the polylines within this table. Currently I fetch each record, check the number of nodes in the object and then extract each node and add one record at a time in the co-ordinates table.
Is there any way of doing this in a single query? The number of co-ordinates for individual polylines is not fixed.
Any thoughts?
TIA

Thanks people, I have solved my problem myself, this is what I did.
REATE TYPE SP_NODE_TYPE AS OBJECT
(id NUMBER,
x NUMBER,
y NUMBER);
CREATE TYPE SP_NODE_SET_TYPE as TABLE OF SP_NODE_TYPE;
CREATE OR REPLACE Function GetCoordinates(polyline IN MDSYS.SDO_GEOMETRY) RETURN SP_NODE_SET_TYPE
PIPELINED
AS
ordCount NUMBER;
ordNumber NUMBER;
BEGIN
ordCount := nvl(polyline.sdo_ordinates.COUNT,0);
if (ordCount > 4) then
ordNumber := 2;
for idx in 3..(ordCount - 2) loop
if ((idx Mod 2) = 1) then
PIPE ROW (SP_NODE_TYPE(ordNumber, polyline.sdo_ordinates(idx), polyline.sdo_ordinates(idx + 1)));
ordNumber := ordNumber + 1;
end if;
end loop;
end if;
RETURN;
END;
don't bother about the logic, in my case, I only wanted the intermediate points not the start and end point.
After this a query like :
SELECT mylines.id, myvertices.X, myvertices.Y, myvertices.id
FROM mylines,
TABLE(getcoordinates(e.geoloc)) myvertices ORDER BY e.id, myvertices.id;
does the trick for me!!
'PIPE' and 'PIPELINE' is something new which I learned from this experience.
--A Happy Plumber.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • I have everything set for Arabic fonts and the keyboard as well. When I type in WORD or EXCEL I just get individual Arabic letters, but they never connect, they should be for example like this   الس    but they always appear like that ا ل س

    I have everything set for Arabic fonts and the keyboard as well. When I type in WORD or EXCEL I just get individual Arabic letters, but they never connect, they should be for example like this   الس    but they always appear like that ا ل س

    MS Word for Mac has never supported Arabic.  You have to use other apps.  Mellel is best, but Pages 5, TextEdit, Nisus Writer, or Open/LibreOffice should work OK.
    Sometimes you can make Word for Mac do connected Arabic if you are editing a document created with Windows Word.

  • How to get the co-ordinates(X-axis and y-axis) for irregular static map

    hi all,
    i am trying to get the co-ordinates like latitude and longitude which are used in google map in an irrregular Static Maps,and i also want to know how can i Get perfect location Depending on Coordinates which i given using Page items.
    can any help me pls
    I AM USING APEX 4.1.1
    thanks,
    Pavan
    Edited by: Pavan on May 29, 2012 7:58 AM

    hi VC,
    Thanks for your reply,,
    I Just want to Develop a static map that is not using any Google api or Google Maps,Its like Google maps but not totally a Map which resembles Google map. But i want to have an access of coordinates in an static regular Map where with the help of coordinates we can find any point on that static map's .
    Thanks & Regards:
    Pavan

  • [svn:fx-3.x] 5698: Fix masking when renderers are components and get individually masked

    Revision: 5698
    Author: [email protected]
    Date: 2009-03-27 22:18:52 -0700 (Fri, 27 Mar 2009)
    Log Message:
    Fix masking when renderers are components and get individually masked
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-19377
    Reviewer: ryan
    tests: checkintests, mustella/datagrid
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-19377
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataG ridBase.as
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/listClasses/ListBase. as

    Revision: 5698
    Author: [email protected]
    Date: 2009-03-27 22:18:52 -0700 (Fri, 27 Mar 2009)
    Log Message:
    Fix masking when renderers are components and get individually masked
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-19377
    Reviewer: ryan
    tests: checkintests, mustella/datagrid
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-19377
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataG ridBase.as
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/listClasses/ListBase. as

  • What I want to do is to get the co-ordinates of the elements of the third array which shows differences between 2 other arrays

    Hello,
    Ive have got a vi that compares two arrays by element and gives back the location of the elements that are not equal in a third array. What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.
    Many Thanks
    (Labview 7.1)
    Please find the vi attached below
    Attachments:
    ArrayDiff701.vi ‏25 KB

    jihn wrote:
    What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.
    Sorry, I don't understand what you mean. What are coordinates in this context?
    If you for example want to get an array of all elements from the first array corresponding to the list of indices in the "locations" array, just add another FOR loop as shown.
    Your VI has a major flaw! You need to reverse the order of "Add array elements" and "to I32". The "to I32" needs to come first! (see image). If you "add" first, you'll run into problems if you have more that 32k different elements because of overflow in the I16 integer.
    Message Edited by altenbach on 02-21-2008 05:22 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Different.png ‏9 KB

  • Getting GPS Co-Ordinates

    Hi,
    First of all, I hope that I am making this question in the right forum.
    Secondly, I am new to JavaME, so these questions might sound stupid.
    What I would like to know is if it is possible to obtain the GPS Co-Ordinates in a manner that is similar to the way that GoogleMaps get the location through the MyLocation feature, which basically performs triangulation and uses a phone's GPS (if present) to get the co-ordinates of the phone. The application I will use will not be running in a browser.
    Thanks in advance

    If your phone supports [JSR-179|http://jcp.org/aboutJava/communityprocess/final/jsr179/index.html] then you can get geo-location info. If your phones does not then you might be able to get CellID info and [you can look that up|http://www.opencellid.org/] to get approximate location info. If your phone supports Bluetooth AND [JSR-82|http://jcp.org/aboutJava/communityprocess/final/jsr082/index.html] then you can access and read GPS coordinates from a [external GPS receiver|http://www.buygpsnow.com/].

  • I need to get individual track information, please?

    I just inherited some wonderful CD compilation discs which were made by a relative. It seems to me that since iTunes is so very good at getting track information at any CD, no matter how obscure, that it should be able to get individual track info as well. The problem is...I can figure out how to do this. Please tell me it's possible to identify the tracks on a single case by case scenario and if so, how does one do it?

    That's just the underlying service. I am not aware of any Win apps, but that does not mean they are not out there, just that I have used exactly none of them, and am therefore not willing to suggest any, lest it come back to bite my hiney
    There is a page at MusicBrainz.org that lists some:
    http://musicbrainz.org/doc/MusicBrainzTagger
    edit: I would go for the first one on the list as it seems to be the one most likely to get attention.
    Message was edited by: Scott P.

  • How to get the co-ordinates of a dynamically created input field

    Hello Frn's
    i have created a dynamic text view . but this text view is not appearing at proper position . I want palce it infront of a dynamically created input field . how can i do this ?
    as i am thinking ...i should first of all  get info about the co-ordinates of   dynamaclly creatd input field . and with respect to these co-ordinates ...set the position of  text View .
    Please suggest  your thoughts .
    Thanks and Regards
    Priyank Dixit

    Hi,
    There is no provision in WD for getting screen coordinates and then placing the UI element.
    You to add the UI element to layout editor and based on the layout type it will add the UI element to respective position.
    I would advice not to create dynamic UI elements( instead you can create them statically and then play with visibility status through context binding ). This will be more effective way and less error prone. This is also recommended practice.
    still,For dynamic creation you can refer to following wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/CreatingUIElementsDynamicallyinAbapWebdynpro+Application
    regards
    Manas Dua

  • How to get individual messages in Mac Mail???

    In Mavericks when I get mail from the same email address it groups it all under one option so I sometimes miss the mail. How can I get it so that each message is individual and not grouped into a folder under one email address?

    Is this happening to all emails from, say sender A? Or are you still receiving emails from sender A, but not in the same "convo"?
    I am just wondering if sender A is sending you email that has "no subject", thus Apple Mail thinks it's apart of a convo. Therefore it'll group them into a "convo".
    KOT

  • Any software to get individual CD track names not contained in original CD?

    A friend has given me many CD's he has compiled from his vast original collection. He takes individual songs from different CD's and creates a new CD using iTunes. Is there any software on the market, freeware, shareware or commercial that will get for me via the internet the names of the songs etc.? It sure would save a lot of time and work, not having to enter each name individually.
    Max

    My friend inputted his CD info to Gracenotes. It accepted his input. However, I myself can't get this info for his CD. It says in the "help" section of iTunes that it doesn't work for "custom" CDs, you can only use it for commercial CDs. I don't see then the point of submitting track names. If it's an original or even copied commercial CD, I can dupe his CD on my computer and get the tracks info without him having to submit it.

  • Getting individual records in st03.

    Hi,
    Can anybody let me know how to drilldown for individual records in st03 tcode like stad ?
    Thanks in Advance,
    Archana

    I need to display logo on top of the report, for that reason i have included one database table and mapped it against POJO class in the report file.
    So because of this additional table, iam getting each record repeated thrice in the report.........Is there any other way of displaying image in the report using POJO class in crystal report

  • Get individual test socket execution reference

    Hi All,
    Versions used: LV 2014, TS 2014, Parallel model with each DUT independently tested, Custom OI built as per need
    I have an application where at most 8 test sockets can run at a time, independent of each other. Each DUT must be independently started, paused or aborted from LabVIEW custom OI. How do I get the individual test socket execution reference so that I can send the pause/abort command from LabVIEW Operator Interface? I tried using the FileGlobals.TestSocketExecutions array from the Parallel model (by setting "Shared at Run-time" flag), but these references seems to be changing constantly.
    What I want to do is have a unique execution reference for each testsocket that can be obtained when the DUT is started/ even when the testsocket is spawned, store that reference in my LabVIEW code and use this execution reference when I want to pause/abort the testing in that particular socket from LabVIEW OI.
    Thanks in advance,
    Saranya

    Saranya,
    I assume (hope) that you are using the "Test UUTs" execution entry point in the parallel model. So it seems to me that you already disabled the "UUT Info Dialog", otherwise you would have blocking functionality which requires user interaction on the UI dialog.
    Please look into the Parallel Model as well as the modelsupport2.dll sources (available as CVI project in TS model folder) how the synchronization is done there.
    Hint: There is a queue....
    Also, i hope that you mixed abort with termination. I highly recommend you to never abort executions.
    Norbert

  • I can't seem to get individual elements when comparing 2 arrays using Compare-Object

    My backup software keeps track of servers with issues using a 30 day rolling log, which it emails to me once a week in CSV format. What I want to do is create a master list of servers, then compare that master list against the new weekly lists to identify
    servers that are not in the master list, and vice versa. That way I know what servers are new problem and which ones are pre-existing and which ones dropped off the master list. At the bottom is the entire code for the project. I know it's a bit much
    but I want to provide all the information, hopefully making it easier for you to help me :)
    Right now the part I am working on is in the Compare-NewAgainstMaster function, beginning on line 93. After putting one more (fake) server in the master file, the output I get looks like this
    Total entries (arrMasterServers): 245
    Total entries (arrNewServers): 244
    Comparing new against master
    There are 1 differences.
    InputObject SideIndicator
    @{Agent= Virtual Server in vCenterServer; Backupse... <=
    What I am trying to get is just the name of the server, which should be $arrDifferent[0] or possibly $arrDifferent.Client. Once I have the name(s) of the servers that are different, then I can do stuff with that. So either I am not accessing the array
    right, building the array right, or using Compare-Object correctly.
    Thank you!
    Sample opening lines from the report
    " CommCells > myComCellServer (Reports) >"
    " myComCellServer -"
    " 30 day SLA"
    CommCell Details
    " Client"," Agent"," Instance"," Backupset"," Subclient"," Reason"," Last Job Id"," Last Job End"," Last Job Status"
    " myServerA"," vCenterServer"," VMware"," defaultBackupSet"," default"," No Job within SLA Period"," 496223"," Nov 17, 2014"," Killed"
    " myServerB"," Oracle Database"," myDataBase"," default"," default"," No Job within SLA Period"," 0"," N/A"," N/A"
    Entire script
    # things to add
    # what date was server entered in list
    # how many days has server been on list
    # add temp.status = pre-existing, new, removed from list
    # copy sla_master before making changes. Copy to archive folder, automate rolling 90 days?
    ## 20150114 Created script ##
    #declare global variables
    $global:arrNewServers = @()
    $global:arrMasterServers = @()
    $global:countNewServers = 1
    function Get-NewServers
    Param($path)
    Write-Host "Since we're skipping the 1st 6 lines, create test to check for opening lines of report from CommVault."
    write-host "If not original report, break out of script"
    Write-Host ""
    #skip 5 to include headers, 6 for no headers
    (Get-Content -path $path | Select-Object -Skip 6) | Set-Content $path
    $sourceNewServers = get-content -path $path
    $global:countNewServers = 1
    foreach ($line in $sourceNewServers)
    #declare array to hold object temporarily
    $temp = @{}
    $tempLine = $line.Split(",")
    #get and assign values
    $temp.Client = $tempLine[0].Substring(2, $tempLine[0].Length-3)
    $temp.Agent = $tempLine[1].Substring(2, $tempLine[1].Length-3)
    $temp.Backupset = $tempLine[3].Substring(2, $tempLine[3].Length-3)
    $temp.Reason = $tempLine[5].Substring(2, $tempLine[5].Length-3)
    #write temp object to array
    $global:arrNewServers += New-Object -TypeName psobject -Property $temp
    #increment counter
    $global:countNewServers ++
    Write-Host ""
    $exportYN = Read-Host "Do you want to export new servers to new master list?"
    $exportYN = $exportYN.ToUpper()
    if ($exportYN -eq "Y")
    $exportPath = Read-Host "Enter full path to export to"
    Write-Host "Exporting to $($exportPath)"
    foreach ($server in $arrNewServers)
    $newtext = $Server.Client + ", " + $Server.Agent + ", " + $Server.Backupset + ", " + $Server.Reason
    Add-Content -Path $exportPath -Value $newtext
    function Get-MasterServers
    Param($path)
    $sourceMaster = get-content -path $path
    $global:countMasterServers = 1
    foreach ($line in $sourceMaster)
    #declare array to hold object temporarily
    $temp = @{}
    $tempLine = $line.Split(",")
    #get and assign values
    $temp.Client = $tempLine[0]
    $temp.Agent = $tempLine[1]
    $temp.Backupset = $tempLine[2]
    $temp.Reason = $tempLine[3]
    #write temp object to array
    $global:arrMasterServers += New-Object -TypeName psobject -Property $temp
    #increment counter
    $global:countMasterServers ++
    function Compare-NewAgainstMaster
    Write-Host "Total entries (arrMasterServers): $($countMasterServers)"
    Write-Host "Total entries (arrNewServers): $($countNewServers)"
    Write-Host "Comparing new against master"
    #Compare-Object $arrMasterServers $arrNewServers
    $arrDifferent = @(Compare-Object $arrMasterServers $arrNewServers)
    Write-Host "There are $($arrDifferent.Count) differences."
    foreach ($item in $arrDifferent)
    $item
    ## BEGIN CODE ##
    cls
    $getMasterServersYN = Read-Host "Do you want to get master servers?"
    $getMasterServersYN = $getMasterServersYN.ToUpper()
    if ($getMasterServersYN -eq "Y")
    $filePathMaster = Read-Host "Enter full path and file name to master server list"
    $temp = Test-Path $filePathMaster
    if ($temp -eq $false)
    Read-Host "File not found ($($filePathMaster)), press any key to exit script"
    exit
    Get-MasterServers -path $filePathMaster
    $getNewServersYN = Read-Host "Do you want to get new servers?"
    $getNewServersYN = $getNewServersYN.ToUpper()
    if ($getNewServersYN -eq "Y")
    $filePathNewServers = Read-Host "Enter full path and file name to new server list"
    $temp = Test-Path $filePathNewServers
    if ($temp -eq $false)
    Read-Host "File not found ($($filePath)), press any key to exit script"
    exit
    Get-NewServers -path $filePathNewServers
    #$global:arrNewServers | format-table client, agent, backupset, reason -AutoSize
    #Write-Host ""
    #Write-Host "Total entries (arrNewServers): $($countNewServers)"
    #Write-Host ""
    #$global:arrMasterServers | format-table client, agent, backupset, reason -AutoSize
    #Write-Host ""
    #Write-Host "Total entries (arrMasterServers): $($countMasterServers)"
    #Write-Host ""
    Compare-NewAgainstMaster

    do not do this:
    $arrDifferent = @(Compare-Object $arrMasterServers $arrNewServers)
    Try this:
    $arrDifferent = Compare-Object $arrMasterServers $arrNewServers -PassThru
    ¯\_(ツ)_/¯
    This is what made the difference. I guess you don't have to declare arrDifferent as an array, it is automatically created as an array when Compare-Object runs and fills it with the results of the compare operation. I'll look at that "pass thru" option
    in a little more detail. Thank you very much!
    Yes - this is the way PowerShell works.  You do not need to write so much code once you understand what PS can and is doing.
    ¯\_(ツ)_/¯

  • Help to get individualized ringtone on text.

    We have a new Droid X with ringtone added that the hearing dog keys to when she hears it.  We successfully emailed the ringtone from the old phone and got it working for the incoming calls. However, we cannot get it on the text notification. The ringtone does not show up on the list for incoming text messages.  Any ideas??

    Alright so I figured out how to make a notification ringtone. I downloaded the app Ringdroid and one I had the sound as a .mp3 all I did was I edited it using ringdroid and choose to save it well it gives you options on how you would like it saved and all you do is choose to save it as a notification and ta da there it is so if anyone else is having problems with this here is the solution I have found hope it helps.

  • ICM 7.5-how to get individual outbound dialer calls talktime and respective ECC values

    Hello,
    I'm looking for following two items
    1. Outbound dialer calls talktime in each call.
    2. Each calls respective ECC values.
    I have tried to get talktime from TCD table it’s shows zero value.
    Please advice how to get above values, it would be much appreciated.
    Thanks
    Regards,
    Param

    Hey Param,
    You can use the PeripheralCallType in the TCD table to find dialer calls. Look for calls with:
    PeripheralCallType IN ('27','28','29','30','31') for reservation calls and
    PeripheralCallType IN ('32','33','34','35') for the customer calls
    For duration of reservation calls look at the HoldTime value
    For duration of the customer call you can look at the HoldTime + TalkTime + WorkTime for a total handle time for the customer leg of the dialer call
    If you want to look at the ECC variables that were associated with that call you will have to lookup the Termination_Call_Variable table matching:
    Termination_Call_Variable.TCDRecoveryKey = Termination_Call_Detail.RecoveryKey
    Cheers,
    Nathan

Maybe you are looking for

  • Oracle Database 11g Release 1 (11.1.0.6.0)  and Windows Vista Ultimate

    Hi, Hoping someone who has already tried/installed can let me know whether the installation of Oracle Database 11g Release 1 (11.1.0.6.0) will work on Windows Vista Ultimate (32bit) or knows whether it does or doesn't? Thanks. Tony.

  • I am unable to install iTunes due to Windows Installer error message on Vista

    I needed to update my iTunes since I purchased the iPad2.  My Windows Vista machine will not allow me to update the program due to a "Windows Installer" error message.  I first attempted to update, then I uninstalled and am unable to reinstall the so

  • MBP Second  Monitor in an iMac

    Is it possible to use iMacs Monitor as second monitor for a MBP? I have an iMac and am thinking to get a MBP, this would be great in some cases.

  • I installed CS4 and camera raw

    But I forgot to install two small files and I don´t know the name. So..my camera raw does not work. Please! Somebody can help me?

  • LR3 cataloques into LR4

    I have a huge LR 3 cataloque, which was imported to a trial version of LR4. I was not quick enough to order LR4 upgrade before my trial period was over. I returned to LR 3 for some time before I got my own licence of LR 4. When I got it I removed the