Widgets that calculate distance between locations?

         I am wondering if there are any widgets available that will let me calculate the distance (in miles) between two locations (within the USA)
(If need be I could also work with a widget or app that will provide the distance between only cities and as opposed to specific addresses)  
One with a map would be nice, but I'd be totally fine and super happy with the simplest of widgets to calculate mileage.
If there are no widgets that do this, then could someone suggest a good app that does this?   I have used 'eMaps' for calculating the mileage, but eMaps is a pain when you are using the 'Directions' function. Just some weird glitches/behavior, essentially just being a pain in the ***.  I will be using this for work, I am a salesman in a steel company. So preferably I would like a widget (or app if all else fails) that is relatively simple, works well and is quick.
The exact mileage is needed for me to calculate 'freight rates' when I am preparing a quote for a customer. Needless to say, I cannot afford to tag another 10-15 mins onto this simple process everytime i have to get a freight rate, which is what ends up happening when using 'eMaps'.
Thank-you to everyone for your time and help!
Sincerely,
Otto
Centennial Steel

         I am wondering if there are any widgets available that will let me calculate the distance (in miles) between two locations (within the USA)
(If need be I could also work with a widget or app that will provide the distance between only cities and as opposed to specific addresses)  
One with a map would be nice, but I'd be totally fine and super happy with the simplest of widgets to calculate mileage.
If there are no widgets that do this, then could someone suggest a good app that does this?   I have used 'eMaps' for calculating the mileage, but eMaps is a pain when you are using the 'Directions' function. Just some weird glitches/behavior, essentially just being a pain in the ***.  I will be using this for work, I am a salesman in a steel company. So preferably I would like a widget (or app if all else fails) that is relatively simple, works well and is quick.
The exact mileage is needed for me to calculate 'freight rates' when I am preparing a quote for a customer. Needless to say, I cannot afford to tag another 10-15 mins onto this simple process everytime i have to get a freight rate, which is what ends up happening when using 'eMaps'.
Thank-you to everyone for your time and help!
Sincerely,
Otto
Centennial Steel

Similar Messages

  • Calculate distance between Latitude and Longitude

    Hi All,
    I have one Latitude and Longitude points. I need to calculate distance between them.
    Right now we are using HAVERSINE formula but the query takes longer time to complete.
    Reference: http://www.movable-type.co.uk/scripts/latlong.html
    Please assist on this.
    Thanks in advance.

    Check this link...
    http://www.mrexcel.com/forum/excel-questions/202255-calculating-distance-between-two-latitude-longitude-points.html
    I never did this before, but gave it a try using the formula mentioned in that link..
    Data:
                       Lat                      Long                               R =  6,371 (Radius of earth (approximated)) 
    Origin:        44.844263(B2)      -92.914803(C2) 
    Destination: 44.822075(B3)     -92.912498(C3)
    Formula used:
    A: =SIN(ABS(B3-B2)*PI()/180/2)^2+COS(B2*PI()/180)*COS(B3*PI()/180)*SIN(ABS(C3-C2)*PI()/180/2)^2
    B: =2*ATAN2(SQRT(1-A),SQRT(A))
    C: =R*B                  --->  DISTANCE!!!!
    WITH t AS
            (SELECT POWER (
                       SIN (ABS (44.822075 - 44.844263) * ( (22 / 7) / 180 / 2)),
                       2)
                    + COS (44.844263 * ( (22 / 7) / 180))
                      * COS (44.822075 * ( (22 / 7) / 180))
                      * POWER (
                           SIN (
                              ABS (-92.912498 - (-92.914803))
                              * ( (22 / 7) / 180 / 2)),
                           2)
                       E2
               FROM DUAL)
    SELECT (2 * ATAN2 (SQRT ( (1 - E2)), SQRT (E2))) * 6371
      FROM t;
    Check if this gives correct values... (I did not verify this properly.. ) And this is faster in my opinion..
    Please post your code for better suggestions from volunteers...
    Cheers,
    Manik.

  • Diversity - Distance between Antennas

    Considering both antennas are similar-type and gain the two imp criterias i read in achiveing Diversity is
    1. Antennas should be placed close enough to each other so that the RF coverage area is nearly identical.
    2. The receiving antennas are spaced sufficiently apart to achieve independence (no coupling) between the received signals.
    So the distance between both the antenna would be important.
    In a cisco doc,
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008019f646.shtml
    For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    Hence for 2.4GHz wavelength,
    Dist bet diversity Ant = 12.5cms Or 25cms or 37.5cms or 50cms
    now from below POST:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc18267
    The spacing can be in multiples but is best in multiples of odd numbers. 1x or 3x. This allows for the phase to be always 100% out for the opposing antennae. 2x could cause phase shift overlay and could result in both antennae receiving the same phase shift differentiation.
    Is this true? then my choise would narrow down to "Dist bet diversity Ant=12.5cms or 37.5cms'
    But from below POST iam confused regarding point 1 and 2 (I have put them pointwise just for reference)
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc0332d
    1. Never should you have the antennas exactly one wavelength away from each other. For the frequency of 2400, one wavelength is 4.92"... so any distance that is not a multiple of 4.92 and no more than a multiple of 4 is recommended.
    2. You should use 1/2 wavelength distances and to be safe no more than multiple of 3.
    My Questions are
    1. Should the distance between my Antennas for diversity be any len more than 12.5 cms and less than 25cms or more than 37.5cms and less than 50cms?
    2. Is it that the distance between my Antennas for diversity should not be exactly equal to the multiple of wavelengths? (12.5cms, 25cms, 37.5cms, 50cms)
    3. Is it that i have to use only odd wavelengths multiples? (12.5cms, 37.5cms) and should not use even multiples?
    4. The use 1/2 wavelength distances between the antennas is diversity. Is it ok? or is the minimum 1 wavelength as specfied in the cisco doc.
    Also from the below POST iam confused regarding the MAX distance:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1dd7905b
    "Distance beyond 1-2 wavelengths is not critical. Since the antennas are not transmitting and/or receiving at the same time,there is no real chance of overloading the other antenna or radio front-end. "
    There's not really a "max distance" as far as diversity is concerned. By placing the antennas some distance apart (the minimum, I believe, is ~one wavelength), you optimize the chance that a signal that is null (or interfered with) on one side, isn't on the other.
    my question is
    5. Is there a max distance between the antennas in diversity (like we read 4xwavelength) or there is no max distance? then wont there evolve a different RF coverage area for both the Antennas?
    Another important question
    > If my wireless card supports 5GHZ and 2.4GHZ and hence my antennas would be dual band. Then to achive antenna Diversity, what would be the distance between the two antennas? The minimum distance should be 1 wavelength, so For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    For a dual band antenna? how much should it be? Whats the min and max.
    someone please can help me solve the huge confusion in my mind :)

    First, let me say that this is certainly a well-done post, good job of back-tracking the links and expressing your questions.
    The next thing is that there are more than a few nuances when dealing with RF and signal transmission and propagation, so to cover a specific topic fully would frequently cover more space than provided.
    With all that dancing out of the way ;-), I'll take a shot at answering your questions...
    "Is there a max distance ... ?"
    Well, no, not really ... but there is a max *effective* distance and a fairly specific point of diminishing returns (as mentioned in the linked posts).
    The design and implementation goal is to create a sort of "binocular view" with the antennas, such that the chance of a "null" is reduced, such that the signal / pattern developed from the diverse pair of antennas will create at least one clean and clear (reduced multipath, reduced nulls, possibly better line of sight)signal to (ideally) every client in the coverage area.
    Even though only one antenna is active at any given time, having any conductor within the radiated field will distort the transmission envelope, either positively (in the case of a Yagi) or negatively (in the case of a grounded conductor, like a sprinkler head).
    The amount of the distortion, and the shape of the distortion are functions of the size and shape of the parasitic element. The effect is so variable that it is one of the foundations for the contention that a comprehensive site survey is not really an option, it's mandatory; it's truely the only way to see what adaptations are necessary to make the "rules of thumb" function in the specific location.
    Regarding antennas handling multiple bands:
    The antennas (in this case) are close to resonant multiples. The differences are such that the logical / electrical length can be adjusted by adding inductive or capacitive loads at the transmitter or feed point.
    Even though the physical shape of the antennas may be different from model to model, the electrical load characteristics for a given band / antenna remain similar, so electronically compensating to make an antenna primarily designed for 2.4GHz function well for 5.6GHz is not especially difficult. Going from the longer wavelength to the shorter is more effective and easier to design than trying to go the other way.
    For example, a quarter-wave 2.4GHz antenna is easily compensated to create a good half wave (or loaded 5/8) 5.6GHz antenna.
    So, (finally) to provide the proper spacing for a diverse pair of multi-band antennas, figure for the longer wavelength (2.4GHz in this case) and the (roughly double) distance is likely to be acceptable for the higher wavelength. The spacing doesn't have to be exact; personally, I used to shoot for ~18" (variable with the mounting location and antenna type)and I always had pretty good luck, according to the follow-up survey.
    Because of the jillions of possible variables, you can't just calculate and hang the antennas and be done ... a survey should be done to verify the installations and to make educated adjustments that will optimize the system for that specific location and environment.
    The initial calculations are ideal guidelines, then you make adjustments to cover things like metal wall studs, sprinkler heads, the boss' favorite "wall o' vines" ... you will rarely get a perfect environment, adjustments are almost always required.
    It's late and I'm starting to babble ... ponder the above and let us know if it helped any. There are a great bunch of experienced folks here, and I think this will be the start of a great discussion.
    Good Luck
    Scott

  • Calculating co-ordinate distances between specific atoms

    Hi,
    Below is some code to calculate distances between all pairs of atoms. However, i need to make it slightly more specific by only calculating the distance between certain pairs of atoms
    input
    ATOM 5 CA PHE 1 113.142 75.993 130.862
    ATOM 119 CA LEU 7 113.101 72.808 140.110
    ATOM 138 CA ASP 8 109.508 74.207 140.047
    ATOM 150 CA LYS 9 108.132 70.857 141.312
    ATOM 172 CA LEU 10 110.758 70.962 144.119
    e.g distance between all pairs for atoms 5, 119, 150 and 172 (say), last three columns are x,y and z co-ordinates
    code it self
    import java.util.*;
    import java.io.*;
    public class Distance {
    public static void main(String[] args) {
    System.out.println("***Campbells PDB Distance Calculator***" + "\n");
    new Distance();
    System.out.println("\nResults printed to file DistanceCalculations" + "\n");
    System.out.println("\nDue to nature of code, if rerun results will be appended to the end of previous run.");
    public Distance() {
    Vector atomArray = new Vector();
    String line;
    try{
    System.out.println("Enter PDB file:" + "\n");
    BufferedReader inputReader =new BufferedReader (new InputStreamReader(System.in));
    String fileName = inputReader.readLine();
    if ( fileName !=null) {
    BufferedReader inputDistance = new BufferedReader (new FileReader (fileName));
    while (( line = inputDistance.readLine()) !=null && !line.equals(""))
    Atom atom = new Atom(line);
    atomArray.addElement(atom);
    for (int j=0; j<atomArray.size(); j++) {
    for (int k=j+1; k<atomArray.size(); k++) {
    Atom a = (Atom) atomArray.elementAt(j);
    Atom b = (Atom) atomArray.elementAt(k);
    Atom.printDistance (a,b);
    } //if
    } //try
    catch (IOException e) {
    System.out.println("Input file problem");
    } catch (Exception ex) {
    System.out.println (ex);
    class Atom {
    public double x, y, z;
    public String name;
    public Atom(String s) throws IllegalArgumentException {
    try {
    StringTokenizer t = new StringTokenizer (s, " ");
    t.nextToken();
    this.name = t.nextToken();
    for (int j=0; j<3; j++) t.nextToken();
    this.x = new Double(t.nextToken()).doubleValue();
    this.y = new Double(t.nextToken()).doubleValue();
    this.z = new Double(t.nextToken()).doubleValue();
    catch (Exception ex) {
    throw new IllegalArgumentException ("Problem!!!! :-(");
    public String toString() {
    return "atom : " + name + "(x=" + x + " y=" + y + " z=" + z + ")";
    public double distanceFrom (Atom other) {
    return calculateDistance (x, y, z, other.x, other.y, other.z);
    public static double calculateDistance (double x1, double y1, double z1, double x2, double y2, double z2) {
    return Math.sqrt(Math.sqrt(Math.pow(Math.abs(x1-x2),2)+Math.pow(Math.abs(y1-y2),2))+Math.pow(Math.abs(z1-z2),2));
    public static void printDistance (Atom a, Atom b) {
    try{
    FileWriter fw = new FileWriter("DistanceCalculations", true);
    PrintWriter pw = new PrintWriter (fw, true);
    if
    (a.distanceFrom(b) <9){
    pw.println("Distance between " + a.toString() + " and " + b.toString() + " is " + a.distanceFrom(b));
    pw.flush();
    pw.close();
    } // if??
    } //try loop
    catch(IOException e) {
    System.out.println("System error");
    }

    ok, essentially
    want to calculate distance between to ranges. Say
    range 1 is the first three, range 2 the rest. THen
    calculate distance between all possible pairs between
    these two rangesYes - and no doubt that any number of people here could write it for you. But that's not what the forum is about. So what, exactly, is preventing you from doing it?
    Sylvia.

  • Excel formula to calculate the distance between multiple points using lat/lon coordinates

    I'm currently drawing up a mock database schema with two tables: Booking and Waypoint.
    Booking stores the taxi booking information.
    Waypoint stores the pickup and drop off points during the journey, along with the lat lon position. Each sequence is a stop in the journey.
    How would I calculate the distance between the different stops in each journey (using the lat/lon data) in Excel?
    Is there a way to programmatically define this in Excel, i.e. so that a formula can be placed into the mileagecolumn
    (Booking table),
    lookup the matching sequence (via bookingId)
    for that journey in the Waypointtable
    and return a result?
    Example 1:
    A journey with 2 stops:
    1 1 1 MK4 4FL, 2, Levens Hall Drive, Westcroft, Milton Keynes 52.002529 -0.797623
    2 1 2 MK2 2RD, 55, Westfield Road, Bletchley, Milton Keynes 51.992571 -0.72753
    4.1 miles according to Google, entry made in mileage column
    in Booking table
    where id
    = 1
    Example 2:
    A journey with 3 stops:
    6 3 1 MK7 7DT, 2, Spearmint Close, Walnut Tree, Milton Keynes 52.017486 -0.690113
    7 3 2 MK18 1JL, H S B C, Market Hill, Buckingham 52.000674 -0.987062
    8 3 1 MK17 0FE, 1, Maids Close, Mursley, Milton Keynes 52.040622 -0.759417
    27.7 miles according to Google, entry made in mileage column
    in Booking table
    where id
    = 3
    I understand that 100% accuracy is not possible, so it will not be an issue.

    http://www.cpearson.com/excel/LatLong.aspx
    and
    http://www.contextures.com/excellatitudelongitude.html

  • Distance between V490 an SE3500 as DAS ?

    hi there,
    i've a question concerning the suggestive max distance between sun v490 (2 Gb HBA) and the StorEdge3500 FC-Array.
    a customer wants to create physical separation of his servers. so there are two v490 servers cross-connected to two
    3500er fc-arrays. he plans to divide them into two rooms but with given access to both storage-systems.
    there are no san-switches in use, so they are direct attached to the storage.
    the max. theoretical length of a multimode optical fibre cable is round about 500 m - but does anyone know
    if this is really possible ? or is the latency to high then ?
    all in one i need to know if there can be really problems when the given enviroment (attachted in one rack) is
    divided into to rooms without changing any HBAs or implementing some sansw - only by changing the optical
    fibre cables ?
    are there any whitepapers concerning this issue and the maximal distance with the 3500er acting as direct-attatched-storage ?
    best regards
    Stefan
    (sorry about my english :) )

    Hello bmeecg,
    Welcome to the NI forums!  If I understand your question correctly, you wish to calculate the instantaneous heart rate from your ECG (the inverse of your R-R interval).  I would recommend using the Peak Detection vi (Functions Palette»Signal Processing»Signal Operation) to determine the location of the R wave (since it is the largest magnitude, you could set a threshold above your P and T waves so that it only picks up the R wave).  The calculation for time is in the detailed help for the Peak Detection vi (Ctrl+H»Hover over the VI»Detailed Help).
    I also found this forum which has a VI that reads an ECG and then does a lot of analysis. Maybe this would help you out as well.
    And just FYI, the Counter/Timer forum is oriented toward our counter/timer boards (e.g. the PCI-6602),  the Multifunction DAQ forum probably would have more of the type of people that could help with this issue.
    However, please post back here if you have more questions about this.
    Neal M.Applications Engineering       National Instruments        www.ni.com/support

  • What is the maximum distance between a time capsule and an airport express?

    What is the maximum distance between a time capsule and an airport express?

    You can only "extend" the signal one time, so you need to have the AirPort Express located approximately 1/2 to 2/3 of the distance from the Time Capsule to the area that needs more wireless coverage.
    I doubt that this will help much since you have a very challenging setup. Wireless is really only for "same room" or "nearby rooms" around the corner.
    To do this correctly you will need to use an Ethernet cable connection from the Time Capsule to the AirPort Express, which could then be located close to the xBox.
    If it is not possible to run the Ethernet cable, you might look at a pair of Ethernet powerline adapters to send a "psuedo" Ethernet signal over the AC wiring in your home.
    This will not be anywhere near the performance of a regular Ethernet cable, but it will likely be much better than wireless.
    Since Ethernet over powerline (EOP) is somewhat unpredictable, you would want to have a very clear understanding of the store's return policy in case things don't work out as hoped.  Any computer / electronics superstore will have a selection of powerline adapters to choose from.

  • Calculating distance between Lat Long points

    I'm wondering if anyone out there has done this before in LabVIEW.  Does anyone have a model of the "Great Circle" calculation?  I have a file of lat/long points that I need to calculate the distance between.  Any help??
    V/r,
    Chris

    I haven't done it in LV, but if you go to Wikipedia and search for Great Circle Distance you'll find the formual and an example.

  • Distance between zipcodes

    Want to find distance between two zipcodes that have their latitude and longitude stored in a table.
    The table is as follows
    CREATE TABLE distance (zipcode VARCHAR2, LNG NUMBER, LAT NUMBER)
    I couldn't come up with a calculation or understand the mathematical calculation on line.. Can you help me with some stored procedure or straight query that will do..?
    Thanks

    Hi
    Your best bet here is to convert the long/lat values to the spatial 'sdo_geometry' and use the sdo_geom.sdo_distance function.
    -- create table
    CREATE TABLE distance (zipcode VARCHAR2(5), LNG NUMBER, LAT NUMBER);
    -- Add sample rows
    insert into distance values (90210,-118.4099,34.0925);
    insert into distance values (90806,-118.1894,33.8039);
    -- add geometry column
    alter table distance add geom sdo_geometry;
    -- convert coordinates to geometry
    update distance set geom = sdo_geometry(2001,8265,sdo_point_type(lat,lng,null),null,null);
    commit;
    -- example usage
    select from_zipcode,to_zipcode,sdo_geom.sdo_distance(from_geom,to_geom,0.005,'unit=mile') distance
    from
    (select zipcode from_zipcode,geom from_geom
      from distance
    where zipcode = '90210') f,
    (select zipcode to_zipcode,geom to_geom
      from distance
    where zipcode = '90806') t;
    FROM_ZIPCODE TO_ZIPCODE DISTANCE              
    90210        90806      17.9768483148904       This distance is of course 'straight line' and not driving / walking time!
    The '8265' above is the spatial reference identifier and I think is the right value to use here, although I'm sure my American counterparts will be happy to correct me if I have this wrong (i'm based in the UK and don't use American data that much anymore....)
    If you wish to do any other analysis (such as nearest neighgbour etc) you will need to add metadata and a spatial index to this example....
    You could implement the Great Circle calculation yourself and completely avoid using locator/spatial altogether but this would involve more code (= time = money).
    Steve

  • Accurate distance between points, lat/long to miles?

    Hi,
    I have a bunch of points as lat/long data in SRID 8307 format. From reading this forum, I understand than in Oracle 8.1.7 to get accurate distances I need to transform these points into a cartesian coordinate system.
    My data is US-based, so I am using SRID 32775 in a command like the following:
    EXECUTE SDO_CS.TRANSFORM_LAYER('restaurant_locations', 'location', 'restaurant_locations_32775', 32775);
    This creates a new table with new point geometries and a rowid that I assume points back to the original 8307 table.
    I've tried creating an index on the new table with cartesian coordinates, but I get this error:
    CREATE INDEX restaurant_csp_idx
    ON restaurant_locations_32775(geometry)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS('SDO_LEVEL=9 sdo_commit_interval=1000 layer_gtype=POINT' );
    2 3 4 CREATE INDEX restaurant_csp_idx
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13200: internal error [POINT] in spatial indexing.
    ORA-29400: data cartridge error
    ORA-13003: the specified range for a dimension is invalid
    ORA-06512: at "MDSYS.MD", line 1673
    ORA-06512: at line 1
    ORA-13003: the specified range for a dimension is invalid
    ORA-06512: at "MDSYS.MD", line 1673
    ORA-06512: at line 1
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    Here's the entry for the 32775-transformed points in the metadata table:
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES (
    'restaurant_locations_32775',
    'geometry',
    MDSYS.SDO_DIM_ARRAY( -- 20X20 grid, virtually zero tolerance
    MDSYS.SDO_DIM_ELEMENT('X', 1951908.05, 16230214.8, 0.005),
    MDSYS.SDO_DIM_ELEMENT('Y', -6858801, 13168375.5, 0.005)
    32775 -- SRID (reserved for future Spatial releases)
    My questions are;
    Do I need to build a new spatial index? It seems like once I transform the lat/long data to cartesian I need to build a new index as well ( on the 32775-transformed table ).
    Is this the best way to approach distance queries with lat/long data? It seems like a lot of work, plus the second index and table really add to the overhead if a location changes.
    Any ideas on why I can't build an index on the output table from my SDO_CS.TRANSFORM_LAYER() call? I used SDO_TUNE.ESTIMATE_TILING_LEVEL() and SDO_GEOM.VALIDATE_GEOMETRY() and got no complaints. I'm at a loss.
    I also can't seem to get set autotrace to work. It works fine for any non-spatial query, but if I try to trace a spatial query, I get this error:
    SQL> SELECT /*+ INDEX(restaurant_locations restaurant_sp_idx) */ r_a.restaurant_id
    FROM restaurant_locations r_a, restaurant_locations r_b, user_sdo_geom_metadata m
    WHERE r_b.restaurant_id != r_a.restaurant_id
    AND SDO_GEOM.WITHIN_DISTANCE(r_a.location, m.diminfo, 1, r_b.location, m.diminfo) = 'TRUE'
    AND r_b.restaurant_id = '5999';
    2 3 4 5
    RESTAURANT_ID
    456999
    456999
    Execution Plan
    ERROR:
    ORA-01031: insufficient privileges
    SP2-0612: Error generating AUTOTRACE EXPLAIN report
    Statistics
    49 recursive calls
    28 db block gets
    83 consistent gets
    0 physical reads
    0 redo size
    415 bytes sent via SQL*Net to client
    425 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    11 sorts (memory)
    0 sorts (disk)
    2 rows processed
    I've looked at the arraysize, and I've made sure to run the trace-enabling sql and granted plustrace to my DB user.
    Thanks for any help,
    _jason                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Jason,
    The error on the index create is likely due to data being outside the bounds of the coordinate system as specified in user_sdo_geom_metadata.
    If the data is stored in the point field then you can check the bounds by doing queries like the following, altering them for your table/column name (my table is cities_test, the geometry column name is location):
    SQL> select min(a.location.sdo_point.x) from cities_test a;
    MIN(A.LOCATION.SDO_POINT.X)
    -157.80423
    SQL> select max(a.location.sdo_point.x) from cities_test a;
    MAX(A.LOCATION.SDO_POINT.X)
    -71.017892
    SQL> select max(a.location.sdo_point.y) from cities_test a;
    MAX(A.LOCATION.SDO_POINT.Y)
    61.178368
    SQL> select min(a.location.sdo_point.y) from cities_test a;
    MIN(A.LOCATION.SDO_POINT.Y)
    21.31725
    Do you need to build a spatial index?
    Only if you are going to use spatial operators such as sdo_filter, sdo_relate, sdo_within_distance, and sdo_nn. If you have no requirements for these operators, then there is no reason to build a spatial index. From the trace query at the end of the posting, I suspect that you will need to have a spatial index.
    Is this the best approach? Maybe, it depends on what your requirements are. If the data is static and performance is your highest priority, then maybe it is. If you have a requirement for a spatial index, then certainly it is. If you are only getting the distance between a few few known geometries, and you don't care about the time it takes to convert data on the fly, then you can use the sdo_cs.transform function within the sdo_geom.sdo_distance function to convert both geometries to the equal area projection.
    The validation routines should have caught this - I checked and they do not for 8.1.7, and they do for 9i.
    Regarding the set autotrace command, I'm not sure why it isn't working for you. It works for my generic scott/tiger account from a typical install.
    hope some of this is useful.
    dan
    null

  • On file open: "This document contains JavaScript code for a widget that no longer exists."

    I had an existing, functional datepicker in a web page.
    Recently I downloaded the UI Datepicker in the Widget Browser and installed it in DW CS5. Now every time I load the file that calls the datepicker that I added myself, a warning opens with the following text:
    This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
    Widget: $("#reservDateBegin").datepicker();
    Widget: $("#reservDateEnd").datepicker();
    Clicking "Yes" opens the file and shows the search box at the bottom of the window with [current document] in File and $("#reservDateEnd").datepicker(); in Matched Text. Clicking "No" just opens the file.
    The error is wrong, since installing the widget is what caused the error in the first place!
    How can I get DW to stop showing this message?
    Thanks for any help.

    I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
    Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
    This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
    Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
    http://www.eventidewebdesign.com/public/contactUsCleaned.php
    http://www.eventidewebdesign.com/public/headerCleaned.php
    The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file.

  • Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?

    Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?
    I have already found the Apple Widget Builder (http://widgets.itunes.apple.com/builder/) and that works fine if you want to link to the "App Store", but I want to know if there is a way to "open an app" that is already installed on the iPad instead of double tapping the home button to switch between apps. (I know using the home button is very simple, but I am trying to find an even easier way to just "tap a widget" or "link" that will open iTunes U right up) I am only asking if this is possible for people who may have a hard time running an iPad at the beginning.
    I appreciate any help, thanks!

    I appreciate your help, but I had already looked at LinkMaker and I thought that was my answer, but as far as I could tell that still only links to an app in the app store. Yes it will link to iTunes U in the app store and you can then hit Open, but that is too drawn out of a process. We would like to know a way to just open the app directly.
    Thank you!

  • HP Envy 17t-j100 Distance between USB Slots suggestion

    I intended this post as a recommandation for HP. 
    I have an HP Envy Touchsmart 17t-j100 and everything is excelent up until now.
    The only thing that is very annoying is the distance between USB ports. PLEASE increase the distance between USB ports for the future models. I have a lot of problems tryng to connect everything I need.
    Even if I try to open the DVD drive, it will stuck in my USB device. I mean how much difficult is to put a distance of 1 cm between them? 
    If the USB cables are the standard size, there are no problems but most of the USB devices nowadays are much more wider than a standard USB cable and I keep having problems.
    I mean it's a 17" laptop, there is plenty of space on the sides. In the end, it's better to drop the DVD drive and put a VGA slot instead, but with bigger distance between USB ports.
    I am planning to buy another ENVY in the future but I really want my new laptop to have USB ports with a wider distance bewtween them. 
    Thank you very much and I hope HP will take care of this little problem on the future models.
    Have a nice day.
    This question was solved.
    View Solution.

    Hi @catapara89 ,
    Thank you for visiting the HP Support Forums and Welcome. Thanks so much for taking the time to let us know of your suggestions on the USB slots. It is important and has been viewed.
    Have a great week.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • How to calculate hours between two dateTime node in BPEL.

    In my BPEL there's a requirement need calculate hours between two dateTime type..
    I tried 2 solutions, both of them failed:
    1. use xslt calculate duration(xml type, like PT12H) between two dateTime, and then use embedded java code to get the hours.. The problem is : I need to parse the xml duration format...(like this real one: -P80DT17H47M36S....), and to parse it in java , maybe have the same problem with solution 2..
    * [Subtracting 2 dateTime values into a duration using XPath 2.0|http://blogs.oracle.com/rammenon/2007/07/subtracting_2_datetime_values.html]
    2. use embed java code, but it seems we can't use some class in embedded java code:
    my code(input begin, end both dateTime in xml. output: diff, int in xml):
    1 System.out.println("\n\nTimeTestBegin");
    2 String begin=getVariableData("begin").toString();
    3 String end=getVariableData("end").toString();
    4 System.out.println(begin+"-----"+end);
    5 //Class c1=Class.forName("javax.xml.datatype.XMLGregorianCalendar");
    6 //Class c2=Class.forName("javax.xml.datatype.DatatypeFactory");
    7 //System.out.println(c1.getName());
    8 //System.out.println(c2.getName());
    9 javax.xml.datatype.XMLGregorianCalendar beginTime = javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar(begin);
    10 javax.xml.datatype.XMLGregorianCalendar endTime = javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar(end);
    11 long diff=beginTime.toGregorianCalendar().getTimeInMillis()-endTime.toGregorianCalendar().getTimeInMillis();
    12 setVariableData("diff",String.valueOf(diff/1000/3600));
    13 System.out.println("DIFF======"+diff/1000/3600);
    14 System.out.println("TimeTestEnd");
    it's said can't compile java class, but can't find the detail error, I think the problem is how to import java class to embedded java code activity(use full package name like above code don't work), when I remove line 9-13, no compile error..
    BTY: Jdeveloper is a IDE support java, but why the embedded java activity's edit window only have a simple "java code" editor, too simple that it can only edit you code snippet...
    3.There's another sulotion: extend BPEL xpath functions(add a new function), but in my project, modify BPEL server(soa server)'s config file is not allowed..
    Anyone know easy solution to my problem?
    Thanks.

    Hi, All,
    I found the cause. Sorry, it's my mistake..
    below line have a DatatypeConfigurationException:
    javax.xml.datatype.DatatypeFactory.newInstance()
    When I test my java code snippet, I coped the code snippet to one of my java class in eclipse, and put it in a method to check if there's compile error, but I didn't notice there's a "throws Exception"...
    the final java code snippet for test is :
    input: begin dateTime
    input: end dateTime
    output: diff int, how many hours in (begin-end)
    try{
    System.out.println("\n\nTimeTestBegin");
    String begin=getVariableData("begin").toString();
    String end=getVariableData("end").toString();
    System.out.println(begin+"-----"+end);
    javax.xml.datatype.XMLGregorianCalendar beginTime = javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar(begin);
    javax.xml.datatype.XMLGregorianCalendar endTime = javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar(end);
    long diff=beginTime.toGregorianCalendar().getTimeInMillis()-endTime.toGregorianCalendar().getTimeInMillis();
    setVariableData("diff",String.valueOf(diff/1000/3600));
    System.out.println("DIFF======"+diff/1000/3600);
    System.out.println("TimeTestEnd");
    }catch(Exception e){
    e.printStackTrace();
    }

  • How to calculate days between 2 dates excluding public holidays over SAP ?

    Hi
    Have a universe over SAP data. Trying to calculate days between 2 dates. SAP holds Public Holiday data in various tables e.g  Thol and data is updated via scal. Using my univeres as a source I want to run  reports for different countries so need to have various bank holidays not just UK. In SAP function modules handle this. Has anyone designed a solution to cater for this situation in a universe ?
    Thanks in advance
    M

    Hi,
    I assume you mean SAP R/3 (ECC) when you write SAP and SAP BW.
    Are you using BW? If so, I would load the data into SAP BW, create a query using customer exit variables and build your universe on top of that...
    -J

Maybe you are looking for

  • Regular Expressions - How can I read the char of a text using the index?

    Assuming that, this is a findWord function which searches in a text and returns the indexes that a given word is located. How to read the characters that are located some pos before each index? Kind regards, Vag. public static void findWord(String ty

  • HT1947 where is the devices list on itunes?

    where is the devices list on itunes?

  • An exception occurred in the method Cache.init - After ATG RUP 7 and JDK 6

    Hi All, We have migrated from JDK 1.4 to JDK 1.6 - 401561.1 We have applied ATG RUP 7 - 783600.1 Application - 11.5.10.2 Database - 10.2.0.4 When tryng to open the login page, its trying for long time and ending in internal server error and could see

  • G/L settings

    Hi, Client wants the Profit centre to be the mandatory filed while posting to G/L a/c. Please suggest how can I do this.

  • OS X and Processor Freeze

    With Lion and now Mountain Lion, I am experiencing frequent "freezes" with my Early 2008 Mac Pro.  While I have been uable to determine a cause the associated effect is that some action starts the beachball spinning.  When this happen I watch process