Problem working out measures on LRS segment

Hi,
I'm working on an app to work out waiting times of conmuters at bus stops. I chose the approach of using measures to assign times in stops from the start of the line, e.g.
STOP1 is (x1,y1,0)
STOP2 is (x2,y2,17)
etc
The stops are the points defining LRS line string with geodetic coordinates.
It works fine projecting points (buses' positions) on the line string which gives me the measure of all buses and from it I can calculate the min time to a stop among all buses.
The problem is, some of the routes are not simple line like 1----2------------3-------4, but they have sections where the bus leaves the motorway at an exit, runs down a road to a stop, and comes back to the motorway up the same road to the same exit, something like (dots are countryside ;-)):
1----------2-------------3-------------5
...........................|...............
...........................|...............
..........................4...............
When I try to project a point between 3 and 4, Oracle gives wrong results (measures that correspond to the 1-2 segment).
Is my approach wrong?. Is there a way to deal with this go-and-return using the same road issue?.
Thank you.

Hi,thanks for the message yes will post pic later today! cheers

Similar Messages

  • My Facebook acct. has been hacked and now it's spreading to other parts of Firefox 3.6. I'm getting problems worked out with FB but think I need to reload Firefox 3.6.17 for my Mac OSX.4. Can you help me/have other advice?

    When I try to login to FB now, I get a website that takes over Firefox - WebSpy, or something like that. I already changed my email passwords. When WebSpy takes over, I have to quit Firefox. I'm not using FB right now, until I get this sorted out. It was sending out bogus messages to all my friends.

    Have you tried opening them in a Finder window? Also, you might boot to your Install DVD and launch Disc Utility to verify and repair both permissions and your drive.
    Sounds strange. I also have the Lacie 500G - partitioned, but with one being FAT 32 ...works fine for me.

  • Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn't work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn’t work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Did you recently updated to 7.0.4? Even for me same also issues.

  • I have an account in Adobe, but every time I work out on any product from Adobe products The program tells me I Trail You remove and re-install the program, but problem persists

    I have an account in Adobe, but every time I work out on any product from Adobe products
    The program tells me I Trail You remove and re-install the program, but problem persists

    Hi mahmod alsousi,
    Try this:
    Sign out from the Creative Cloud app and Quit it (Quit option will be available after a few seconds).
    Now move the following folders to desktop:
    1) SLCache
    Windows: OS Drive\Program Files (x86)\Common Files\Adobe
    Mac: Library/Application Support/Adobe
    2) SLStore
    Windows: OS drive\ProgramData\Adobe
    Mac: Library/Application Support/Adobe
    3) OOBE
    Windows: OS Drive\Users\<username>\AppData\Local\Adobe
    Mac: /User/Library/Application Support/Adobe
    Now launch Premiere Pro and sign in with your Adobe ID.
    NOTE: Make sure your Anti Virus/Firewall is not blocking any Adobe activation servers. Alternately, you can also check your 'hosts' file for any changes.
    Thanks,
    Rameez

  • Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Tell Apple about it: http://www.apple.com/feedback/iphone.html
    Be sure to give as much detail as possible.
    I would also check LG's site.

  • With all the problems related to firefox 4.o on this forum I want to know whether upgrading to 4.0 is advisable until bugs worked out???

    Can someone with more expertise who has used 4.o for awhile tell me weather upgrading now is advisable or should I wait until the bugs are worked out?????

    how do you figure whether the addons one uses is compatible with 4.0?
    Thanks

  • "invalid LRS segment" when querying an Oracle Spatial DB

    I have a table of GIS segments in an Oracle Spatial database. I'm using C# and ODP to connect to the database. For a given measure from the start of a segment, I want to find the GPS coordinates for that point. I'm running the following query:
    select g.geom.sdo_ordinates ord_array from
    *(select sdo_lrs.locate_pt(shape,0.02,0) as geom from test_schema.test_table*
    where route='ABC' and segmentnum='101.1') g
    where shape is of type SDO_GEOMETRY. I'm getting the following error:
    ORA-13331: invalid LRS segment
    Is there a problem with how I'm passing shape to locate_pt()? The Oracle Spatial documentation says the argument should be SDO_geometry, so that seems ok.
    Edited by: 964844 on Oct 11, 2012 2:10 PM

    I'm using C# with ODP.NET.
    Here is the current version of the code that is failing:
    var param = new OracleParameter("geom", OracleDbType.Object);
    param.UdtTypeName = "MDSYS.SDO_GEOMETRY";
    param.Direction = ParameterDirection.Input;
    OracleCommand oCmd = new OracleCommand();
    oCmd.Connection = this.oConn;
    oCmd.CommandText = queryStr;
    oCmd.CommandType = CommandType.Text;
    oCmd.Parameters.Add(param);
    OracleDataAdapter da = new OracleDataAdapter(oCmd);
    DataTable dt = new DataTable();
    da.Fill(dt);
    The exception is generated by the da.Fill(dt) line.

  • Help Please - on a VC that works out of the box with MAC before I sellup

    I have to declare that I’m somewhat frustrated at the moment and I could do with some good advise please bare with me while I explain.
    I have recently converted from all types of PC systems and MS OS to Apple. The conversion was based on a few drivers.
    1, My wife finally has decided to “learn” how to do her own web work instead of asking me to look up this or that for her. So as she was starting from scratch I thought MAC.
    2, At the same time I had a play with Vista at work and disliked it. I was using XP & W2K at the time.
    3, I wanted to update my home hardware, which was 3 years old.
    4, The accountant said I hadn’t spent enough on IT last year.
    5, New project work in the planning that required video/audio work to upload onto the web and everyone said MAC was the best.
    So having looked around and done what I thought was enough research I started investing. To date I’ve invested £4500 plus.
    Started by buying
    iMAC 24” 2.8 Gz Intel with 4GB ram (for the home office)
    MacBook Pro 2.4 with 4GB ram (for out and about working)
    iPHONE 16GB (which is great)
    VMware Fusion was installed for those things that I couldn’t live without until I found a suitable replacement like MS Money, Paint Shop Pro, MS Office etc. Installed XP.
    Tried Open Office found it to clunky and hard work working off files for MS Office that others sent/required. Ended up buying Office 2008 only to find VB macros don’t work in Excel and all my company spreadsheets still need PC MS Excel to run so back into XP via Fusion.
    Then to MAIL which is great on the iPHONE as I can easily monitor my 5 email accounts, what a result. But now I come to attach JPG files as I would in outlook and they open into the content of text in the mail and will not stay closed but disrupt the message. Wholly unacceptable to my way of working with no cure.
    Scanning next, so I down loaded GIMP to replace PSP which I find useless so back to PSP I go again via XP & Fusion.
    Next and finally the VC project, Now please bare in mind that all I want to do is shoot film, upload it to edit it and then mount it on the web page. I have no desire to become any form of expert in the field just get the job done.
    So reviewed iMovie to understand the spec. Realise it has limitation and reviewed FCE which seems to plug the gaps and boarders on being more professional.
    At this point I must say I’m not totally new to this subject as I have used Studio8 and a JVC GR-DVL166EK video cam a couple of years ago and got on ok without any issues simple plug and play with great results.
    Having reviewed the standards that the software is reported to work too without any publicly declared exclusions or exceptions by Apple I went shopping for the VC. (I didn’t know of the forum at the time and to the best of my knowledge Apple don’t advise of its existence in any product information on anything I have bought.)
    I buy a Panasonic HDC-HS9 for £700 which doesn’t flaming work despite the fact that it should based on all the standards quoted by both manufactures and there are no disclaimers from either party that it won’t work.
    I have reviewed the compatibility list on the support page (now I know its there) and find that the Panasonic HDC-SD5 does work. I reviewed the comprehensive detailed model spec on the Panasonic web site and there is no differences between the to models at all accept the HDD.
    So why don’t it work?
    *At the end of the day can anyone please recommend a VC that will produce high quality results without the need of a 3rd party software to connect and upload files convert and muck about instead of getting on with the job.*
    And if all the publicised specs don’t allow you to conclude compatibility how can you protect your investment? Where do we legally stand and where is the accountability to the consumer.
    <edited by host>
    I am that fed up with the last 3 months of mucking about Bill Gat*es may just get me back.
    Thanking anyone in anticipation for some meaning advise and help.
    Regards
    Alan

    Hi, and thanks for you interest. The problems is that whether I'm using iMovie or FCE I get to a stage where the thumbnail image is present but if you try to play, import or any other action in either app it closes down and a message comes up " The Application Final Cut Express/iMovie quit unexpectedly - Mac OS X and other application are not affected" then asks if I wish to relaunch. I then hit the report to Apple button and afterwards relaunch. I was recommended to use Voltaic which I have tried, it worked but is to much mucking about for something that should work out of the box.
    This problem happens on both the iMAC and the MacBook so quite sure it's not a OS software issue. All software update are up to date also.
    Any ideas?

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • I am trying to update my itunes and iphone. Everytime I trie comes out a message about 'key access'. I've done all the steps from the support and nothing worked out. I cannot unistall and now I can't open it anymore also. What should i do, please?

    I am trying to update my itunes and iphone. Everytime I trie comes out a message about 'key access'. I've done all the steps from the support and nothing worked out. I cannot unistall and now I can't open it anymore also. What should i do, please?

    Isn't that only used when a PC will not boot?
    What options does booting with this give me?
    Thanks
    JK MCP
    Hi,
    USB recovery disk was used to recover your system when it encounter problem. You can try to use it to fix your problem instead reinstall system. However, there is no method to keep your program whenreinstall system.
    Roger Lu
    TechNet Community Support

  • My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive

    My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive.
    Do you know how I can tell how large each file is taking up and what my 'other' category could be?
    thanks

    Initial easy steps to gain disk space:
    - Delete all files in the Downloads folder.
      Empty the Trash.
    - Start iPhoto.
      Empty its trash.
      Restart.
    Backup:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.  You will need one external hard drive for your Time Machine (or other) backup and a second if you plan to offload some files.  (See suggestions for where to purchase hard drives at the end of this message.)
    For more about backups:
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods:
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    Deleting files:
    Then use the free application OmniDiskSweeper http://www.omnigroup.com/more to explore your volume in descending order by size so you can attack the problem from the top down, deleting the largest unwanted files first.  Delete with caution and do not delete any system files.  Remember to empty the trash after trashing the files.
    Additional reference on freeing disk space:
    http://pondini.org/OSX/DiskSpace.html
    Offloading files:
    Consider moving some of the no-often-used large files or directories to an external disk.  Use ODS again to find them.  This will be at least your second hard drive.  Your first one(s) is/are for your Time Machine (or other) backup(s).  Do not offload files onto a Time Machine disk.
    Format the second drive as Mac OS Extended (journaled).  Using OWS to find large files/folders and copy them from the system drive to the external hard drive and delete them from your internal drive.
    Then  > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.
    Now both your system disk and your external offload disk will be backed up onto your Time Machine disk.
    From: http://www.thexlab.com/faqs/freeingspace.html
    To move your iTunes Music folder to another disk or partition:
    To change the location of your iTunes Music folder, carefully follow the instructions in the AppleCare® Knowledge Base document "iTunes for Mac: Moving your iTunes Music folder."Additional information can be found in iTunes Help.
    http://webcache.googleusercontent.com/search?q=cache:http://www.thexlab.com/105/ 00000849.html
    Laptop users may want to consider having two iTunes libraries: a small library of current favorites on their computer, while their complete library resides on an external hard drive. Utilities like iTunes Library Manager enable you to easily have multiple iTunes libraries you can use with your account.  https://www.macupdate.com/app/mac/7689/itunes-library-manager
    To move your iPhoto Library folder to another disk or partition:
    To move the iPhoto Library folder to a new location, employ the instructions in the AppleCare Knowledge Base document from http://support.apple.com/kb/PH2506 corresponding to the version of iPhoto you are using. Additional information can be found in iPhoto Help.
    Laptop users may want to consider having two iPhoto libraries: a small library of current, favorite photographs on their computer, while their complete library, or archives of older photos are saved on an external hard drive. Utilities such as iPhoto Buddy and iPhoto Library Manager enable you to have multiple iPhoto libraries that you can use with your account.
    https://www.macupdate.com/app/mac/12175/iphoto-buddy
    https://www.macupdate.com/app/mac/7158/iphoto-library-manager
    Hardware — Bigger disk/SSD:
    OWC sells 120, 240 and 480 GB SSD upgrades for MacBook Airs.  A 240 GB upgrade costs $265.   http://eshop.macsales.com/shop/SSD/OWC/ .  If your Mac is under warranty or AppleCare replacing the SSD will void the warranty.

  • Works out of the box... my ***

    So I'm on my second macbook. The first was determined to be DOA because of the adapter sizzle/heat/seperating casing.
    So now my second ones keyboard and trackpad randomly stop working. It usually happens when the machine is running hot, usually about 30 minutes of use. Reboots don't help. Resetting PRAM didn't help. Working in a new user account doesn't help. Still freezes while working in windows. Did an archive and install, and yep still freezes. The only thing that makes it better is to shut it down and letting it cool off. So what does this lead me to believe?? Its a hardware problem. I ran the hardware test from the CD, everything is "normal".
    So i take it into the "genius" bar, tell them my issues, he says that its probably the logic board, so he orders in the logic board and a new top case (why, i have no idea). Says they'll run a 24 hour test on it to see whats causing it.
    So I get a call today (a day later) saying they ran the machine straight for 3 hours, and it didn't happen once. So they told me theres nothing they can do about it, and that if it happens again, to call apple care (already did that before, told me to reset pram and use a different account) and to bring the case number into the store. What good does this do? The problem is still there, and they've done nothing to fix it.
    So my question is to the people who have had a similar keyboard/track pad freezing problem... has anything worked for you? When you took it in for repair what did they fix or replace??
    Second, how can apple market their products as "just working, out of the box" when so many people have had problems with them?? I was worried before I bought the macbook because of all the complaints/issues, but felt reassured when people told me that the chance of getting a faulty machine were slim... now i'm on my second macbook that still isn't working.
    Don't get me wrong, i love the mac os, and the mac software, but I'm extremely dissapointed with the quality of the mac machines... my hp laptop was much more reliable than the macbook, too bad I sold it to buy one.

    "...these guys aren't going to give you a break."
    Not sure what you mean by that Nick. All I advised was to allow Apple to take care of it.
    Beth, it does seem like you have had a run of bad luck. I don't know what to say other than call either the store and ask for the manager or call AppleCare and ask that your case be escalated to a second tier rep. Whatever you do, be calm, be firm, and be polite and I am sure that things will get taken care of.
    Do let us know how it works out. I for one am interested in how this plays out for you. Honestly.
    BTW, as an aside, it is possible that your thread is getting less views and less of a response because of the filtered language in your title. While I certainly do understand your frustration, there really is no need to be like that on a peer support forum. We are not Apple employees and your frustration with Apple is misdirected here.
    Just a thought and take it in the friendly spirit in which it is honestly intended.
    Peace.

  • Which Linux Distro Works Out of the Box With the iMac late 2009 (11,1)?

    Hi. I use all 3 OSes because the other two OSes have tool and games that are not yet in OS X; best of both worlds. Win 8 on Bootcamp is nice for games and utilities but I'm installing Linux too on a separate external drive. I've tried a lot of Linux distros but they all have the bug that prevents ths iMac 4850 mobility GPU to work (you need a second monitor to solve it which I don't have the space for and I only use Linux every so often) but have you tried a Linux distro Live CD/DVD that works flawless on this Mac without editing commands in Linux's GRUB console on Linux bootup?
    If there's no distro that works out of the box, what's the closest distro that may only need a few adjustments on its boot menu (GUI preferably not console commands).
    But if there's a distro, what's the distro name and exact version (link to download it too if it's alright with you)?
    Thank you in advance.
    God bless.

    Hi, and thanks for you interest. The problems is that whether I'm using iMovie or FCE I get to a stage where the thumbnail image is present but if you try to play, import or any other action in either app it closes down and a message comes up " The Application Final Cut Express/iMovie quit unexpectedly - Mac OS X and other application are not affected" then asks if I wish to relaunch. I then hit the report to Apple button and afterwards relaunch. I was recommended to use Voltaic which I have tried, it worked but is to much mucking about for something that should work out of the box.
    This problem happens on both the iMAC and the MacBook so quite sure it's not a OS software issue. All software update are up to date also.
    Any ideas?

  • How do you work out the number of days difference between two dates?

    I'm running Crystal v12.
    We use a date field in our SQL database that we use to store the client's year end date.
    As the year end date (date and month) doesn't change for a client, the year end date field in all of our reports is set to just show the DD/MM part. Over the years as new clients are set up we just enter the date and month - the year part is irrelevant although as in all date fields the year is automatically entered.
    Doing it this way means that we don't have to adjust the year end year part each year. We just use the DD/MM part.
    I need to create a formula that works out the number of days there have been (i.e. the difference) from the current date to the year end date. It MUST EXCLUDE the year however.
    For example:
    Year End Date = 30/04/03
    Current Date = 25/05/10
    Days Difference (EXCLUDING year) = 25
    Days Difference (including year) = 2582
    Year End Date = 31/03/09
    Current Date = 25/05/09
    Days Difference (EXCLUDING year) = 55
    Days Difference (including year) = 420
    If you include the year part then working out day difference is simply a case of creating a formula that subtracts the year end date from the current date (CurrentDate - {tblClient.YearEnd}.
    HOWEVER I need to exclude the year part.
    Can anyone tell me the formula or best way to do this?
    Thanks in advance.
    Edited by: BadBoy House on May 25, 2010 3:15 PM
    Edited by: BadBoy House on May 25, 2010 3:15 PM

    Hi
    You can try this
    datevar e := date(year(currentdate),month({tblClient.YearEnd}),day({tblClient.YearEnd}));
    numbervar num_days := datediff("d",currentdate,e)
    Create a datevar called e that uses the original month and day numbers for {tblClient.YearEnd} but uses the year of the current date
    Then just datediff on e to get the number of days between the two dates
    I hope i understand your problem and that this helps
    Best regards
    Patrick

  • I am trying to download Lightroom to my computer but it is not working out.  I purchased a license for it, do I need a serial number or something?

    I am trying to download Lightroom to my computer but it is not working out.  I purchased a license for it, do I need a serial number or something?

    ... but it is not working out
    Why not? What happens? Is there an error message?
    I purchased a license for it, do I need a serial number or something?
    You don't need a license or a serial number to download Lightroom, which is the problem you state you are having. What is the license you purchased, anyway? Can you give us details?

Maybe you are looking for

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2. The same Wifi connection works perfectly with my PC laptop. Can some one help me or shall I return it to the store?

  • Cannot Print to Fax Using OfficeJet Pro 8600

    Issue: Cannot print to fax on HP OfficeJet Pro 8600  Setup: Running Mac Mavericks 10.9.4 Steps Tried So Far: Installing updated driver available on support page. No firmware update needed.  What Happens: 1) Document is open 2) Select HP 8600 (Fax) fr

  • 4s contacts post-upgrade problem

    So it might be my noob status as an Iphone user but I installed the update to my phone and now the contacts that were on my phone that I had synced from my Mac do not show up when they text and call.  So for example all the contacts on my phone (both

  • Field labels left-justified

    Hello, What is the easiest way to make all field labels left-justified instead of right-justified? I want to change this only for a certain business role, but for all views if possible. Thanks in advance Roland

  • How do i remove duplicate contacts in icould?

    Hello, I am having multiple issuees with my contacts.  First how do I delete and stop duplicates from appearing again?Thank you!