PDA

View Full Version : Error in programatically drawing radius rings in mappoint



Eamon
01-02-2003, 05:12 PM
Hi I am drawing radius in rings in mappoint. I am writing a program in visual basic to do this basically. I have a subroutine that takes a location object and draws a radius ring of a defined radius around the location. The program executes fine with no errors. It draws the ring, but I have one problem. The radius ring seems to be a little off. I am given a point in Rochester New York, and the radius is only 5 miles. so I multiply 5 by 2 to get my height and width.


Set shpRadius = m_objMap.Shapes.AddShape(geoShapeRadius, objlocation, dblWidth, dblHeight)

That is the basic call nothing very fancy at all. When I do this I am given a circle of radius 4.98 miles. It can be resized by hand to 5.00 miles. Could this have to do with the projection? Is there any properties or ideas worth looking at to try and make this program draw a circle of radius 5 miles. Thanks for any and all insights

Eamon
01-02-2003, 05:39 PM
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=%23vjg2XYNBHA.1304%40tkmsftngp03&rnum=3&prev=/groups%3Fq%3Ddraw%2Bradius%2Bgroup:microsoft.publi c.mappoint.*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D%2523vjg2XYNBHA.1304%2540tkmsftngp03%26 rnum%3D3

for those who may have the same question.