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

darethehair darethehair at gmail.com
Thu Sep 6 10:17:07 PDT 2012


[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!






--
View this message in context: http://osgeo-org.1560.n6.nabble.com/createRegularPolygon-circle-radius-units-tp5000250.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list