MapInfo Pro

 View Only
  • 1.  rotated rectangle drawing between 2 points

    Posted 10-17-2022 02:31
    Hello,

    Could you guide me in the best way to do the following please?

    I have a set of point A, 1, 2, 3 with lat/long
    I'd like to draw a rectangle (like a strip) with l and L between the points like below.
    I know the lat/long , so I can find out the distance 'L', and I also know 'l' which is 100m.
    Question is about how to draw the rectangle so the point are in the middle of 'l'

    Should I use the rotated rectangle function, but then how to get the points in the middle of the small side 'l'?
    Or is it better to draw 2 rectangles with a side of 'l'/2

    Thanks


    ------------------------------
    Alban Spella-Barberet
    NBN Co Limited
    North Sydney NSW
    ------------------------------


  • 2.  RE: rotated rectangle drawing between 2 points

    Posted 10-17-2022 07:51
    Hi Alban,

    I'm not sure I understand, but can't you just draw straight lines connecting the points then create a 50m buffer around each one?

    ------------------------------
    James Nolet
    Dooley Mitchell & Morrison Pty Ltd
    Mentone, VIC, Australia
    ------------------------------



  • 3.  RE: rotated rectangle drawing between 2 points

    Employee
    Posted 10-17-2022 17:31
    Hi Alban

    How about this:

    You have your points and you now create lines between these four points as you described. It should look like here below.

    Now make your Rectangles layer editable and select your lines and from the Spatial tab, select Create Parallel from the Buffer dropdown.

    In the Create Parallel dialog, set the Distance to 50 meters, half the desired width, set it to offset to both sides, and check the options Close line ends and Create regions. Now hit OK

    The Create Parallel will create the "squared buffers" in the editable layer.

    Is this what you are looking for?

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 4.  RE: rotated rectangle drawing between 2 points

    Posted 10-17-2022 18:32
    Hello Peter;

    Exactly what I needed.
    I never used that menu before. Learning everyday.

    I will give a go in mapbasic.

    Amazing support from you as always.
    Best regards
    Alban

    ------------------------------
    Alban Spella-Barberet
    NBN Co Limited
    North Sydney NSW
    ------------------------------



  • 5.  RE: rotated rectangle drawing between 2 points

    Posted 10-18-2022 17:56
    Edited by Alban Spella-Barberet 10-18-2022 18:01
    Hello Peter,

    Is there a limitation with the 'Create parallel option' menu from the GUI when it comes to large number of objects to process?
    In the example below, it will just run for ever:





    I haven't tried in Mapbasic yet... would it be a better option?

    Interestingly, when using the regular buffer menu, it is much quicker for same data set.



    Thanks

    ------------------------------
    Alban Spella-Barberet
    NBN Co Limited
    North Sydney NSW
    ------------------------------



  • 6.  RE: rotated rectangle drawing between 2 points

    Employee
    Posted 10-24-2022 02:01
    Hi Alban

    Can you try to run it without checking Delete source objects?
    You can make another layer editable and the rectangles will get saved into that layer.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------