![mapinfo 10 geberate circle on point mapinfo 10 geberate circle on point](https://freegistutorial.com/wp-content/uploads/2020/10/DEM-product-1.jpg)
Please note, I have not written MapBasic code for a couple of three years, so please have a look at the user/reference guide before you commit this to production data or anything silly like that. You'd have to click the button each time you wanted to capture a point. 'add code to create a circle to whatever layer you want Figure 4: A simple map showing store locations as points, circles as sales. Use the CommandInfo() function with the CMD_INFO_XĪnd CMD_INFO_Y parameters and you can retrieve the info from the point you click onįrom here, you can bring up a dialogue/code, with which you can then add the createCircle functionality
#Mapinfo 10 geberate circle on point manual
Radius is a float value, indicating the circle radius.Īs for capturing a mouse click, Read the MapBasic Manual especially "Create ButtonPad statement", but you'd have to write some custom code for this, a bit like this: The 'new random points' (all s1 of them) are all held in vectors xRandom and yRandom. You could convert your point objects to circles and the convert those to the MBR of the circles (I assume you want 1-mile squares.) Then you might have to fiddle around with snap and thin to get the corners to match up.
![mapinfo 10 geberate circle on point mapinfo 10 geberate circle on point](https://telecomhallforum.s3.dualstack.us-east-1.amazonaws.com/uploads/db2683/original/2X/5/5502d7a55d2494b50c82631eb67548e62f9ca010.jpeg)
s1 is a scalar and is the number of points randomly selected from full set of 720 points. The trick is to be able to create that polygon in one step. Y is a float value of the circle's center. You can replace this by whatever you want. X is a float value of the circle's center. Just sue the CreateCircle method in the MapBasic window, or just put it behind a quick and dirty dialogue with all the maths worked out behind the sceneĬreate circle in MapBasic CreateCircle( x, y, radius )