Mapping points on distance?

Does anyone know of java program that can take a matrix of distances between some places and map these places by plotting them?
For example, if I have the matrix
     A     B     C     D
A    0     12    3      6
B   12     0     4      7
C    3     4     0      9
D    6     7      9      0then I would like to be able to plot the points that represent A B C and D somehow.
Any ideas?
Thanks
Andy

Just convert the points into screen space using simple math.I think the problem is that the OP doesn't have the coordinates of the points. Once you have them the maths is simple - but how do you go from a set of distances between adjacent points to a (plausible) set of coordinates?
In order to be plottable at all - as points in a 2D Euclidean space - these distances have to obey various rules: like AtoB=BtoA, AtoBtoC>=AtoC>0.
Maybe someone has a link to a discussion of an alogrithm for this. You could begin by putting the first two points anywhere. Trigonometry provides two options for the third point (so the resulting maps are mirror images). Then add the others based on some more trig and the distances given to the first three.
Sorry about the [Edits]

Similar Messages

  • Density map (points)

    Hello,
    Would you like some help...
    It is possible to implement a density map (points) in Oracle Spatial 11G
      Thank you.
              G. shock.

    Yes, using FMW MapViewer.   See MapViewer Concepts
    The MapViewer forum , MapViewer
    hope this helps
    thanks
    Steve

  • How to find a second point on a line given a point and distance

    Hi All,
    My requirement is: Given a point on a line and distance, I have to find the second point. All geometries are in LRS.
    I tried using SDO_LRS.LOCATE_PT, it is returning the second point from the start of the segment but I want to locate the point from the given start point. Kindly suggest in how to solve this.
    SQL Used:
    SELECT SDO_LRS.LOCATE_PT(a.shape, m.diminfo, 9, 0)
    FROM lrs_access_fiber a, user_sdo_geom_metadata m
    WHERE m.table_name = 'LRS_ACCESS_FIBER' AND m.column_name = 'SHAPE' AND a.unique_id = 1996;
    Regards
    Venkat

    Hi Luc,
    Thanks for the information. I have implemented this in a slightly different way like:
    1. Firstly, found the distance (Distance_a of the point selected from the start point of the segment using:
    SELECT SDO_LRS.GET_MEASURE(SDO_LRS.PROJECT_PT(a.shape, m.diminfo,MDSYS.SDO_GEOMETRY(2301, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1, 1), MDSYS.SDO_ORDINATE_ARRAY(xa,ya, NULL)) ), m.diminfo ) into Distance_a FROM LRS_ACCESS_FIBER a, user_sdo_geom_metadata m WHERE m.table_name = 'LRS_ACCESS_FIBER' AND m.column_name = 'SHAPE' AND a.unique_id = Input_Fiber_Id;
    2. Then added the given distance (b) to this computed distance (Distance_a ) to get the distance of the second point (Distance_b).
    Distance_b := abs (Distance_a + b);
    3. Then used SDO_LRS.LOCATE_PT with offset=0 and distance=Distance_b to get the second point.
    select SDO_LRS.LOCATE_PT(a.shape, distance_pt, 0) into point_geometry from LRS_ACCESS_FIBER a where a.unique_id = input_fiber_id;
    Please give your inputs and feedback.
    Regards
    Venkat

  • Mapping, pointing an incorrect url to the correct one?

    Hi All,
    Im in a desperate need to point, map, or do something to make one url go to the correct one. So basically, there have been 3,500 copies of flyers printed and gone out with an error on the url! Is there anyway to make the browser automatically open 'www.britanniastone.co.uk/tradequestions.html' when the url 'www.britanniastone.co.uk/tradequestions' is typed into browser??? Its is missing the html part of the url on the flyer.
    Really really appreciate some help!!

    <meta http-equiv="refresh" content="0; url="http://www.britanniastone.co.uk/tradequestions.html" />

  • How Do iOS 6 Map Points Of Interest Get Added to The Map

    Really love the new mapping.  Adding Points of Interest (PoI) through some mechanism of croud sourcing would seem to be the way Apple would go.
    Would welcome an App that took your location, had an optional photo capablity and stamped out a PoI.  PoI's should be croud sourced into the map by votes (aka Digg ish mechanism).  PoI's could also be voted off the map (Trapster).
    Imagine having a million customers out there supporting the PoIs in Apple's Maps...  Maybe there already is such a system / applciation / web site?  Anyone?

    I agree, I spent quit a bit of time updating open street map for the town I live in, adding all the car parks, ATM's as many shops as I could, hotels, Bars, adjusting the 1 way streets, adding footpaths  and even adding the bits of grass that would help people find their way. I had hoped apple would use this data given iPhoto started to pull from it.
    I would be more than happy to edit the maps around my town, and if certain trusted people were allowed this access it would increase the usablity of the new maps app dramamtically. Currently i use google maps saved to my home screen.

  • Add Anchor Points by Distance?

    I often need to add anchor points to a shape when I bring it into Cinema 4D to extrude and warp.
    The Object>Path>Add Anchor Points just adds an additional anchor between existing anchor points, effectively doubling the density every time its run.
    This isn't great for shapes with very long segments and very short segments. The short segments don't need subdividing, but the long segments need more subdivisions.
    Is there a script or plug-in that can add anchor points based on distance? Such as: Add an extra anchor point to a path every 10 mm?

    Navarro,
    You may do it in this roundabout way:
    1) Select the object and Select>Object>Direction Handles;
    2) Ctrl/Cmd+X to Cut;
    3) Press Delete;
    4) Ctrl/Cmd+F to Paste in Front;
    Now you have changed the path segments into separate paths;
    5) For each (path segment) path apply Object>Path>Add Anchor Points as needed or maybe (depending on version) use the more versatile free Divide script, see below;
    6) Select the paths and Ctrl/Cmd+J to join them (use Direct Selection in older versions).
    With the rectangle shown, it would be changed into two long horizontal paths and two short vertical ones; you can select each pair and add Anchor Points, or maybe just leave the vertical ones as they are.
    You may download the Divide script here:
    http://park12.wakwak.com/~shp/lc/et/en_aics_script.html

  • La mise au point a distance

    Bonjour,
    J'ai Labview 10 sous WinXp,
    je désire créer des exécutables avec mise au point à distance.
    J'ai suivi le tutoriel:
    http://digital.ni.com/public.nsf/websearch/7F95D43​D3F50FCAC8625710E000068E1?opendocument&Submitted&&​...
    Ca fonctionne en local, mais pas en distant...
    J'ai désactivé les deux par-feu, local et distant.
    Mais ça ne fonctionne pas.
    Avez-vous déjà eu ce problème?
    Cordialement 
    Emmanuel
    Pièces jointes :
    REMOTE DEBUG.zip ‏136 KB

    Le lien de votre post indique une connexion au serveur Web via une page Html (WebServer.Enabled) et pas le serveur de debug (DebugServerEnabled). Voulez-vous faire une prise de contrôle à distance via le serveur web ?
    En local il suffit de connaître l’IP du PC serveur par exemple http://192.168.1.2/MaPageWeb.html
    En distant cela est plus compliqué car cela signifie que vous passez par un routeur via internet, il faut donc indiquer dans l’adresse html l’IP public du routeur (et pas l’IP privé du PC). De plus dans le routeur, il fait rediriger le port 80 du serveur Web vers l’adresse du PC LabVIEW dans le réseau privé.
    Luc Desruelle | Voir mon profil | LabVIEW Code & blog
    Co-auteur livre LabVIEW : Programmation et applications
    CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
    CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

  • X6 Maps and recording distance

    Sorry to post in two rooms.
    I try and use the GPS and Maps to calculate the distance that I have walked. It sometimes starts!! but often not. When it does start it seems to stop part way on the walk and restarts on its own. What am I doing wrong?
    Thanks
    Richard

    Even if you are in an area open to sky if it is surronded by highrise buildings or tall trees  and as you mentioned the weather is cloudy / rainy.. the GPS lock will take considerably longer time.. may be upto 25-30 minutes..
    ..also if you are starting the applicatioon at a NEW place.(other than you last time switched it off..).. the time for the lock will be longer than being at the same place again..
    --------------------------------------------------​​-------------------------------------------------​-------​------------------------------------------​--------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Book Maps Points of Interest?

    Is there any way to shuffle the points-of-interests in the dialog box of a map page?  I cannot find a way, and it is very time consuming to have to delete the pois up to the point I want to add a new one.  Then re-enter them again.  Thanks.

    Hello Mr. Nelson,
    contact information can be found here:
    http://www.nokia.com/A4126575
    Keep us informed if you succeeded!
    Bests,
    illinjah
    Message Edited by illinjah on 23-Jun-2008 10:39 AM
    By clicking the "Kudos!" or the "Solution?" button on the right you can say "Thank You" and you´ll show the author and others that the post is useful.
    The day we stop improving is the day we stop being good.

  • How to create multiple expanding outlines with all points equal distance to original shape?

    Here's an extremely simple example.. It works with a circle or a square, obviously because it has the same height and width. The problem is when you have irregular shapes, (or in this case, an oval). I know I've seen solutions to this in the past, but I just can't think of how to word this question and find them again.
    I know you can create multiple strokes for an object in the appearance palette, but I'm looking for something more effective than just having colored stroke > white stroke > colored stroke> white stroke > etc.
    Here's a couple examples of the kind of effect I'm looking for.
    Any help would be greatly appreciated.

    You need to use Offset path. Object>Path>Offset path. Use negative numbers to go inside of an existing shape, positive to go outside.
    [ signature removed by forum host - advertising is not permitted ]

  • How can I view all my apple map pushpin Points of Intrest and pictures at once?

    Been trying to find a way to view all my Apple Maps Points of Interest pushpins all at once on the map screen.  As I drive along routing, or when I zoom in and out of map areas.  Saved bookmarks shows a long list, but I can't figure out how to just view all the pushpins on the map, so I can access my favorite locations and notes as I drive or plan a trip. 
    Maybe create a map pushpin folder to save only pictures related to the saved map bookmarks.  And save on phone or skydrive?  I still just go by memory.  But the list, notes and scenes are getting really numerous.  RV campsites, fishing, biking, skiing, services, phone signal, shopping, wifi, laundry, jobs, pictures, and much more. 
    I have an old HP mini that I like and use with my iphone 4.  Have no interest or extra money to be upgrading my devices every time the software/bloatware updates overload otherwise perfectly good phones and laptops.  Hope to be able to share with others how to have their phones and computers work for them, instead of the other way around. 
    Might stay with iPhone and even buy an ipad if they become more univerally compatible, or switch to all windows devices.  Not too happy with PCs bloatware programming these days either.  My old windows 98 laptop runs some really powerful programs.  Wonder how many people would buy Jeeps and such vehicles, if they could not easily drive them on regular city streets or highways?
    first posting in online support community in 15 years.  Home powered by Solar these days.  Can even park next to a street light and charge batteries.
    Thanks for reading and any useful info.  will try not to lose my login info

    Been trying to find a way to view all my Apple Maps Points of Interest pushpins all at once on the map screen.  As I drive along routing, or when I zoom in and out of map areas.  Saved bookmarks shows a long list, but I can't figure out how to just view all the pushpins on the map, so I can access my favorite locations and notes as I drive or plan a trip. 
    Maybe create a map pushpin folder to save only pictures related to the saved map bookmarks.  And save on phone or skydrive?  I still just go by memory.  But the list, notes and scenes are getting really numerous.  RV campsites, fishing, biking, skiing, services, phone signal, shopping, wifi, laundry, jobs, pictures, and much more. 
    I have an old HP mini that I like and use with my iphone 4.  Have no interest or extra money to be upgrading my devices every time the software/bloatware updates overload otherwise perfectly good phones and laptops.  Hope to be able to share with others how to have their phones and computers work for them, instead of the other way around. 
    Might stay with iPhone and even buy an ipad if they become more univerally compatible, or switch to all windows devices.  Not too happy with PCs bloatware programming these days either.  My old windows 98 laptop runs some really powerful programs.  Wonder how many people would buy Jeeps and such vehicles, if they could not easily drive them on regular city streets or highways?
    first posting in online support community in 15 years.  Home powered by Solar these days.  Can even park next to a street light and charge batteries.
    Thanks for reading and any useful info.  will try not to lose my login info

  • Google maps distance prefs

    So it seems that with iPhone OS 3.0.1 the old trick of indicating your preference for miles or kilometers within Maps by changing Settings->General->International->Region Format no longer works. I'm in the U.S. but want Maps to show distances in kilometers (not miles) since that's what the odometer in my car is set to. Now it appears that the distance units are automatically chosen based on either your current location or the country where the driving directions are requested.
    Does anyone have a fix for this and why can't there just be a units preference for Maps within the Settings application?
    Feature request for OS 3.0.2: add a button for Maps within the Settings app. so that units can be chosen.

    I came across this link.
    http://tutorial397.easycfm.com/
    Hope this might be helpful to you.

  • Google Maps - directions / distances in kilometres / kilometers / km

    I am in the UK. My phone has the following settings:
    time zone: London
    language: British English
    region format: United Kingdom.
    The Google Maps app displays distances and directions in miles. How can I get it to display them in kilometres / kilometers / km?

    i agree, its a right pain in the *** for those of us who are used to the metric system. road signs are only really relevant if you're in a car (as opposed to cycling or on foot)

  • Map defaults to kilometers

    The map application that comes with iPhones has somehow developed a glitch. Sometime (after an update) the map continually displays distances in kilometers no matter how many times I change it to miles. It just reverts back to kilometers!
    This phone (iPhone 4) in question is now my son's but I'm currently using it because I broke my iPhone 5c display. So I don't have any idea which update caused this glitch.
    Does anyone have a solution or has anyone else experienced this anomaly?

    I have had similar issues on a few sites that usually comes from BC not having the zip codes in their database.  Do you see a pin point in the middle of the ocean? If so then that particular zip code for that web app item isn't in the database, in which case contact support and have them add the zip code.
    If you don't see a pin point, I'm guessing maybe your default search radius might be way to large and it's trying to fit everything onto the screen within the search radius?
    Try setting the search radius to various levels and see what results you get and either way maybe contact Support with a list of specific zip codes being used to make sure they are in their database.

  • Error during Mapping

    Hello,
    My XI 2.0 scenario :
    Flat file => File adapter => XI => IDoc adapter => SAP 4.7
    The File adapter reads the file successfully & passes to the Integration Server. In XI XML message monitor (SXMB_MONI), I'm getting the following error ...
    ====================
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="Error during mapping" p2="--- Creating Java mapping com.sap.xi.tf._R_MsgMap_1_ --- Using MappingResolver with context URL /sapmnt/XID/global/xi/mapping/http%3A%2F%2FABCXYZ%2Ecom%2Fxi%2FDev%2F/bc52cef0be3411d8b277cade640701c6/ --- Load of com/sap/xi/tf/_MsgMap_1_.class from /sapmnt/XID/global/xi/mapping/http%3A%2F%2FABCXYZ%2Ecom%2Fxi%2FDev%2F/bc52cef0be3411d8b277cade640701c6/ failed. --- Class not found: com.sap.xi.tf._MsgMap_1_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MsgMap_1_ Class not found: com.sap.xi.tf._MsgMap_1_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND(MappingRuntimeException.java:91) at com.sap.aii.ibrun.server.map.RUMappingJava.load(RUMappingJava.java:119) at com.sap.aii.ibrun.server.map.RUMappingJava.execute(RUMappingJava.java:40) at com.sap.aii.ibrun.server.map.RURunner.run(RURunner.java:58) at com.sap.aii.ibrun.server.map.RUManager.run(RUManager.java:66) at com.sap.aii.ibrun.sbeans.map.MappingRequestHandler.handleRequest(MappingRequestHandler.java:62) at com.sap.aii.ibrun.sbeans.map.MappingServiceImpl.processFunction(MappingServiceImpl.java:72) at com.sap.aii.ibrun.sbeans.map.XMappingServiceObjectImpl0.processFunction(XMappingServiceObjectImpl0.java:24) at com.sap.aii.ibrun.sbeans.map.MappingServiceKey.processFunction(MappingServiceKey.java:10) at java.lang.reflect.Method.invoke(Native Method) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.invokeBean(RFCDefaultRequestHandler.java:73) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:47) at com.inqmy.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:69) at com.sap.mw.jco.JCO$Server.dispatchRequest(Unknown Source) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) ---" p3="" p4="">MAPPING.GENERIC</SAP:Code>
      <SAP:Text language="EN">Error during mapping</SAP:Text>
      </SAP:ErrorHeader>
    ====================
    MsgMap_1 is the Message Mapping defined - mapping the flat file structure to the IDoc structure.
    Do I have to do more than just create the Message Mapping in the Integration Repository ? In the Integration Directory, the Interface Mapping (from Repository) is used.
    Any help is greatly appreciated.
    Regards,
    Homiar.

    Hi Homiar,
    Need a little more detail.
    The directory points to the interface mapping.
    The Interface mapping points to the message mapping.
    What type of message mapping are you using?
    - Graphical mapping.
    - XSLT.
    - Java.
    - Abap.
    The main problem is "java.lang.ClassNotFoundException"
    Do other mappings work in your system?
    Jason

Maybe you are looking for

  • Unable at times to move a firefox window to a 2nd monitor

    I have 2 monitors. I open a firefox window on the primary, I then try to "grab" the window and move it to the 2nd monitor. I can't "grab" the window. After multiple attempts I can finally "grab" the window and move it.

  • MBAM 2.5 - Websites on Port 81 - SPN Question / Kerberos Issues?

    Because I'm installing the websites on a server that also has a ConfigMgr DP and MP, I'm picking a custom port during installation (port 81).  I pre-created the SPN with http/my.server.name:81 but I'm still having issues. The installer still complain

  • Selecting Date in iReports

    hello.. the part of my query in ireport for selecting the date range is tran_date BETWEEN (select trunc(sysdate,'year') from dual) AND (select last_day(trunc(sysdate,'month')-1)   from  dual) and when i run this in january every year, the year value

  • Should I update my laptop graphics card or is it possible?

    Should I update my laptop graphics card or not? Is it possible to do so? Please help My laptop model is HP Probook 4441s

  • CS5 export to transparent png - not working

    I have tried every think I know to get a png optimized transparently though fireworks cs5. I have read prior forum post, and watched several tutorials indicating ways to do this and when i try they do not work. I created the image in photoshop and ex