On Mon, 9 May 2005, David Reid wrote: > Is there a way, perhaps using Mapbasic, that one may create a buffer object > with a resolution (smoothness/segments per circle), greater than the maximum > 100 available using the buffer tool. > > Yep, I want to a create a 360deg azimuth as part of a logo or graphic and in > a non-earth inches table.
You could create a 360-point circle in MapBasic in a non-earth projection with the following code (this is not tested, so there's probably a mistake or two, but it should give you the general idea): dim oCircle as object dim x0,y0 as float 'center of circle dim x,y as float 'node coordinates dim r as float 'circle radius dim fAngle, fStep as float set coordsys nonearth units "in" bounds (0,0)(20,20) create region into oCircle 0 x0 = 10 y0 = 10 r = 7 fAngle = 0 fStep = 3.1415926535897932384626433832795 / 180 '1 degree in radians for i = 0 to 359 x = x0 + r * sin(fAngle) y = y0 + r * cos(fAngle) alter object oCircle node add position 1, i+1 (x, y) fAngle = fangle + fStep next --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16392
