The result should be very similar to what you were aiming for originally. (You need to substitute the value from step 1 into the second line in place of GridCellSize)
Update ResultPoints set obj = mbr(createline(centroidx(obj), centroidy(obj), centroidx(obj) + GridCellSize, centroidx(obj) + GridCellSize))
In this scenario,firstly we thought about creating these grids via gridmaker.mbx which is free tool for Mapinfo,but when the area is too large or the cell size is too small or even if grid maker has no chance to imply our algoritm that like in the following I need the original point to show with the circle round it to highlight it.We're currently using MapInfo & MapBasic to analyze daily tests results for planning purposes.For each test,exported result may contain empty values (say 999,we know Mapinfo has no NULL values),so we decided to maintain each result (by point values) by averaging and cleaning empty results for each parameters inside a square(piece of grid),that way results may not repeat at the same coordinates and separation of empty values.(Or you can say get results by grid where each grid contain how many points and joining results for each cell by averaging) It creates the circle, but replaces the original point.
I'm getting a 'Zoomtable is read-only' error when I try and execute. Save Window my_window_id As "U:\MapInfoOutputs\"+sName+" at "+levelOfZoom+"km.JPG" Type "JPEG" Width 5.20833 Units "in" Height 3.75 Units "in" Resolution 128 Values(CreateCircle(east, north, circRad)) Set Map Center (Zoomtable.Easting, Zoomtable.Northing) in MapInfo terminology a point is referred to as a symbol).
This tool is only visible when a single record is displayed on a form in the host database. The point is automatically given the correct attributes from the record in the database. Select * from TabName where StructureNo = sName Into Zoomtable Add Point: Click on the button to activate the tool, then click on the map to add a point. Buffers can be by radius (generating circles) or by drive-time Integrate geographic criteria. This is the code I use for outputting a single JPEG levelOfZoom = 2 Some users call MapInfo the Microsoft Excel for mapping. I've got all the steps working except the loop (I'll post a separate question for that) and the creating a circle. I've been tasked with creating a simple MapBasic plug-in that will loop through a table in MapInfo, zoom to the location of each point, create a circle to highlight the point, and convert the map to JPEG.