I have a huge number of points(co-ordinates), from which I am required to draw a polygon in Mapinfo.
This required polygon is a square of 200m size. All I have now is the left side lower end of the polygon.
Is there anyway that I can draw a square of 200m from this point automatically using MapInfo MBX files?
Best Answer
What you will need to do is write a MapBasic script something like the following.
Firstly, query your table. If you have co-ordinates stored as numbers in the table, the query will be something like this:
Otherwise you need something like:
Then you need to iterate over the rows using Fetch statements. Then you can draw a polygon based on that point. The following is based on the Fetch() and Create Object() sections of the Mapinfo manual, and will probably have to be extensively altered to suit your case. In particular you may have to pay attention to co-ordinate systems if your data is not already projected in metres: