I have started creating an add-in for MapInfo Pro dedicated to the use case around telco.
I have started small but want to add more as needed. Eventually, I'll get the tool loaded into the MapInfo Marketplace for easy access.
The current version, 1.0.0, has these capabilities:
- Create Sectors: Allows you to create sector cells from a point (or lat/long values), a direction, and a horizontal width.
- Update Bearing: Calculate the bearing between the first and last point of a (poly)line.
- Nearest Cells: Finds the nearest cell for all the cells in the table. The direction of the cell is taken into account. You can specify a maximum search distance to avoid searching across the country.
Besides these features, the tool also comes with several functions that can be used in scripts:
TTLineDirection
: Calculates the direction of a polyline, East is zero, counter-clockwise
TTLineBearing
: Calculates the bearing of a long/lat polyline, North is zero, clockwise
TTCreateTrapez
: Creates a trapez using a starting point, direction, length, width at start and end, optional midpoint creation and calculation method (1=Cart, 2=Spher
TTCreateTriangle
: Creates a triangle using a starting point, direction, length, width, optional midpoint creation and calculation method (1=Cart, 2=Spher)
TTRemoveDuplicateNodes
: Removed duplicate nodes from the input object using the given tolerance in meters
TTCreateSector
: Create a sector using a point, direction, and one radius.
TTCreateSectorRing
: Create a sector ring using a point, direction, and two radii.
TTCartesianCreateArrow
: Create an arrow from a polyline, giving size and end types.
TTNorth2MathAngle
: Converts a North angle to a Math angle.
TTMath2NorthAngle
: Converts a Math angle to a North angle.
TTGetDirection
: Returns the directions between two coordinate pairs as a Math angle.
TTGetBearing
: Returns the bearing between two long/lat pairs as a North angle.
Documentation hasn't been created yet.
I have a few other things I'd like to add to this first release:
- Shortcut to scripts and queries: This would allow users to place buttons on the Telco tab that execute scripts and SQL statements.
- The above would come with a few scripts out of the box for loading files and creating sectors, loading files and creating sectors with an offset, and loading files and creating rings. These examples have been discussed earlier in a few #MapInfoMonday posts.
Feel free to download the current version of the tool and give it a spin. Download and unzip the file. The attached version of the tool runs in debug mode, meaning it writes out a lot of details to the Message window.
The source code for the tool will be shared on GitHub.
I would love your feedback and ideas on other features to include in the tool moving forward.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------