MapInfo Pro

 View Only
Expand all | Collapse all

Hi, I have a centroid point values and I need to create a grid of 1km and 500m polygons based on these centroid points. Could somebodey help here? Thanks! Dorin

  • 1.  Hi, I have a centroid point values and I need to create a grid of 1km and 500m polygons based on these centroid points. Could somebodey help here? Thanks! Dorin

    Posted 04-24-2018 13:08


  • 2.  RE: Hi, I have a centroid point values and I need to create a grid of 1km and 500m polygons based on these centroid points. Could somebodey help here? Thanks! Dorin

    Posted 04-25-2018 07:03

    Hi,

    If you open the mapbasic window and enter the following commands:

    Set CoordSys Table your_tablename

    Update your_tablename

       Set OBJ = MBR(CreateLine(CentroidX(OBJ) - 250, CentroidY(OBJ) - 250, CentroidX(OBJ) + 250, CentroidY(OBJ) + 250 ))

    This will create a 500m x 500m grid - just change 250 to 500 for the 1km grid.

    Take a copy of your table first just in case it's not what you want!!

    HTH

    Greg



  • 3.  RE: Hi, I have a centroid point values and I need to create a grid of 1km and 500m polygons based on these centroid points. Could somebodey help here? Thanks! Dorin

    Posted 04-25-2018 07:50
    Thanks a lot Greg For grid 1 km I used also Voronoi and it works; for grid 500m your resolution is great All the best!! Dorin