MapInfo Pro

 View Only
  • 1.  Discover Local Grid layout equivalent in MapInfo

    Posted 02-19-2021 15:39
    Hi everyone,

    I was wondering if there an addin or a tool in MapInfo that act as the equivalent to the Discover local grid layout tool. The specific capabiliy that I'm looking for is the option to create grid of cells and also grid of points.

    I attached below some screenshots of the interface/capabilties of the local grid layout.

    I played a bit with the Gridmaker tool, but did not find how to make a grid of points features.



    Thanks,

    Seydou

    ------------------------------
    Seydou DiopMena
    KOREM
    Quebec QC
    ------------------------------


  • 2.  RE: Discover Local Grid layout equivalent in MapInfo

    Employee
    Posted 02-22-2021 07:28
    You could create the grid as polygons and then update the spatial object with the Centroid() function.

    That would replace the polygon object with a point matching the centroid of the polygon.

    Would that work?

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



  • 3.  RE: Discover Local Grid layout equivalent in MapInfo

    Posted 02-22-2021 17:54
    Hi Peter,

    I tested your method and it works if  I want the center of the cells as the end results. However what I had in mind was to create a grid of points with  the points  representing the intersections of the horizontal and vertical lines. The points would represent nodes if that makes sense.

    Thanks,

    ------------------------------
    Guillaume Fouquet, ing., P. Eng.
    Geospatial Expert / Expert Géospatial
    korem.com | Phone: (418) 647-1555 ext. 2167 | Toll free: 1-888-440-1MAP
    ------------------------------



  • 4.  RE: Discover Local Grid layout equivalent in MapInfo

    Employee
    Posted 02-23-2021 02:13
    Hi Guillaume 

    You can combine the conversion to Centroid with an Offset.
    Update Grid
       Set OBJ = OffSetXY(Centroid(OBJ), 10, 10, "m")

    In the example above I offset the Centroid 10 meters in both X and Y.
    Your offset should be half the size of the grid cells.

    The offset value can also be negative to move the centroid to the lower-left corner of the grid cell use:
    Update Grid
       Set OBJ = OffSetXY(Centroid(OBJ), -10, -10, "m")

    I hope this makes sense.
    Also, feel free to raise the idea of support for points in the Grid tool via our Ideas Portal.


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



  • 5.  RE: Discover Local Grid layout equivalent in MapInfo

    Posted 02-23-2021 19:01
    Hi Peter,

    Sorry I logged in to the wrong account for my first response. 

    Yes it makes sense, by playing with these functions I can create the point at the lines intersections. I'll also use the variables to re-use the script effectively.

    Thanks!

    Seydou

    ------------------------------
    Seydou DiopMena
    KOREM
    Quebec QC
    ------------------------------