Too slow I would suspect from initial tests - see post from Adam today about "Doing something using a script is usually slower (sometimes significantly slower) than doing the same using the UI". On the other hand, if it doesn't exist, are other developers interested in having a real Create Circle command? I'll be sending an email wishlist myself unless someone lets me know what an idiot I am & points me in the right direction! :-) I'm hoping that someone will be able to point out where I am going wrong, and that these tools do indeed exist. However, in this case, the tracker knows the start (center of circle) and end (circumference of circle) coordinates, so I can't see why it can't calculate distance in metres.įor a GIS, I seem to be finding a lot of GIS "standard" tools missing compared to other GIS packages that I am familiar with. I suspect this is going to be a continuation of our scale bar discussion at and in particular Adam's statment that "horizontal extent of the data visible in a window varies with the Y position". Closest I can see is the Status Bar options for Current Location or Current Scale - neither of which really figure as "distance" in my brain, and neither of which have metres as a measurement anyway. "Options dialogs" covers a lot of ground, and I can't see anywhere that covers distance measurement units. I guess to get a 50m radius circle I am going to have to sayĪs I said, I've tried creating this circle in a VBA script, and I then tried to use the Tracker tool to measure my radius, but it can only measure in degrees as far as I can see, although the Help file says "By default, the tracker tool will report distances using tracker options and whatever default measurement units are set in the Tools - Options dialogs". (c) is a bit more of a worry for the moment.
![mapinfo 10 create a circle mapinfo 10 create a circle](https://woostuff.files.wordpress.com/2011/04/image001.png)
![mapinfo 10 create a circle mapinfo 10 create a circle](https://www.gislounge.com/wp-content/uploads/2006/10/mapinfo.jpg)
I can live with (a) & (b) if I really have to, though I'm sure the users are going to complain. I could add more points, but this will slow things down even more.Ĭ) The radius is going to be in degrees, while I want it in metres. Application.NewGeom(GeomArea, pointSet)Ī) Creating my own 32 sided object with a VB loop is probably slower than any native CreateCircle command.ī) The 32 sided object doesn't look like a real circle - it's pretty jagged. ' obtain point on circumference of circle ' create a 32 sided (pointed?) approximation of a circle Looking through the archives I see that I can do it this way (testing in VBA script before I try it in VB.Net): How do I do this in VB.Net using Manifold MapControl?įrom what I can see, it's not possible to do so easily. So, with one or two lines I can easily draw a 50m radius circle at a point in a WGS-84 lat/long drawing.
![mapinfo 10 create a circle mapinfo 10 create a circle](https://www.cdrgroup.co.uk/assets/IMG/MIPRO_Heatmap.jpg)
Note that the X & Y can be whatever coordinate system MapInfo is currently using, but can also easily be changed to another coordinate system through another simple statement "Set CoordSys".Īlso, the radius parameter specifies the circle radius, in whatever distance unit MapInfo is currently using, but the "Set Distance Units" statement can be used to set a different distance unit beforehand. Insert into MyDrawing (obj) Values (CreateCircle( x, y, radius ) )
![mapinfo 10 create a circle mapinfo 10 create a circle](https://i0.wp.com/freegistutorial.com/wp-content/uploads/2020/01/contour-file-in-mapinfo.jpg)
To draw a circle in MapInfo, I use the following simple command: I'm porting a MapInfo program over to Manifold.