[OpenLayers-Users] createRegularPolygon 'circle' radius units?

Stephen Woodbridge woodbri at swoodbridge.com
Thu Sep 6 11:06:22 PDT 2012


On 9/6/2012 1:17 PM, darethehair wrote:
> [first post]
>
> I have searched for an easy answer to this question for most of yesterday
> and again this morning, and now it is time for me to admit that I need to
> ask for direct help :)
>
> Briefly, I want to be able to control the size of my createRegularPolygon
> circles.  From modelling of other examples and my own testing, I have
> serious doubts that I am doing so correctly.  Whether this is due to not
> understanding the code that I have, or missing something fundamental syntax
> needed, I have no idea.  I have created a minimal example that I hope you
> can use to tell me exactly where I am going wrong:
>
>
>
> In the example above, I am trying to draw a circle 800 meters (?) in radius,
> which is very close to 0.5 miles.  I therefore am expecting a circle that
> has a diameter of a mile.  However, the circle ends up smaller than I would
> expect.  Am I missing some sort of 'conversion factor'?  Are my 'map units'
> not in meters as I am expecting?  Have the 'transform' statements messed me
> up somehow?
>
> Thanks for helping me to prevent more hair pulling!

Would probably help if you posted your code, put it on 
http://codepad.org/ and posted a link to it.

-Steve



More information about the Users mailing list