MapInfo Pro

 View Only
  • 1.  Arrowed lines from table

    Posted 10-30-2020 14:04
    I've got some data with 2 columns, start postcode and end postcode. I also have postcode centroids as points.
    I'm wondering if there's an easy way to create an arrowed line for each row in the table?

    Or if not an easy way, then a difficult way :-).

    Martin

    ------------------------------
    Martin Burroughs
    Oldham Council
    ------------------------------


  • 2.  RE: Arrowed lines from table

    Posted 10-31-2020 07:20
      |   view attached
    Martin,

    Over the (too many) years I have collected mbx tools that I thought would one day prove useful.  17yrs ago I saved one called Arrows40.mbx. Just tested it in V19 and with it's own sample data produced this map
    basically it requires a start and end table and a 3rd look up table for the arrows (i.e. start point A to end point 3, etc.). You can also vary the size/width based on extra columns (e.g. number of journeys, etc)  there is some explanation notes in the uploaded zip file.  Having never used it in anger myself I'll be delighted if it does the job for you!   Now does anyone need to rotate a map by drawing a line? only 23 years waiting to find a use for that one.

    Arrow tool is freeware I believe.

    Hope it works

    Nick





    ------------------------------
    Nick Hall
    Mapchester LTD
    nick.hall@mapchester.co.uk
    ------------------------------

    Attachment(s)

    zip
    arrow40.zip   322 KB 1 version


  • 3.  RE: Arrowed lines from table

    Posted 11-02-2020 17:44
    Hi Nick - amongst your mbx tools collection, do you have one that switches on/off the editing option for moving duplicate nodes in None of the Layers/the Same Layer? I did have one (like you, from way too many years ago!) but have lost it and is annoying when doing a lot of editing to have to go back & forwards to the Options/Map Preferences/Editing box. 
    Cheers
    Judy

    ------------------------------
    Judy Curson
    Ovato Print
    Auckland
    ------------------------------



  • 4.  RE: Arrowed lines from table

    Posted 11-03-2020 05:01
      |   view attached
    Judy,

    I have this one.

    works in v19.  adds a toggle to the right click map menu.


    hope that's what you meant!

    Nick



    ------------------------------
    Nick Hall
    Mapchester LTD
    nick.hall@mapchester.co.uk
    ------------------------------

    Attachment(s)

    zip
    MoveDuplicateNodes.zip   567 B 1 version


  • 5.  RE: Arrowed lines from table

    Posted 11-03-2020 22:29
    Absolutely perfect!!! Thanks very much Nick.

    ------------------------------
    Judy Curson
    Ovato Print
    Auckland
    ------------------------------



  • 6.  RE: Arrowed lines from table

    Posted 11-01-2020 16:15
    Hi Martin
    You can use the Spider Graph tool to create lines from one Postcode centroid to another Postcode Centroid.  You could then change the line styles to arrows.  Check out the post in this forum for "MapBasic Tool of the Week: Spider Graph" (19 June 2019).  I posted a reply where I showed a map which had Local Government Area to Local Government Area lines showing travel demand between the regions.   The Spider Graph tool can be used for creating lines from one to many locations, or one to one locations.
    Cheers Kalu

    ------------------------------
    Kalu Ribush
    Dept. Jobs, Precincts & Regions (VIC)
    Melbourne VIC
    ------------------------------



  • 7.  RE: Arrowed lines from table

    Posted 11-02-2020 10:14
    Hi Martin
    There is a MapCAD function "Create Lines from Table".
    It may already be autoloaded on the Spatial Tab >Create>Create lines from Table
    Create Lines from TableYou would need to create 4 columns for the start and end co-ordinates.
    Cheers


    ------------------------------
    John Ievers
    CDR Group
    Hope Valley, United Kingdom
    ------------------------------



  • 8.  RE: Arrowed lines from table

    Posted 11-03-2020 05:47
    Thanks everyone! Good to have a surfeit of possible solutions for once!

    ------------------------------
    Martin Burroughs
    Oldham Council
    ------------------------------



  • 9.  RE: Arrowed lines from table

    Posted 11-03-2020 09:22
    So, Nick's solution works...takes a very long time to process though, 1300 arrows probably took an hour or so. And clearly I need to finesse my data set!


    ------------------------------
    Martin Burroughs
    Oldham Council
    ------------------------------