MapInfo Pro

 View Only
  • 1.  DrawTool

    Employee
    Posted 10-14-2022 03:22
    Edited by Peter Møller 10-14-2022 03:28
    A new version of DrawTools, v2.7.1, is about to go live in the MapInfo Marketplace.

    DrawTools comes with features that can be grouped into these groups that you see below.

    Node Features

    • Add Node: Allows you to add a node to a selected polyline at the closest end to where you clicked.
    • Add Start Node: Allows you to add a node to a selected polyline at the start of the polyline.
    • Add End Node: Allows you to add a node to a selected polyline at the end of the polyline.
    All these three tools work in a similar way. First, you need to select a polyline from the editable layer, then you click with the tool where you want the new start/end node to be. The tool will automatically add the new node to the polyline.

    • Remove Start Node: Allows you to delete the start node from the selected polyline.
    • Remove End Node: Allows you to delete the end node from the selected polyline.
    • Set Node Coordinate: Allows you to change existing nodes of a polyline or polygon by entering coordinates for these. See more details below.

      Transform Features

      Add to Region: Allows you to add area to an existing selected polygon. Make sure that the layer is editable. Draw the area/polygon that you want to add to the existing polygon. The drawn polygon will be merged/combined with the existing polygon.

      Remove from Region: Allows you to add area to an existing selected polygon. Make sure that the layer is editable. Draw the area/polygon that you want to remove from the existing polygon. The drawn polygon will be used to erase from the existing polygon. This could be holes you want to cut or areas you want to remove.

      Combine Selected into New: This allows you combine several selected objects and insert the new combined object into the editable layer. Note that the selected records will not be erased and that you can select from any layer, not just the editable layer.

      Add Gaps: Allows you to create small polygons where you click in the map. These polygons will only be created if there is a gap in the polygons in the editable layer where you clicked. The gab will be created as a new polygon in the editable layer.

      Insert Features

      Arrow: Allows you to draw an arrow in the editable layer based on the polygon you draw with the tool. See more below.

      Isosceles Trapezoid: Allows you to draw an isosceles trapezoid in the editable layer using the line created with the tool. See more below.


      Functions

      DrawTools also comes with several functions that can be used from the user interface in MapInfo Pro. These functions can be found in the Functions list in the SQL Window, and you can use them from the MapBasic window and from the Update dialog, too.

      These functions are all discussed in the help file that comes with DrawTools.
      • DTLineDirection
      • DTMath2NorthAngle
      • DTNorth2MathAngle
      • DTCreateCircularSector
      • DTCreateAnnulus

      Source code

      The source code for the application can be found on GitHub: mbDrawTools-x64.

      Questions, requests, and ideas

      If you have questions about the tool, post these as comments to this article.
      Ideas and requests for improvements can be posted as comments too. You can also report these as Issues through GitHub.

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